Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

Can someone help me make a script?

Asked by
red106 0
10 years ago

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

0
Sorry, but this isn't a request site, didn't you read the top before you typed this in? Dummiez 360 — 10y

1 answer

Log in to vote
0
Answered by
Dummiez 360 Moderation Voter
10 years ago

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.

0
I don't need you to write the whole script that's all I need red106 0 — 10y
Ad

Answer this question