Hello, I'm was enabling the script but once its enabled the script wont work. Here's the script that isn't working:

while wait() do
	wait(2)
	clone = script.Parent.Parent.Tube:Clone()
	clone.Part.Transparency = 0
	clone.color.Transparency = 0
	clone.Part.Anchored = false
	clone.color.Anchored = false
	clone.Part.CanCollide = true
	clone.color.CanCollide = true
	clone.Parent = workspace
	clone:MoveTo(script.Parent.Position)
end

And here's the script that enabled the 1st script:

player = script.Parent.Parent.Parent.Parent.Parent.Name

script.Parent.MouseButton1Click:Connect(function()
	workspace:WaitForChild(player.."0").Researcher1.Handle0.Transparency = 0
	workspace:WaitForChild(player.."0").Researcher1.Handle.Transparency = 0
	workspace:WaitForChild(player.."0").Researcher1.Head.Transparency = 0
	workspace:WaitForChild(player.."0").Researcher1.LeftArm.Transparency = 0
	workspace:WaitForChild(player.."0").Researcher1.LeftLeg.Transparency = 0
	workspace:WaitForChild(player.."0").Researcher1.RightArm.Transparency = 0
    workspace:WaitForChild(player.."0").Researcher1.RightLeg.Transparency = 0
	workspace:WaitForChild(player.."0").Researcher1.Torso.Transparency = 0
	workspace:WaitForChild(player.."0").Spawn.Script.Disabled = false
	script.Parent.Parent.Upgrade.Visible = true
	script.Parent:Destroy()
end)

And also I am making a tycoon dropper that's supposed to clone test tubes and go through the conveyer.

7 comments

0

holy mother of eyeballs please use variables

0

lol

0

maybe try to clone it.

0

the script?

0

Dosnt work

0

no, i meant make a script that clones it where ever you need it to be in

0

Try using if statements and instead of WaitForChild, use FindFirstChild?