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: Script help

Previous Thread :: Next Thread 
roundzombie4 is not online. roundzombie4
Joined: 10 Dec 2011
Total Posts: 153
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
FreeGamesROBLOX is not online. FreeGamesROBLOX
Joined: 15 Jun 2011
Total Posts: 6622
17 Jul 2012 06:30 PM
You forgot to capitalize Workspace in line 1
Report Abuse
roundzombie4 is not online. roundzombie4
Joined: 10 Dec 2011
Total Posts: 153
17 Jul 2012 06:32 PM
Oh lol Thank you.
Report Abuse
roundzombie4 is not online. roundzombie4
Joined: 10 Dec 2011
Total Posts: 153
17 Jul 2012 06:38 PM
Hmm.. any thing else you see, i fixed the workspace error thing.
Report Abuse
roundzombie4 is not online. roundzombie4
Joined: 10 Dec 2011
Total Posts: 153
17 Jul 2012 06:41 PM
8P
((--Workspace.Script:5: attempt to index local 'temp' (a nil value)--))
Report Abuse
roundzombie4 is not online. roundzombie4
Joined: 10 Dec 2011
Total Posts: 153
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 is not online. iAdobe
Joined: 22 May 2011
Total Posts: 367
17 Jul 2012 07:07 PM
[ Content Deleted ]
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