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
 

Re: Simple script fix...

Previous Thread :: Next Thread 
GiverLol is not online. GiverLol
Joined: 20 Dec 2010
Total Posts: 810
06 Jul 2012 01:01 AM
game.Players.PlayerAdded:connect(function(p)
lol = game.Lighting.Intro:clone()
lol.Parent = p.PlayerGui
end)


Could anyone say what is wrong or how to fix it?
Thanks!
Report Abuse
plesantly8 is not online. plesantly8
Joined: 24 Feb 2010
Total Posts: 136
06 Jul 2012 01:09 AM
There souldn't be a ) beside the end... Also, there is a better way to make arrange this script.

And what is the script supposed to do?

Report Abuse
GiverLol is not online. GiverLol
Joined: 20 Dec 2010
Total Posts: 810
06 Jul 2012 01:11 AM
At first:
It need to be becouse it says something like (function
At second:
It is supposed to load a intro gui when a player enters.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
06 Jul 2012 01:13 AM
game.Players.PlayerAdded:connect(function(p)
lol = game.Lighting.Intro:Clone()
lol.Parent = p.PlayerGui
end)

There was pretty much nothing wrong with it except I changed clone() to Clone() because I like my methods capitalized.
Report Abuse
GiverLol is not online. GiverLol
Joined: 20 Dec 2010
Total Posts: 810
06 Jul 2012 01:14 AM
Thanks!
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
06 Jul 2012 01:14 AM
No problem
Report Abuse
plesantly8 is not online. plesantly8
Joined: 24 Feb 2010
Total Posts: 136
06 Jul 2012 01:22 AM
Oh I was thinking about putting in a different way, I'm too tired... It's 2:22 AM.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
06 Jul 2012 01:28 AM
@pleasantly
I'm pretty sure you meant to do it like this:
function PlayerEntered(p)
--[[code]]--
end
game.Players.PlayerAdded:connection(PlayerEntered)

They are the same thing except the one before this uses an anonymous function and, personally, I prefer using the other one over this template.
Report Abuse
plesantly8 is not online. plesantly8
Joined: 24 Feb 2010
Total Posts: 136
06 Jul 2012 01:31 AM
Yeah that's the way I was going to suggest, but I was too tired to put that way. I prefer using it that way.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
06 Jul 2012 01:32 AM
I prefer the other way so I don't have to worry about the connection line and making sure I have the correct function name afterwards.
Report Abuse
plesantly8 is not online. plesantly8
Joined: 24 Feb 2010
Total Posts: 136
06 Jul 2012 02:41 AM
I still like it my way because any way I want it that's the way I need it...
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