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
COMMUNITY QUESTION
Saber throw execute button help me, please?
1 answer
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
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
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
oh well thanks I found how it works now
No problem. If the answer helped you, I would appreciate if you accepted it, if not then it's fine.