1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
grimm343
|
  |
| Joined: 18 Sep 2008 |
| Total Posts: 2796 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
1WOOF1
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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
|
  |
| Joined: 03 May 2009 |
| Total Posts: 20682 |
|
| |
|
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 |
|
|
|
| 25 Sep 2011 03:25 AM |
| instead of Workspace[player.Name].ORBPART you should use player.ORBPART |
|
|
| Report Abuse |
|
|
Fl0x
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 5169 |
|
| |
|
Fredfishy
|
  |
| Joined: 21 Mar 2009 |
| Total Posts: 4197 |
|
| |
|
spamani20
|
  |
| Joined: 29 May 2010 |
| Total Posts: 50 |
|
| |
|