Hi! First question here. Amazing this website exists.
In my game, I would like to sell a Game Pass which makes the use of a 'shift key to sprint' script possible. I have the script set up in my StarterGui already (thanks to the free models), but I'm not sure how to 'deny' the use of it to players not owning the Game Pass.
**The script, in case anyone would like to know: **
wait()local Player=game.Players.LocalPlayer local Mouse = Player:GetMouse() local Speed = 50 local Humanoid = Player.Character:WaitForChild("Humanoid") local OrigSpeed = Humanoid.WalkSpeed
Mouse.KeyDown:connect(function(Key)local Code=Key:byte()if(Code==48)then Humanoid.WalkSpeed = Speed end end) Mouse.KeyUp:connect(function(Key)local Code=Key:byte()if(Code==48)then Humanoid.WalkSpeed = OrigSpeed end end)
Thanks a lot!
- Allineate

1 comment
Put the script in code block man.