Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My Buy Speed Gamepass To run super fast Script dont work?

game.Players.PlayerAdded:connect(function(plr)
if plr.HaveGamepass(768594) then
game.Players.LocalPlayer.Character.Humanoid.Walkspeed=35
end)

3 comments

0

HaveGamepass is not a property of player.

0

You don't even know how to make simple scripts. Please search up basic scripting, than, advanced, than, super advanced tutorials on youtube.

1 answer

✓ Accepted answer

I'll start by saying:

  1. I recommend you putting this into a Server-Script
  2. ".HaveGamepass" isn't a thing, it's :PlayerHasPass(PLAYER, ID)
local gamepassId = 768594

game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(char)
	local humanoid = char:WaitForChild("Humanoid")
    	if game:GetService("GamePassService"):PlayerHasPass(player, gamepassId) then 
        	humanoid.WalkSpeed = 35
		end
	end)
end)

Make sure to accept if it helped you! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.