Hey guys I want to make it so that my sword has two attacks, the first being a Strong hit that does 25 damage when right click and the other being a light hit that does 15 damage when left click, any help on this one? Please anything would help!
Thanks!
userinputservice can help, this is an example:
local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(k,gpe)
if not gpe then
if k.UserInputType == Enum.UserInputType.MouseButton1Down then
LightHit()
elseif k.UserInputType == Enum.UserInputType.MouseButton2Down then
StrongHit()
end
end
end)
-- I don't know if these are the actual Enum names, I haven't worked with UIS in months
Scripting support is not made for people to ask for people to make you whole scripts. It’s made for getting help with scripts you already have.
I wanted like a vid or a forum page
Thanks dude I am trying this out!
yeah, sounds about right to me, might want to handle damage on the server and animate on the client though
So I should make like a remote function or event?
remote events, remote functions will break if a player leaves during the function call, you should really only use remotefunctions for getting specific values on the server
Also if you got any vid or reference
oh ok thank you, I will try to ask someone to help me on those things, because I am not a pro in Remote events or Remote Functions
If you can send me a video or explain me more on how to do it, if not, then yeah no problem thanks for the help