|
| 03 Nov 2011 07:13 PM |
-- Lighting
function light(newPlayer) Workspace.Light.Position = newPlayer.Character.Torso.Position end
game.Players.PlayerAdded:connect(light)
After I move, it won't move.
No errors. |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2011 07:16 PM |
Make a second script, name it moveLight, and put this in it:
while wait() do game.Workspace.Light.Position = script.Parent.Torso.Position end
And change the original script to this
game.Players.PlayerAdded:connect(function(p) repeat wait() until p.Character copy = game.Workspace.moveLight:clone() copy.Parent = p.Character end) |
|
|
| Report Abuse |
|
|
|
| 03 Nov 2011 07:22 PM |
| I need it go not up the player, down. |
|
|
| Report Abuse |
|
|
DXPower
|
  |
| Joined: 21 Oct 2008 |
| Total Posts: 2866 |
|
|
| 03 Nov 2011 07:22 PM |
function light(newPlayer) lite = game.Workspace.Light.Position = newPlayer.Character.Torso.Position lite.Parent = newPlayer.Character.Torso t = newPlayer return t end game.Players.PlayerAdded:connect(light) if t.Light.Position = t.Position then end else t.Light.Position = t.Position end end
Hope this works, if not tell me the output. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Nov 2011 07:23 PM |
| How dare you post before me! |
|
|
| Report Abuse |
|
|