Highlights not working

Hightlight isnt showing up when the script runs

local highlight = Instance.new("Highlight")
		highlight.OutlineColor = Color3.fromRGB(0,150,0)
		highlight.FillColor = Color3.fromRGB(0,220,0)
		highlight.FillTransparency = 0
		highlight.DepthMode = Enum.HighlightDepthMode.Occluded
		highlight.OutlineTransparency = 0
		highlight.Parent = workspace.Red.Hitbox
		highlight.Adornee = workspace.Red.Hitbox
		
		game.Debris:AddItem(highlight, 0.5)
		game.TweenService:Create(highlight, TweenInfo.new(0.25, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, true, 0), {FillTransparency = 0.5, OutlineTransparency = 0.5}):Play()

also it doesnt send any errors to the output

Maybe the script ran before you could see the highlight since the code destroys it after 0.5 seconds, have you tried adding a task.wait(5) (for example) at the beggining and check if the code runs?

1 Like

its fixed when i restarted studio, but still thank u for attention

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