Im a very basic scripter who is stumbled by the simplest things. Help would be nice.
This requires a LocalScript:
player=Game.Players.LocalPlayer mouse=player:GetMouse() mouse.KeyDown:connect(function(key) --key being the key they pressed print(key) end)
--In less complicated terms if not familiar with anonymous functions(place in a local script): Player = game.Players.LocalPlayer Mouse = Player:GetMouse()
function onKeyDown(key) key = key:lower() -- this enables the script to work even if your in capslock if key == "z" then Player:BreakJoints() -- change this to whatever end end
Mouse.KeyDown:connect(onKeyDown)