Hello! I was wondering why this script will not work. It should check that the player has the correct requirements in order to proceed onto the next stage. Would I have to wait for the child, find the first child, create an in pairs loop of will it be something else?
ReqAge = 20
GroupID = 000000
script.Parent.Parent.BEGIN.MouseButton1Click:connect(function(player)
if player ~= nil then
if player.AccountAge < ReqAge then
player:Kick("You Must Be Atleast 20 Days Old To Apply!")
if player:IsInGroup(GroupID) == nil then
player:Kick("You Have Join The Group!")
if player:IsInGroup(GroupID) and player:GetRankInGroup(GroupID) == 2 then
player:Kick("You Have Been Suspended")
else
script.Parent.Parent.Parent.STAGE1.Visible = false
end
end
end
end
end)
Thanks.

4 comments
place a 'end' to close line 8 at line 10, this should fix
You can use a 'elseif' too
Oh, ok, I will try to have a play around to see what I get.
Can you be more specific about what is not working? Where does it fail ( have you debugged ? )