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 » Scripters
Home Search
 

Re: Can someone help me fix my script

Previous Thread :: Next Thread 
MyDominus is not online. MyDominus
Joined: 25 Feb 2014
Total Posts: 174
25 Oct 2015 11:59 AM
function removeLag(obj)
obj.Name=obj.Name .. " "
for v,i in pairs(obj:GetChildren()) do
removeLag(v)
end
end
removeLag(workspace)

it says
attempt to index local 'obj' (a number value)
why v means the obj it is referring to right?

the goal of this is to make a invisible space on each thing in workspace so it would break the game they put the model in.
Report Abuse
BRAYONCE is not online. BRAYONCE
Joined: 18 Apr 2011
Total Posts: 1551
25 Oct 2015 12:14 PM
#code
function removeLag(obj)
obj.Name=obj.Name.." "
for _,v in pairs(obj:GetChildren()) do
removeLag(v)
end
end
removeLag(game.workspace)

just ftr that is gonna loop through a path until there is nothing left


#code Forums.BRAYONCE.Response:FireClient(response)
Report Abuse
MyDominus is not online. MyDominus
Joined: 25 Feb 2014
Total Posts: 174
25 Oct 2015 12:15 PM
thank you.
Report Abuse
MyDominus is not online. MyDominus
Joined: 25 Feb 2014
Total Posts: 174
25 Oct 2015 12:17 PM
u made a mistake it is game.Workspace not game.workspace
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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