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

Why is my Gui script stuck at Spawning.Text = "Spawning..."?

Asked by 6 years ago
Edited 6 years ago

I've figured out a way to spawn my train, but it's stuck at Spawning.Text = "Spawning..."

It's the first one, the one before wait(0.01) local clone = (etc.)

01DaScript = script.Parent.RBXStudioTutorial
02Frame = script.Parent.Parent
03C70 = Frame:WaitForChild("Set1")
04GUI = script.Parent.Parent
05local train = game.ReplicatedStorage.C70Freight
06local Camera = workspace.CurrentCamera
07local Player = game.Players.LocalPlayer
08 
09function C70Clicked()
10    if workspace:IsRegion3Empty(Region3.new(Vector3.new(467.505, 6.548, -3076.283), Vector3.new(1152.544, 6.559, -3298.865))) then
11        script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.DriveFrame.Visible = false
12        script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Spawning.Visible = true
13        script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Spawning.Text = "Spawning..."
14        wait(0.01)
15        local clone = train:Clone()
View all 41 lines...
0
dude you should really learn how to use variables to eliminate all those .Parent.Parent and so on. Holy cow! User#21908 42 — 6y
0
I know them, but my friend gave me the script and I just couldn't be bothered to change them CarlPlandog 20 — 6y
0
That's a lot of script.Parent's you got there saSlol2436 716 — 6y
0
makes sense saSlol2436 716 — 6y
View all comments (5 more)
0
Yeah but none of you are answering the question CarlPlandog 20 — 6y
0
Which one of them is it stuck on. The first or second??? casper123123123 357 — 6y
0
Are there any errors in the output? saSlol2436 716 — 6y
0
The first one CarlPlandog 20 — 6y
0
No there are no errors CarlPlandog 20 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Does anyone know how to fix it?

Ad

Answer this question