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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 12:59 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:06 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:08 PM
[ Content Deleted ]
Report Abuse
TheMinid is not online. TheMinid
Joined: 20 Jun 2012
Total Posts: 128
27 Dec 2013 01:10 PM
Im really, really new to scripting, but isnt it " instead of '
Report Abuse
gdaka is not online. gdaka
Joined: 29 Dec 2011
Total Posts: 1438
27 Dec 2013 01:10 PM
Yes.
I had to bump my thread 21 times before two people responded
"That's enough bumps!"
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:10 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:12 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:13 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:14 PM
[ Content Deleted ]
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
27 Dec 2013 01:14 PM
if v.ClassName == not 'Seat' then v.Anchored = true
Report Abuse
LordDeofol is not online. LordDeofol
Joined: 29 May 2010
Total Posts: 614
27 Dec 2013 01:15 PM
idfk
I understand, you want all parts with the ClassName of seat to be anchored.
I've never seen this before since I'm new, but try naming all the seats something all the same like 'Seat' or something.

for i,v in pairs(workspace:GetChildren()) do
if v.Name == "Seat" then
v.Anchored = true
end
end
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:17 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:17 PM
[ Content Deleted ]
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
27 Dec 2013 01:18 PM
He does NOT want seats anchored..
But maybe he haves seats inside a model and he can't access them with that script and that's why it won't work.
Report Abuse
LordDeofol is not online. LordDeofol
Joined: 29 May 2010
Total Posts: 614
27 Dec 2013 01:18 PM
k get out
I tried to help you. You're welcome. You won't get any help if you keep bumping.
Report Abuse
PiggyJingles is not online. PiggyJingles
Joined: 13 Jan 2009
Total Posts: 2472
27 Dec 2013 01:19 PM
Stawp with the 1 minute bumps.
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:20 PM
[ Content Deleted ]
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:23 PM
[ Content Deleted ]
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
27 Dec 2013 01:25 PM
Does the GetChildren method searches INSIDE the childrens of Workspace? Because if your parts are in a model, and the GetChildren method doesn't go that deep, it won't be able to find them.
I'm not an experienced scripter, sorry.

~Kingmouli, King of the Mouli~
Report Abuse
TheDarkMelon is not online. TheDarkMelon
Joined: 26 Jan 2013
Total Posts: 17713
27 Dec 2013 01:26 PM
[ Content Deleted ]
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
27 Dec 2013 01:27 PM
for _,v in pairs(Workspace:GetChildren()) do
if v.ClassName == "Part" then
v.Anchored=true
end
end
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
27 Dec 2013 01:28 PM
thatll return all things with the classname of part,so it wont return a seat:)
Report Abuse
CrniOrao is not online. CrniOrao
Joined: 12 Oct 2008
Total Posts: 2274
27 Dec 2013 01:30 PM
for _,v in pairs(Workspace:GetChildren()) do
if v.ClassName ~= "Seat" then
v.Anchored = true
end
end
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
27 Dec 2013 01:38 PM
for _,v in pairs(Workspace:GetChildren()) do if not v:IsA("Seat") and v:IsA("BasePart") then v.Anchored=true 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