Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I have a textbutton that makes it so when a player clicks it. They have no walkspeed?

So im trying to make it so when a player clicks the text button they cant walk or jump. it was a simple script but still it didn't work

script.Parent.MouseButton1Click:Connect(function()
	script.Parent.Parent.Parent.HidePlayers.Disabled = false
	game.StarterPlayer.CharacterJumpPower = "0"
	game.StarterPlayer.CharacterWalkSpeed = "0"

end)

1 comment

0

gui button?

1 answer

✓ Accepted answer

if it is a gui button then here is some code

script.Parent.MouseButton1Click:Connect(function(player)
player.Character.Humanoid.WalkSpeed = 0
player.Character.JumpPower = 0
end)

1 comment

0

thanks dude!

This discussion is preserved as it was. New answers, comments, and votes are closed.