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
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
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?