Hi, im trying to make a T-pose animation (like the one in JToH) and i couldn't find how to check for mouse inputs. I'm really new to Lua, but i have some experience with C+ and GML. I could get as far as this:
active = false
script.Parent.Equipped:connect(function()
active = true
end)
script.Parent.Unequipped:connect(function()
active = false
end)
(This is on a tool by the way. Sorry for my inexperience, i searched for a long time but this is my last resort.)

8 comments
ye i think it's supposed to be FireServer() instead of just Fire(), also to rubu make sure to disable the "RequireHandle" property on the tool
ok, thx I do not know much about fire-ing.
I'll try this asap, it looks like it'll work to me. just guessing tho.
dont forget to do what caqc said, he knows more then me, I know nothing of this stuff.
oh and the serverscript should be game.ReplicatedStorage.itemequipped.OnServerEvent:Connect(function() instead of the if game.ReplicatedStorage.itemequipped:Fired()
ok
well i give up im not experienced enough to do this
I think alvin blox teaches this to