Hello! I’m having an issue where skinned rigs do not fire the Tool.Equipped event (or any other tool events), and i’m wondering if i’ve done something wrong or if this is intentional behaviour. Here’s the code:
local Tool = script.Parent.Parent
print(Tool)
Tool.Equipped:Connect(function()
print("3s")
end)
I’ve tried this both on a regular script and a local script. The print does work correctly (the script is also in a folder in the tool, hence why there is another parent).
Ah, when you change the model of the player to be skinned, are you setting the Player’s Character property (Player.Character) to the new model, or just changing the Camera and Movement?
local players = game:GetService("Players")
players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character.ChildAdded:Connect(function(child)
if child:IsA("Tool") then
if child.Name == "Flamethrower" then
--do code
end
end
end)
end)
end)
Server script inside the ServerScriptService folder.