Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Saber throw execute button help me, please?

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

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

3 comments

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

0

oh well thanks I found how it works now

0

No problem. If the answer helped you, I would appreciate if you accepted it, if not then it's fine.

This discussion is preserved as it was. New answers, comments, and votes are closed.