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 » Scripters
Home Search
 

Re: Making part follow a diagnal line?

Previous Thread :: Next Thread 
SteelCrown is not online. SteelCrown
Joined: 11 Aug 2012
Total Posts: 145
27 Jan 2015 09:33 AM
Like there's a line and the part is supposed to "ride" it. I don't want to weld though...
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
27 Jan 2015 09:35 AM
make a tween function and have to move to one side of the line and tween to the other

I have a function for that but its not very good it was more of a proof on concept
I think its in my models
Report Abuse
SteelCrown is not online. SteelCrown
Joined: 11 Aug 2012
Total Posts: 145
27 Jan 2015 09:36 AM
What do you mean "one side of the line and tween to the other"?

What is my alpha for tweening
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
27 Jan 2015 09:42 AM
here is a really lazy example but it works


local function tweenPart(basePart, vector0, vector1)
for x = 0, 100, 1 do
basePart.CFrame = CFrame.new(vector0:lerp(vector1, (x / 100)))
wait()
end
end

local part = Instance.new("Part", workspace)
part.Anchored = true

tweenPart(part, part.Position, Vector3.new(40, 50, 60))
Report Abuse
SteelCrown is not online. SteelCrown
Joined: 11 Aug 2012
Total Posts: 145
27 Jan 2015 09:57 AM
kk I'll try that and play around with it ty
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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