local box = script.Parent.Parent:WaitForChild('TextBox')
local button = script.Parent
local code = 'freegun'
local tries = 0
local maxtries = 999999999999999999
button.MouseButton1Click:connect(function()
end)
if box.Text == code then
button.Text = 'Code accepted'
script.Parent.MouseButton1Click:connect(function()
end)
end
local tool = script.Parent.Tool:Clone()
tool.Parent = p.Backpack
else
button.Text = 'Incorrect password'
tries = tries + 1
end
end)
Error: Expected , got 'else'
The error is on 'else', I'm not sure whether I have too many 'ends' or not enough 'ends'.

2 comments
It worked! Thanks, man.
Np