Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why does the Equipped event not work all of a sudden?

Asked by
acecateer 130
10 years ago

(Local script of course) I was in the process of making a gun and when I tried testing it I found out that when I was equipping the tool it wasn't doing a single thing. It didn't output an error either... So I did a test to see if the Equipped event was working and when I tried doing this code:

local Player=game.Players.LocalPlayer
local Character=Player.Character
local Cam=workspace.CurrentCamera
local Tool=script.Parent

Tool.Equipped:connect(function()
    print("Tool equipped")
end)

It didn't print anything and again, didn't output any errors. Just nothingness... It's worked in the past but now the Equipped event seems to have something wrong with it or am I just losing my mind?

Please help!

0
Make sure the script isn't disabled. Perci1 4988 — 10y
0
It's enabled acecateer 130 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

The same thing has happened to me, sadly I can't find out the reason. I have also made a test script to see if it was just that, but sadly it wasn't just that one script, so to conclude I don't know...

0
Probably a bug, something similar happened not too long ago with tweening guis in local scripts. acecateer 130 — 10y
0
dang well I hope they fix this, but the only problem I see is that other games that have this still work, such as Five Nights At Freddy's legobuildermaster 220 — 10y
0
Which is odd, it seems to only be a problem in recently made scripts?... Because I have another gun from a while back that still works. acecateer 130 — 10y
0
I just learned from DawnHorizon how to fix this :D Just add wait(.5) to the very first line of any localscript you have! legobuildermaster 220 — 10y
Ad

Answer this question