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

For some reason this script just keeps looping and idk why, can anyone help?

Asked by 7 years ago

I've been working on a mini game based off of skydoesminecraft's do not laugh. I'm pretty much through most of the scripting but there's one problem. its an Chose your Tool Gui (Which is pretty self explanatory). It's a Gui that rolls down the screen and lets you chose your item and then when the timer is up it rolls back up and you begin the match, but for some reason it won't stop looping. I've tried everything and it just won't stop can somebody tell me what's wrong with it?

V = game.ReplicatedStorage.Game1.Gamefull


while true do 
if V.Value == false then 
script.Parent.Text = "Waiting on Players."
wait(0.1)
script.Parent.Text = "Waiting on Players.."
wait(0.1)
script.Parent.Text = "Waiting on Players..."
wait(0.1)
script.Parent.Text = "Waiting on Players...."
wait(0.1)
else--------------------------------------------
script.Parent.Text = "Preparing Round!"
wait(1)
script.Parent.Text = "Pick your props, and prepare your jokes!"
script.Parent.Parent.Parent.ItemChose.Visible = true 
script.Parent.Parent.Parent.ItemChose:TweenSize(UDim2.new(0, 279, 0, 1000), In, "Back", 2, true, nil)
wait(60)
script.Parent.Parent.Parent.ItemChose:TweenSize(UDim2.new(0, 279, 0, 0), In, "Back", 2, true, nil)
script.Parent.Parent.Parent.ItemChose.Visible = false
script.Parent.Text = "Round Ready!!"
wait(2)
script.Parent.Parent.Visible = false
wait(1)
script.Parent.Parent.Parent.Game1.Visible = true 
wait(2)
print("ClockStart")
game.ServerScriptService.Game1.Game1.Disabled = false 
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.ItemChose:TweenSize(UDim2.new(0, 279, 0, 0), In, "Back", 2, true, nil)
script.Parent.Parent.Parent.ItemChose.Visible = false
script.Disabled = true 
wait(5)
end 
end 

Thx for reading this far! ;D

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

Maybe do something with the

script.Disabled = true

that might help i think it should be

script:Destroy ()
Ad

Answer this question