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

My intro camera gui isn't working?

Asked by
Relatch 550 Moderation Voter
9 years ago

Error: Players.Player.PlayerGui.Intro.Main.StartBackground.StartText.InvisibleButton.L:31: 'end' expected (to close 'while' at line 17) near 'else'

NOTE: This isn't the full script, this is just what I am having a problem with.

while true do
    script.Parent.MouseButton1Down:connect(function()
        disabled = true
    end)
    if not disabled then
        camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0) * CFrame.new(0, 0, 20)
        angle = angle + math.rad(0.65)
        game:GetService("RunService").RenderStepped:wait()
    end
    wait(1)
    script.Parent.Parent.Parent.Parent.Parent.Main.InfoBackground.NameText:TweenPosition(UDim2.new(0.7, 0, 0.4, 0), "InOut", "Quad", 1.5)
    script.Parent.Parent.Parent.Parent.Parent.Main.InfoBackground.CreatorText:TweenPosition(UDim2.new(0.62, 0, 0.5, 0), "InOut", "Quad", 1.5)
    wait(1.5)
    script.Parent.Parent.Parent:TweenPosition(UDim2.new(0.43, 0, 0.8, 0), "InOut", "Quad", 1.5)
else
    break
end
0
Why have you got a random else on line 16? Spongocardo 1991 — 9y
0
Because I want it to break the loop if it's disabled. Relatch 550 — 9y
0
Remove Line 9. Then add another end after the very last end fahmisack123 385 — 9y
0
Well, I tried that. But, before it moves the camera it waits 1 second. Relatch 550 — 9y

Answer this question