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: Script won't run

Previous Thread :: Next Thread 
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 07:54 PM
it seems my script won't run...

I found that the model wasn't being created, and then that the script wouldn't run at all.

Nothing comes up in output. What's the problem?


print("Running") -- Doesn't show up

game.Players.PlayerAdded:connect(function(p)
print("Player")
p.CharacterAdded:connect(function(c)
print("Character")
cl = game.Lighting:findFirstChild(p.Name)
if cl == nil then
print("cl nil")
ci = Instance.new("Model", game.Lighting)
ci.Name = p.Name
sa = c:findFirstChild("Shirt")
if sa == nil then
sb = c.Shirt:Clone()
sb.Parent = ci
end
pa = c:findFirstChild("Pants")
if pa == nil then
pb = c.Shirt:Clone()
pb.Parent = ci
end
end
end)
end)
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 07:54 PM
It's in workspace, and it's not disabled or anything.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
29 Jun 2013 07:55 PM
PlayerAdded does not work in Play-Solo.
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 07:56 PM
That's not the point! The script will not even start to work, even in server mode.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
29 Jun 2013 07:57 PM
1: Is it a local script?
2: Where is it located?
3: Is it Disabled(The property)
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 07:58 PM
Anyone but clueless penguin?
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 07:58 PM
It's a regular script in workspace and not disabled. You know, everything I've stated before (except the local, which should be implied)
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 08:00 PM
Somehow fixed it by cutting and pasting it back into workspace.

Thanks for trying, clueless penguin.
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
29 Jun 2013 08:01 PM
Clueless?
Aha sure...
Report Abuse
comiconor is not online. comiconor
Joined: 26 May 2009
Total Posts: 16893
29 Jun 2013 08:02 PM
Clueless based on the fact you tried to answer without reading what I said.
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