I’m using a local script tool with an Rthro StarterCharacter and tool.Activated, tool.Equipped, and tool.Unequipped never fire. None of the other posts made that are similar to this have helped. My StarterCharacter contains a humanoid, RightGripAttachment, and is also rigged accordingly to R15 avatars.
im actively clicking in this video
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/asset?id=18109466358"
anim.Parent = script
local char = game.Players.LocalPlayer.CharacterAdded:Wait()
local track = char:WaitForChild("Humanoid"):LoadAnimation(anim)
script.Parent.Activated:Connect(function()
print("activated") -- prints nothing
if script.Parent.Handle.SpotLight.Enabled == true then
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.Sound:Play()
else
script.Parent.Handle.SpotLight.Enabled = true
script.Parent.Handle.Sound:Play()
end
end)
script.Parent.Equipped:Connect(function()
script.Parent.Handle.SpotLight.Enabled = false
script.Parent.Handle.equip:Play()
track = script.Parent.Parent.Humanoid:LoadAnimation(anim)
track.Priority = Enum.AnimationPriority.Action
track.Looped = true
track:Play()
end)
script.Parent.Unequipped:Connect(function()
script.Parent.Handle.equip:Play()
if track then
track:Stop()
end
end)