generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Can someone please fix my script

Previous Thread :: Next Thread 
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
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
distalDigitPhalanx is not online. distalDigitPhalanx
Joined: 25 Jan 2015
Total Posts: 1509
31 Jul 2015 09:58 AM
Do you get an error? Does it just not work?
Report Abuse
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
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
killaman333 is not online. killaman333
Joined: 16 Jan 2013
Total Posts: 1143
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
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
31 Jul 2015 10:03 AM
Instead of plyr:Destroy()

You can use plyr:Kick()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image