|
| 29 May 2013 04:07 PM |
So I want to make it where if its 1 it clones an object into the players starterpack
function PlayerEnter --Not sure if this is a real function math.ramdom(1,5) ---I'm not good with ramdom events if 1 then Lighting.Lotus:clone() into Startergui ---Not good with clone either |
|
|
| Report Abuse |
|
|
QuisMo
|
  |
| Joined: 09 Jul 2010 |
| Total Posts: 16640 |
|
|
| 29 May 2013 04:09 PM |
Hey, I think I know what you mean...
I'll see if I come up with something, hold on. |
|
|
| Report Abuse |
|
|
Arkose
|
  |
| Joined: 26 May 2013 |
| Total Posts: 745 |
|
|
| 29 May 2013 04:09 PM |
game.Players.PlayerAdded:connect(function(play) numb = math.random(1, 5) if numb == 1 then game.Lighting.Lotus:Clone().Parent = play.PlayerGui end end)
Something like that.
Need more help? Feel free to PM me :) |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 04:25 PM |
New Version
game.Players.PlayerAdded:connect(function(play) numb = math.random(1, 3) if numb == 1 then game.Lighting.Lotus:Clone().Parent = play.PlayerGui if numb == 2 then game.Lighting.D:Clone().Parent = play.PlayerGui if numb == 3 then game.Lighting.G:Clone().Parent = play.PlayerGui end
Don't work |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 29 May 2013 05:25 PM |
local Items = { "Lotus"; "D:"; "G"; }
game.Players.PlayerAdded:connect(function(play) Game.Lighting[Items[math.random(#Items)]:Clone().Parent = play.PlayerGui end |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 05:25 PM |
Oops.
local Items = { "Lotus"; "D:"; "G"; }
game.Players.PlayerAdded:connect(function(play) Game.Lighting[Items[math.random(#Items)]:Clone().Parent = play.PlayerGui end) |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 05:42 PM |
| not working The Line with Game have an error |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 05:44 PM |
local Items = { Lotus; "D"; "G"; }
game.Players.PlayerAdded:connect(function(play) Game.Lighting[Items[math.random(#Items)]]:Clone().Parent = play.PlayerGui end) |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 06:14 PM |
| Is it meant to be in the startergui? |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 May 2013 06:21 PM |
| Normal script in workspace. |
|
|
| Report Abuse |
|
|
|
| 29 May 2013 06:26 PM |
| Didn't work did the script clone a random object into the player strartergui? |
|
|
| Report Abuse |
|
|
| |
|
| |
|