My tool is not activating my highlight

local tool = game.StarterPack.Tool
local Rock= game.Workspace.Rock
local highlight = Rock.Highlight

tool.Equipped:Connect(function()
	
highlight.Enabled = true
	
end)

This script is not turning on the Highlight that is in this model

Could someone help

1 Like

You define Tool as the one located in StarterPack. This isn’t the same instance that is parented to the player’s backpack upon being spawned. If you add a script inside of the tool and define it as:

local Tool = script.Parent

Then what you have should work. I’ll also add that Tools, by default, don’t function without a Handle. Your Tool doesn’t look like it has anything inside of it so if you plan on keeping it that way, make sure you disable the RequiresHandle property for the tool.

Thank this really helped alot.

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