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: Model Float

Previous Thread :: Next Thread 
pieshop97 is not online. pieshop97
Joined: 11 Mar 2011
Total Posts: 550
24 Sep 2014 08:59 PM
Okay so I'm trying to make this model of a guy float, I tried making it one giant union so I could use this script here:
while true do
wait(0.1)
v = script.Parent.Position
for i = 1, 5 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
end
for i = 4, 1, -1 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
end
wait(0.1)
for i = 1, 5 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
end
for i = 4, 1, -1 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
end
script.Parent.Position = v
end

Because when I put the script in every part it just made everything off centered.
Except I can't make it a union because head meshes aren't supported (ROBLOX please fix that problem kk)
Anyways, How do I modify the script above to make the entire model float, but not be off centered and be where the bricks are supposed to be?
Report Abuse
pieshop97 is not online. pieshop97
Joined: 11 Mar 2011
Total Posts: 550
24 Sep 2014 09:03 PM
That moment when you post an actually question asking for help and it disappears in 5 seconds because no one cares enough to read it.
Report Abuse
pieshop97 is not online. pieshop97
Joined: 11 Mar 2011
Total Posts: 550
24 Sep 2014 09:05 PM
Btw it's not a free model, it's just an NPC I made that I put into a model.

(Maybe that's why no one's replying.)
Report Abuse
SirNoobly is not online. SirNoobly
Joined: 01 Oct 2009
Total Posts: 253
24 Sep 2014 09:06 PM
Use :SetPrimaryPartCFrame() and :GetPrimaryPartCFrame ( ) be sure to set the PrimaryPart of the model.
http://wiki.roblox.com/index.php?title=API:Class/Model

I think.
Report Abuse
pieshop97 is not online. pieshop97
Joined: 11 Mar 2011
Total Posts: 550
24 Sep 2014 09:16 PM
Probably way off here but is this sortof what you meant?
for i = 1, 5 do
game.Workspace.Sycthe.GetPrimaryPartCFrame:Brick2(Vector3.new(0,i/40,0))
game.Workspace.Sycthe.SetPrimaryPartCFrame:Brick2(Vector3.new(0,i/40,0))
while true do
wait(0.1)
v = script.Parent.Position
for i = 1, 5 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
end
for i = 4, 1, -1 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,i/40,0)
end
wait(0.1)
for i = 1, 5 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
end
for i = 4, 1, -1 do
wait(0.1)
script.Parent.Position = script.Parent.Position + Vector3.new(0,-i/40,0)
end
script.Parent.Position = v
end
end

I mean it doesn't tell me it's a script that wont work, I just don't know if I'm using it right. But like I said, I'm probably way off.

(Sycthe is the name of the model)
Report Abuse
pieshop97 is not online. pieshop97
Joined: 11 Mar 2011
Total Posts: 550
24 Sep 2014 09:22 PM
I just want the entire model to float up and down slowly. :l
Report Abuse
pieshop97 is not online. pieshop97
Joined: 11 Mar 2011
Total Posts: 550
25 Sep 2014 06:42 PM
-Still No Reply.-
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