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

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

(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!

2 comments

0

Make sure the script isn't disabled.

0

It's enabled

1 answer

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...

4 comments

0

Probably a bug, something similar happened not too long ago with tweening guis in local scripts.

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

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.

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!

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