Basically this is a normal script inside of a tool, it is very basic and should work, but it dosent, I don't get anything printed in the output, signifying it has not worked. but there are no error in the entire script, please help!
01 | local Tool = script.Parent |
02 | local function OnEquipped(mouse) |
03 | print ( "Eqiupped" ) |
04 | end |
05 |
06 | Tool.Equipped:connect(OnEquipped) |
07 |
08 | local function OnUnequipped() |
09 | print ( "UnEqiupped" ) |
10 | end |
11 | Tool.Unequipped:connect(OnUnequipped) |
Lowercase "C" in ":connect
" is deprecated so change the C of ":connect
" to uppercase
so it becomes :Connect
also you dont need local function
01 | local Tool = script.Parent |
02 | function OnEquipped(mouse) |
03 | print ( "Eqiupped" ) |
04 | end |
05 |
06 | Tool.Equipped:Connect(OnEquipped) |
07 |
08 | function OnUnequipped() |
09 | print ( "UnEqiupped" ) |
10 | end |
11 | Tool.Unequipped:Connect(OnUnequipped) |