local Y=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(s,Z,x)if x and Z==id then s.Character.Humanoid.WalkSpeed=Y end end)game.Players.PlayerAdded:Connect(function(s)s.CharacterAdded:connect(function(s)if(game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")):UserOwnsGamePassAsync(game.Players[s.Name].UserId,id)then s.Humanoid.WalkSpeed=Y end end)end)


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)
