I joined FEAR, To test my script, And it still let me in.. Now I've quit FEAR, It doesn't let me in...
function createGui(player) local x = Instance.new("ScreenGui", player.PlayerGui) local frame = Instance.new("Frame", x) local label = Instance.new("TextLabel", frame) frame.Size = UDim2.new(1, 0, 1, 0) label.Size = UDim2.new(1, 0, 1, 0) label.FontSize = "Size48" label.Text = "You have been detected as a FEAR member. Quit FEAR to be able to play, because FEAR is for Is our arch enemy..." label.BackgroundColor3 = Color3.new(0, 0, 0) label.TextColor3 = Color3.new(1, 1, 1) label.TextWrap = true end game.Players.childAdded:connect(function(newb) if newb:IsInGroup(72321) == true then repeat print("WAITING FER NEWB! ") wait() until newb.Character ~= nil newb.Character:MoveTo(Vector3.new(0, 100000, 0)) newb.Character.Torso.Anchored = true newb.Backpack:Remove() for index, gui in pairs(newb.PlayerGui:GetChildren()) do gui:Remove() end createGui(newb) else print("YOU'RE CLEAR! ") end end)
It's because if newb:IsInGroup(72321) == true then
isn't true.
All you needed is if newb:IsInGroup(72321) then`
So to fix it,
function createGui(player) local x = Instance.new("ScreenGui", player.PlayerGui) local frame = Instance.new("Frame", x) local label = Instance.new("TextLabel", frame) frame.Size = UDim2.new(1, 0, 1, 0) label.Size = UDim2.new(1, 0, 1, 0) label.FontSize = "Size48" label.Text = "You have been detected as a FEAR member. Quit FEAR to be able to play, because FEAR is for Is our arch enemy..." label.BackgroundColor3 = Color3.new(0, 0, 0) label.TextColor3 = Color3.new(1, 1, 1) label.TextWrap = true end game.Players.childAdded:connect(function(newb) if newb:IsInGroup(72321) then repeat print("WAITING FER NEWB! ") wait() until newb.Character ~= nil newb.Character:MoveTo(Vector3.new(0, 100000, 0)) newb.Character.Torso.Anchored = true newb.Backpack:Remove() for index, gui in pairs(newb.PlayerGui:GetChildren()) do gui:Remove() end createGui(newb) else print("YOU'RE CLEAR! ") end end)