Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Walk speed game pass script isn't, can't seem to find why not, help? [HELP NEEDED]

Asked by 8 years ago
local id = 3672673475
local speed = 32
local gps = game:GetService("GamePassService")

game.Players.PlayerAdded:connect(function(plr)
 if gps:PlayerHasPass(plr, id) then
    plr.CharacterAdded:connect(function(chr)
       chr:WaitForChild("Humanoid").WalkSpeed = speed
    end)
    end
end)

This is the script i used, and its a server script, not local, and i placed it in ServerScriptService. Everything seems to be correct yet i can't find the error. Help?

1
Try resetting your character, it may be because by the time the script gets whether the player has the pass or not, the character may have already loaded. TheDeadlyPanther 2460 — 8y
0
^ If that's the case, I would recommend flipping the if statement and CharacterAdded lines. M39a9am3R 3210 — 8y
0
No, still not working. Supergamerboy1995 129 — 8y
0
Mind using this? http://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset It uses MarketPlace service. XAXA 1569 — 8y
View all comments (3 more)
0
Still doesn't help me make a walk speed pass Supergamerboy1995 129 — 8y
0
I just tried looking it up, Item ID 3672673475 does not exist. Did you by any chance copy the ID wrong? M39a9am3R 3210 — 8y
0
Looks like you're right, the id was wrong after all. I'll try the script again when I get a chance to go on my computer again. Supergamerboy1995 129 — 8y

Answer this question