I need a local script where when you press "x" a brick would go in the players torso. That's all I need I made the rest of the script already so that's all I need. I would really appreciate if someone could help me. THANKS! :D
COMMUNITY QUESTION
Can someone help me make a script?
1 answer
Once again, this isn't a place to request for scripts, as mentioned above when you 'Ask a question'.
However, this is what you can use to get a keypress of 'x'.
-- Should be in a LocalScript in the StarterGui.
wait()
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
mouse.KeyDown:connect(function(key)
if key:byte() == 120 then
print('X key was pressed')
-- Enter your other code here.
end
end)
That's all I can offer, as I will not write your scripts for you.
1 comment
0
I don't need you to write the whole script that's all I need
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
Sorry, but this isn't a request site, didn't you read the top before you typed this in?