As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 01 Feb 2013 04:52 PM |
Hello there.
I am not usually on this forum, but the scripting forum, so I may warn you that I might come up with some more technical solutions when explaining my problem.
-------------------------------------------------------------------------------------------
So, I have a part that I want to move using a LocalScript, smoothly.
So far, I've made this happen. Yesterday, I tested my game in online mode on a secret account, and realized that there was somewhat of a problem in online mode. The part was moving very... laggy? What I did to make it move, was to use a BodyPosition (Change the position, and it will move it's Parent object to that location, with a sliding (smooth) effect), and when it should have got there by the time the BodyPosition used to make it slide over there, it would set the CFrame of the part to the finish point. Which was in order to secure that the part got to the location NO MATTER WHAT!
Then; I've found another solution, but it has the risk of being inefficient if the player leave the game while the part is moving, because a LocalScript runs in the player's temporary objects, meaning that the script moving the part will be removed when the player leave the game. Or reset for that sake.
My solution (not recommended): Using a loop and set the CFrame. Will not be smoothly, but will neeearly look like, as it will be faster than your eyes can recognize.
Any ideas how to solve such a situation?
- As |
|
|
| Report Abuse |
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 02 Feb 2013 12:11 PM |
Hm, I could either have been too complicated, or maybe these guys don't know how to solve daz problemos D:
Well, then... cya.
- As, an user who have experienced at least >9< bugs from Roblox Studio 2013. |
|
|
| Report Abuse |
|