Nothing in tool script firing with Rthro character

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)

image_2024-06-18_125927174

1 Like

what type of script did you make it

UPDATE: absolutely NOTHING in the script is firing.

LocalScript inside of the tool

is there anything in the output?

Absolutely nothing. When i use print("Running") at the very beginning of the script, it fires, but nothing else does.

Solved! Replaced local char = game.Players.LocalPlayer.CharacterAdded:Wait() with local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.