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: Why are these parts sticking in place?

Previous Thread :: Next Thread 
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
21 Mar 2014 02:47 PM
Hello.

I'm trying to make particle sort of blocks, I made a pretty crappy script but I don't see why the blocks are sticking in place instead of moving.

Here's my script:


model.Name = "Particles"
for i = 1, 7 do
particle = Instance.new("Part", model)
particle.FormFactor = "Custom"
particle.Size = Vector3.new(0.2, 0.2, 0.2)
particle.CanCollide = false
particle.CFrame = CFrame.new(0, 0, 0)
end
for i,v in pairs(model:GetChildren()) do
v.Anchored = false
vel = Instance.new("BodyVelocity", v)
vel.velocity = Vector3.new(math.random(-15, 15), 0, math.random(-15, 15))
vel.maxForce = Vector3.new(9999, 9999, 9999)
wait()
vel:remove()
end
Report Abuse
CitreIthkarr is not online. CitreIthkarr
Joined: 09 Jan 2014
Total Posts: 454
21 Mar 2014 02:50 PM
it removes velocity after 0.03 seconds
Report Abuse
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
21 Mar 2014 02:52 PM
I know, it's meant to.

But the part is unanchored... It should fall, it doesn't move at all.
Report Abuse
CitreIthkarr is not online. CitreIthkarr
Joined: 09 Jan 2014
Total Posts: 454
21 Mar 2014 02:53 PM
what is the p set to

p = power
Report Abuse
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
21 Mar 2014 02:57 PM
The power on the BodyVelocity? It's set to it's default, 1250.

I still don't see how this makes the part not move :L
Report Abuse
CitreIthkarr is not online. CitreIthkarr
Joined: 09 Jan 2014
Total Posts: 454
21 Mar 2014 02:58 PM
crank it up, 1250 isn't that much
Report Abuse
samthemagicman is not online. samthemagicman
Joined: 20 Mar 2011
Total Posts: 1225
21 Mar 2014 03:02 PM
I put it to 2,000, that seemed to fix it.

Thanks Citrelthkarr ^_^
Report Abuse
CitreIthkarr is not online. CitreIthkarr
Joined: 09 Jan 2014
Total Posts: 454
21 Mar 2014 03:09 PM
Glad to help :D
Report Abuse
Voidition is not online. Voidition
Joined: 14 Jul 2012
Total Posts: 1849
21 Mar 2014 03:21 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