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: Anyway to anchor a item when inserted?

Previous Thread :: Next Thread 
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:14 PM
Can you please help I'm not a good scripter so please help me

Thanks

-YOSkater
Report Abuse
ToxicDominator is not online. ToxicDominator
Joined: 24 Oct 2013
Total Posts: 8373
23 Dec 2013 08:16 PM
workspace.ChildAdded:connect(function(p)
if p:isA("BasePart") then wait();
p.Anchored=true;
end;
end);
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:19 PM
that doesn't work :/
Or doe I change "basepart" to the name of the item
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:29 PM
bump
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
23 Dec 2013 08:31 PM
game.Workspace.ChildAdded:connect(function(p)
if p:IsA("BasePart") then wait()
p.Anchored=true
end
end)
--This should work just fine.
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:40 PM
Hmm still doesn't...
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:42 PM
The item keeps falling through the map
Report Abuse
vampirexevipex is not online. vampirexevipex
Joined: 11 Apr 2009
Total Posts: 1598
23 Dec 2013 08:43 PM
is it inside a model?
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:44 PM
yes.
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
23 Dec 2013 08:44 PM
Use recursive function.
Report Abuse
chickenman158 is not online. chickenman158
Joined: 18 Jan 2011
Total Posts: 915
23 Dec 2013 08:45 PM
You should probably learn to script before asking here.

Check out http://wiki.roblox.com/ for some help.
Report Abuse
YOSkater is not online. YOSkater
Joined: 19 Mar 2011
Total Posts: 13337
23 Dec 2013 08:45 PM
Honestly, idk how to script :/
Report Abuse
GRAGGER2001 is not online. GRAGGER2001
Joined: 05 Apr 2009
Total Posts: 2043
23 Dec 2013 09:02 PM
game.Workspace.ChildAdded:connect(function(p)
if p:IsA("Model") then wait()
for i,v in pairs(p:GetChildren())do
if v:IsA('Part')then
v.Anchored=true
end
end
end
end)
--This should work just fine.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Dec 2013 09:23 PM
workspace.DescendantAdded:connect(function(x)
if x:IsA("BasePart") and x ~= workspace.Terrain then
x.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