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 » Scripting Helpers
Home Search
 

[ Content Deleted ]

Previous Thread :: Next Thread 
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:04 AM
[ Content Deleted ]
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
25 Sep 2011 02:06 AM
Put it into a function like

function onPlayerAdded
--all that stuff up there
end

Then reconnect it to that ^^^
After that, type at the end

onPlayerAdded(game.Players.Player)

for testing in solo. Then pootis outpootis.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:07 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:09 AM
I'm pretty sure that 'Player' is not added to the Player's through that event, like normal.
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:10 AM
Also, Fred's idea is not really much different than yours. His was without using anonymous functions, and only 'Player' could run, though 'Player' never joins Players through PlayerAdded, like players do, online, as far as I know.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:10 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:13 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:15 AM
Woof, yours was fine, other than the fact that your loop runs with no purpose. Make it so that if the new player's name matches those on the table, then you either run a separate function, doing what you did, after the loop, or you could just move what you did, below, up there.

adminlist={"1WOOF1","2WOOF2"}

game.Players.PlayerAdded:connect(function(player)
for i = 1,#adminlist do
if player.Name == adminlist[i] then
print("Give the orb!")
bigpart=Instance.new("Part", player.Character)
smallpart=Instance.new("Part",bigpart)
bigpart.Name = "ORBPART"
bigpart.Shape = "Ball"
bigpart.Size = Vector3.new(2,2,2)
bigpart.Transparency = 0.3
bigpart.BottomSurface = "Smooth"
bigpart.TopSurface = "Smooth"
bigpart.formFactor = "Symmetric"
smallpart.Name = "ORBPART"
smallpart.Shape = "Ball"
smallpart.Size = Vector3.new(1,1,1)
smallpart.formFactor = "Symmetric"
smallpart.BottomSurface = "Smooth"
smallpart.TopSurface = "Smooth"
smallpart.Material = "Slate"
floaty=script.floaty:Clone()
floaty.Parent = bigpart
floaty.Disabled = false
print("Orb given")
end
end
end)
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:15 AM
Assuming the properties were all spelt right, that may work.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:18 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:19 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:20 AM
Mhmm. :o
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:23 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:30 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:32 AM
I guess, but I am not good with string.find, yet.. Having a bit of trouble grasping that one. :o
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:33 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:35 AM
This is only a portion of the script, though?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:36 AM
[ Content Deleted ]
Report Abuse
grimm343 is not online. grimm343
Joined: 18 Sep 2008
Total Posts: 2796
25 Sep 2011 02:40 AM
I do not see player defined. Replace that line for..

laz0r(workspace[NameOfPerson].ORBPART, game.Players[NameOfPerson].Character.Torso)

Let me know?
I'm off for the night.
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
25 Sep 2011 02:41 AM
[ Content Deleted ]
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
25 Sep 2011 03:15 AM
@Grim, read my whole post. They're not the same.

@WOOF, Solo = Tools > Test > Play Solo on studio.
Report Abuse
natedogith1 is not online. natedogith1
Joined: 09 Aug 2008
Total Posts: 578
25 Sep 2011 03:25 AM
instead of Workspace[player.Name].ORBPART you should use player.ORBPART
Report Abuse
Fl0x is not online. Fl0x
Joined: 06 Aug 2010
Total Posts: 5169
25 Sep 2011 03:27 AM
Pootis.
Report Abuse
Fredfishy is online. Fredfishy
Joined: 21 Mar 2009
Total Posts: 4197
25 Sep 2011 03:36 AM
Spencer.
Report Abuse
spamani20 is not online. spamani20
Joined: 29 May 2010
Total Posts: 50
25 Sep 2011 04:46 AM
[ Content Deleted ]
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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