I’m currently making a tool to make someone salute or at ease and I copied the script for the salute (the salute tool works perfectly) over to a new tool for the At Ease. However, when I actually equip the At Ease tool, the function doesn’t actually trigger. Nothing appears in the output and nothing seems wrong. What is happening?
-- This is the working script
local tool = script.Parent
local RS = game:GetService("ReplicatedStorage")
local Salute = RS:WaitForChild("Salute")
tool.Equipped:Connect(function()
print("hi")
local player = script.Parent.Parent
Salute:FireServer(player)
end)
-- This is the script that doesn't work despite being almost identical
local tool = script.Parent
local RS = game:GetService("ReplicatedStorage")
local AtEase = RS:WaitForChild("AtEase")
tool.Equipped:Connect(function() -- It stops working here without any output errors
print("hi")
local player = script.Parent.Parent
AtEase:FireServer(player)
end)