Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm trying to reenable a disabled script?

Asked by 4 years ago
Edited 4 years ago

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.

0
holy mother of eyeballs please use variables rower86 35 — 4y
0
lol dizzyjamison08 30 — 4y
0
maybe try to clone it. p0vd 207 — 4y
0
the script? dizzyjamison08 30 — 4y
View all comments (3 more)
0
Dosnt work dizzyjamison08 30 — 4y
0
no, i meant make a script that clones it where ever you need it to be in p0vd 207 — 4y
0
Try using if statements and instead of WaitForChild, use FindFirstChild? Y_VRN 246 — 4y

Answer this question