This script is supposed to take a model called "factoryFaded" from ServerStorage, put it into Workspace when a mouse enters a part, and set its position. And when the mouse leaves the part, it disappears.
The parent is the ClickDetector, and the parent of the ClickDetector is the part.
local click = script.Parent
local factoryFade = game.ServerStorage.factoryFaded
click.MouseHoverEnter:connect(function(player)
factoryFade.Parent = workspace
factoryFade.Position = Vector3.new(-25.222, -0.49, -0.554)
end)
click.MouseHoverLeave:connect(function(player)
factoryFade.Parent = game.ServerStorage
end)
click.MouseClick:connect(function(player)
end)

1 comment
Try putting the script's parent as the part besides the click detector. Also, if filtering enabled is on then you can't get the player from a click detector. Make sure you're using a regular script too. That's all I see. Might help.