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: whats wrong with this

Previous Thread :: Next Thread 
LordFedoraS5 is not online. LordFedoraS5
Joined: 30 Apr 2012
Total Posts: 1300
01 Nov 2014 05:41 PM
i can't script jack


script.Parent.ClickDetector.MouseClick:connect(function()
for i, v in pairs (game.Workspace:GetChildren()) do
if v.Name == "Car" then
v.Anchored = true
wait(10)
v.Anchored = false
end
end
end)
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
01 Nov 2014 05:43 PM
If Car is a model, setting it to unanchored will just error
Report Abuse
LordFedoraS5 is not online. LordFedoraS5
Joined: 30 Apr 2012
Total Posts: 1300
01 Nov 2014 05:45 PM
It is a model. It won't anchor or unanchor, so what would I do?
Report Abuse
devTools is online. devTools
Joined: 06 Sep 2014
Total Posts: 7950
01 Nov 2014 05:46 PM
Get the children of the model.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
01 Nov 2014 05:47 PM
for _,nv in pairs(v:GetChildren()) do
if nv:IsA("BasePart") then
nv.Anchored = true
coroutine.wrap(function()
wait(10)
nv.Anchored = false
end)()
end
end
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