When it get cloned, there is a slight delay and it really bugs the game. Is there a way to change the cframe before it gets cloned so that "tycoon" is already at mouse hit position when cloned?
script.Parent.MousePosScript.ignore.Value = tycoon tycoon.Parent = game.Workspace tycoon.CFrame = tycoon.CFrame:ToWorldSpace(turnDegrees)
Since code runs from top to bottom, you just swap them, part is only becoming visible after Parent
property is set to something in Workspace
:
script.Parent.MousePosScript.ignore.Value = tycoon tycoon.CFrame = tycoon.CFrame:ToWorldSpace(turnDegrees) tycoon.Parent = game.Workspace