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

Saber throw execute button help me, please? [closed]

Asked by 6 years ago

So I added saber throw in my lightsaber script but I think I forgot the button of how to execute it can anyone help me with how I could do that I tried before but too bad it didnt work

Closed as Not Constructive by User#21908 and User#19524

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago
script.Parent.Activated:connect(function()
  --your script
end

Edit: Oh I didn't know you meant a keyboard button. For that it's a little more complicated. Im not gonna code it for you but, you would use UserInputService and RemoteEvents.

Respective Links: https://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events

0
Thank you but how do I then choose the button so I can do the attack , sorry if you are losing your time with me XD 3dwardIsBack -10 — 6y
0
oh well thanks I found how it works now 3dwardIsBack -10 — 6y
0
No problem. If the answer helped you, I would appreciate if you accepted it, if not then it's fine. TiredMelon 405 — 6y
Ad