|
| 02 Dec 2016 04:08 PM |
| I want it so Part A, no matter where I drag it, Rotates so it is ALWAYS facing Part B, how can I do this? |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:14 PM |
PartA.Changed:connect(function() PartA.CFrame = CFrame.new(PartA.Position, PartB.Position) end) |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:15 PM |
Forget that last post.
game:getService("RunService").Heartbeat:connect(function() PartA.CFrame = CFrame.new(PartA.Position, PartB.Position) end) |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:26 PM |
I'll never forget ;3
Side question what is the difference between Heartbeat and RenderStepped? |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:27 PM |
| heartbeat is server sided i think |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Dec 2016 04:29 PM |
| So Yeah, but I was wondering, what if I want to do it from a weld, so it only affects the Y rotation of part A |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:30 PM |
game:getService("RunService").Heartbeat:connect(function() PartA.CFrame = CFrame.new(PartA.Position, Vector3.new(PartB.Position.X,partA.Position.Y,PartB.Position.Z)) end) |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:31 PM |
| That should ensure part A stays flat along the X-Z plane |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2016 04:35 PM |
I want to stay only rotate on the Y axis, but it's doing x, or z, I think. Could you just come on to it and help me?
https://www.roblox.com/games/388364175/darkjediwarriorXs-Place-Number-26 |
|
|
| Report Abuse |
|
|