|
| 17 Jul 2012 06:29 PM |
pos = game.workspace.test local temp = nil local dist = 4 torso = temp dist = (temp.Position - pos).magnitude if (temp.Position - pos).magnitude < dist then p = game.Players:GetChildren() for i = 1,#p do p[i].Character.Torso.CFrame:Destroy() end end This is the error i'm getting. ((--Unknown object class "Workspace" while reading XML--))
|
|
|
| Report Abuse |
|
|
|
| 17 Jul 2012 06:30 PM |
| You forgot to capitalize Workspace in line 1 |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Jul 2012 06:38 PM |
| Hmm.. any thing else you see, i fixed the workspace error thing. |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2012 06:41 PM |
8P ((--Workspace.Script:5: attempt to index local 'temp' (a nil value)--))
|
|
|
| Report Abuse |
|
|
|
| 17 Jul 2012 06:41 PM |
pos = game.Workspace.test local dist = 4 torso = temp dist = (temp.Position - pos).magnitude if (temp.Position - pos).magnitude < dist then p = game.Players:GetChildren() for i = 1,#p do p[i].Character.Torso.CFrame:Destroy() end end print("Working script!") |
|
|
| Report Abuse |
|
|
iAdobe
|
  |
| Joined: 22 May 2011 |
| Total Posts: 367 |
|
| |
|