Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

4 comments

0

What lines does it say the error is on?

0

Oh I see, you put until for no reason on line 06.

0

until has to be part of a repeat ... until ... loop

0

Is this the entire script, or just a piece?

2 answers

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

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

remove it and it shuld work again

This discussion is preserved as it was. New answers, comments, and votes are closed.