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
|
  |
| 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 |
|
|
|
| 29 Jun 2013 07:55 PM |
| PlayerAdded does not work in Play-Solo. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 26 May 2009 |
| Total Posts: 16893 |
|
|
| 29 Jun 2013 07:58 PM |
| Anyone but clueless penguin? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
| |
|
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 |
|
|