I've never done this before, this is my first time trying and I'm also new to scripting. I want to make a button that once clicked it sets the player WalkSpeed to whatever I want it to be. This does the job I want but I don't know how to make it so that players that own the gamepass can use this?
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
end)

3 comments
In order for it to work u must use a remote event.
That's not true, he can do it without remote event, I did it without a remote event.
Walkspeed replicates from client to server so you don't actually need a remote event.