I am trying to make a thing that if when someone joins or dies, if they are a developer or have the VIP gamepass then it will give them double WalkSpeed and double JumpPower.
Here is my full normal script in workspace:
local ms = game:GetService("MarketplaceService")
local id = 9148194
game.Players.PlayerAdded:Connect(function(plr)
local char = plr.Character
local hum = char:WaitForChild("Humanoid")
if ms:UserOwnsGamePassAsync(plr.UserId,id) then
hum.WalkSpeed = 32
hum.Died:Connect(function()
wait(3)
hum.WalkSpeed = 32
end)
elseif plr.UserId == 950965355 or plr.UserId == 714312166 then
hum.WalkSpeed = 32
hum.JumpPower = 100
hum.Died:Connect(function()
wait(3)
hum.WalkSpeed = 32
hum.JumpPower = 100
end)
end
end)
Please tell me what is wrong. Thanks in advance!

1 comment
Thanks, I will try it out.