Here is my code:

		-- this happens when a player leaves the game if they owned a tycoon
		local tycoonName = plrInfo.OwnedTycoon.Value
		local tycoon = game.Workspace.Tycoons:FindFirstChild(tycoonName)
		
		tycoon:Destroy()

		local tycoonCopy = savedTycoonsTable[tycoon.Name]:Clone()
		local runTycoonDoor = require(moduleScripts.RunTycoonDoor)
		
		runTycoonDoor(tycoonCopy)
		tycoonCopy.Parent = game.Workspace.Tycoons

Do I need to include a wait in between anything in order to protect it from breaking? Will the function I call to run the tycoon door error ever without a wait? Thanks!

5 comments

0

This is a different situation than the question I just asked a few minutes earlier.

0

If you want it to happen gradually use a wait

0

but otherwise?

0

don't add a wait then

0

ok thanks