local w=game.ReplicatedStorage.Values.Speed.Value;(game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")).PromptGamePassPurchaseFinished:Connect(function(G,y,g)if g and y==id then G.Character.Humanoid.WalkSpeed=w end end)game.Players.PlayerAdded:Connect(function(G)G.CharacterAdded:connect(function(G)if(game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")):UserOwnsGamePassAsync(game.Players[G.Name].UserId,id)then G.Humanoid.WalkSpeed=w end end)end)
-- If anything goes wrong please leave a comment on the modle and I will fix it.

local speed = game.ReplicatedStorage.Values.Speed.Value

game:GetService("MarketplaceService").PromptGamePassPurchaseFinished:Connect(function(plr, ido, purchased)
	if purchased and ido == id then
		plr.Character.Humanoid.WalkSpeed = speed --set this and the other one to the same number
	end
end)

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:connect(function(char)
		if game:GetService("MarketplaceService"):UserOwnsGamePassAsync(game.Players[char.Name].UserId, id) then
			char.Humanoid.WalkSpeed = speed
		end
	end)
end)
