Yeah just nothing happens thats about it. No output errors either. Is this common, am I missing something? Click detector is in a part which is in a model. The script is also in the part it's a local script. Any help is appreciated here is the code:
local player = game.Players.LocalPlayer
local gui = player.PlayerGui
script.Parent.ClickDetector.MouseHoverEnter:connect(function()
gui.Identity.Object.Text = "FuseBox"
gui.Identity.Object.Visible = true
end)
script.Parent.ClickDetector.MouseHoverLeave:connect(function()
gui.Identity.Object.Visible = false
end)
script.Parent.ClickDetector.MouseClick:connect(function()
if gui.Task == "Fuse" then
game.Basement.FuseBox.Sound:Play()
game.Basement.FuseBox.GLight.Material = "SmoothPlastic"
game.Basement.FuseBox.RLight.Material = "Neon"
game.Basement.FuseBox.RLight.Pointlight.Enabled = true
else
print("not yet")
end
end)

1 comment
It seems like you have a local script inside of a part, which is probably part of the problem. Put the local script in the StarterGui and just say workspace.Model.Whatever.ClickDetector.