Netakra
|
  |
| Joined: 02 Dec 2015 |
| Total Posts: 606 |
|
|
| 14 Feb 2016 06:42 PM |
I am trying to make a violinist play the instrument but when I am trying to make it customizable by letting the script choose how many beats per bow and use a set tempo, the wait() in the cframe doesn't seem to be fast enough to be accurate.
Since this is an issue because I am using CFrame, is there another better way to accomplish this?
Here's what I have so far: http://www.roblox.com/games/361493063/Orchestra-WIP
|Netakra| |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2016 06:43 PM |
If you're doing it on the server, it would have replication issues and appear jumpy, which could easily be why.
|
|
|
| Report Abuse |
|
|
Agluk15
|
  |
| Joined: 13 Feb 2016 |
| Total Posts: 193 |
|
|
| 14 Feb 2016 06:43 PM |
| Instead of lowering the wait, why not change the increment you are CFraming it by? The animation will be a bit less smooth, but there are ways to compensate. |
|
|
| Report Abuse |
|
|
12103net
|
  |
| Joined: 08 Jul 2013 |
| Total Posts: 350 |
|
|
| 14 Feb 2016 06:45 PM |
it is ALWAYS better to render on the client.
use remoteevents for better animation |
|
|
| Report Abuse |
|
|
Netakra
|
  |
| Joined: 02 Dec 2015 |
| Total Posts: 606 |
|
|
| 14 Feb 2016 06:49 PM |
What? Doing it on the client?? I've never done animations on the client, why would that increase the preciseness of wait()?
Or would using a some body force/position or whatever be more useful for this?
|Netakra| |
|
|
| Report Abuse |
|
|
|
| 14 Feb 2016 06:52 PM |
The problem isn't wait, it is dropped packets. Your internet isn't foolproof, you know. A lot of the data is lost and needs re-transmitting.
|
|
|
| Report Abuse |
|
|
12103net
|
  |
| Joined: 08 Jul 2013 |
| Total Posts: 350 |
|
|
| 14 Feb 2016 06:54 PM |
because the server has to replicate EVERYTHING. if it's a heavy load, it's not going to replicate well to the client.
>put the violin guy in camera for people when they join and animate it on client with :fireclients |
|
|
| Report Abuse |
|
|
Netakra
|
  |
| Joined: 02 Dec 2015 |
| Total Posts: 606 |
|
|
| 14 Feb 2016 06:55 PM |
@net er... put him in their camera??? what and why? |
|
|
| Report Abuse |
|
|
12103net
|
  |
| Joined: 08 Jul 2013 |
| Total Posts: 350 |
|
|
| 14 Feb 2016 06:57 PM |
camera is rendered on client just do it |
|
|
| Report Abuse |
|
|
12103net
|
  |
| Joined: 08 Jul 2013 |
| Total Posts: 350 |
|
|
| 14 Feb 2016 06:59 PM |
put violin man in replicatedstorage.
game.Players.PlayerAdded:connect(function(p) clone a localscript that clones violin man into camera (server can't access it) end)
|
|
|
| Report Abuse |
|
|
Netakra
|
  |
| Joined: 02 Dec 2015 |
| Total Posts: 606 |
|
|
| 14 Feb 2016 07:03 PM |
| Okay so you're saying I need to clone an entire orchestra into the player's camera, and then run about 50 different musician's instrument scripts in the client |
|
|
| Report Abuse |
|
|
Agluk15
|
  |
| Joined: 13 Feb 2016 |
| Total Posts: 193 |
|
|
| 14 Feb 2016 07:04 PM |
| 12103net has no idea what he is saying btw. |
|
|
| Report Abuse |
|
|
Netakra
|
  |
| Joined: 02 Dec 2015 |
| Total Posts: 606 |
|
|
| 14 Feb 2016 07:05 PM |
@Ag; Okay because he was confusing me.
I figured out the formula I need for the wait since I was using the wrong formula lol, had to actually do more than I thought initially.
|Netakra| |
|
|
| Report Abuse |
|
|
12103net
|
  |
| Joined: 08 Jul 2013 |
| Total Posts: 350 |
|
|
| 14 Feb 2016 07:06 PM |
@akra
uh if you're running 50 scripts at once, that's why it is lagging
give me a model that does a heavy animation load on server, i'll make it client and show you i'm not lying (doesn't have to be your orchestra thing, just something that lags from server to client.)
yes, you need to run the animations on client. |
|
|
| Report Abuse |
|
|
Agluk15
|
  |
| Joined: 13 Feb 2016 |
| Total Posts: 193 |
|
|
| 14 Feb 2016 07:07 PM |
Animations can be ran from the client or server, you troll. Get out. CFraming on the other hand should be like this:
Client (Do animation) > Client Sends to Server > Server sends to all other clients
It will play instantaniously on that client, and after a short delay of about 0.01 on the other clients. |
|
|
| Report Abuse |
|
|