|
| 31 Jul 2015 09:57 AM |
--[[ Im trying to make only certain players allowed but i cut off the Allowed_Players list
]]--
function join(plyr) for i,v in next, Allowed_Players do if plyr.Name == v then local clone = script.ScreenGui clone.Parent = plyr.PlayerGui local text = clone.Frame.Thingy text.Text = ("You are an allowed player!") wait(2.5) clone.Destroy() else local clone = script.ScreenGui clone.Parent = plyr.PlayerGui local text = clone.Frame.Thingy local char = game.Workspace:FindFirstChild(plyr.Name) char.Torso.Anchored = true -- so the player cant move text.Text = ("You are not an allowed player!") wait(2.5) text.Text = ("You're going to be banned within 3 seconds!") wait(3) clone.Destroy() plyr:Destroy() end end end game.Players.ChildAdded:connect() |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 09:58 AM |
| Do you get an error? Does it just not work? |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 09:59 AM |
| I cant play in studio because there are to many parts in the workspace so i cant read the output so i decided to just join with my character out of studio and it didnt work |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 10:02 AM |
i put it in a different place
Output:11:01:12.932 - Attempt to connect failed: Passed value is not a function 11:01:12.933 - Script 'Workspace.Script', Line 37 |
|
|
| Report Abuse |
|
|
|
| 31 Jul 2015 10:03 AM |
Instead of plyr:Destroy()
You can use plyr:Kick() |
|
|
| Report Abuse |
|
|