game.Players.PlayerAdded:connect(function(plr)
if plr.HaveGamepass(768594) then
game.Players.LocalPlayer.Character.Humanoid.Walkspeed=35
end)
✓ ANSWER ACCEPTED
My Buy Speed Gamepass To run super fast Script dont work?
1 answer
✓ Accepted answer
I'll start by saying:
- I recommend you putting this into a Server-Script
- ".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.

3 comments
"plr.HaveGamepass" https://wiki.roblox.com/index.php?title=API:Class/MarketplaceService/PlayerOwnsAsset or https://wiki.roblox.com/index.php?title=API:Class/GamePassService/PlayerHasPass
HaveGamepass is not a property of player.
You don't even know how to make simple scripts. Please search up basic scripting, than, advanced, than, super advanced tutorials on youtube.