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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help Debug

Previous Thread :: Next Thread 
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
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 is not online. 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 is not online. 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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 04:32 PM
...
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 04:59 PM
Bump
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 05:20 PM
Anyone?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 05:42 PM
not working The Line with Game have an error
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 06:14 PM
Is it meant to be in the startergui?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 06:19 PM
?
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
29 May 2013 06:21 PM
Normal script in workspace.
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 06:26 PM
Didn't work did the script clone a random object into the player strartergui?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 06:31 PM
?
Report Abuse
blackshockwave is not online. blackshockwave
Joined: 16 Mar 2012
Total Posts: 1381
29 May 2013 06:37 PM
...
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