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

What means "Expected <eof>, got 'until'"?

Asked by
patabr 0
4 years ago
Edited 4 years ago

This error shows in this script, what that means and how to fix it?

Player = game.Players.LocalPlayer
Button = script.Parent
Item = game.ReplicatedStorage:FindFirstChild("SnowCannon")
Cost = 110
Cash = game.Players.LocalPlayer.leaderstats:FindFirstChild("Cash")
until

Button.MouseButton1Click:Connect(function(purchase)
    if Cash.Value > (Cost - 1) then 
        Cash.Value = Cash.Value - Cost
        local a = Item:Clone()
        a.Parent = Player.Backpack
        local b = Item:Clone()
        b.Parent = Player.StarterGear
    end
end)
0
What lines does it say the error is on? TypicallyPacific 61 — 4y
0
Oh I see, you put `until` for no reason on line 06. TypicallyPacific 61 — 4y
0
until has to be part of a `repeat ... until ...` loop theking48989987 2147 — 4y
0
Is this the entire script, or just a piece? Dudeguy90539 36 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

You randomly wrote until on line 6, just delete that and it should run

Ad
Log in to vote
0
Answered by
ew098 0
4 years ago

on line 6 theres an until thats breaking it becuase until is used in a repeat loop

remove it and it shuld work again

Answer this question