I'm trying to make it when a mouse is hovered over a part, the script moves a part called "factoryFaded" from ServerStorage to Workspace, and bring its to the coordinates (-25.222, -0.49, -0.554). It isn't working, and the only output I get says "factoryFaded is not a valid member of Part", and "factoryFaded is not a valid member of ServerStorage"
Here is the script
local click = script.Parent
while wait(0.5) do
click.MouseHoverEnter:connect(function(player)
game.ServerStorage.factoryFaded.Parent = game.Workspace
game.Workspace.factoryFaded.Position = Vector3.new(-25.222, -0.49, -0.554)
end)
click.MouseHoverLeave:connect(function(player)
game.Workspace.factoryFaded.Parent = game.ServerStorage
end)
click.MouseClick:connect(function(player)
end)
end

1 comment
Change Position to CFrame and is the Script a LocalScript?