NetakraJoin Date: 2015-12-02 Post Count: 606 |
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| |
|
|
If you're doing it on the server, it would have replication issues and appear jumpy, which could easily be why.
|
|
Agluk15Join Date: 2016-02-13 Post Count: 193 |
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. |
|
12103netJoin Date: 2013-07-08 Post Count: 350 |
it is ALWAYS better to render on the client.
use remoteevents for better animation |
|
NetakraJoin Date: 2015-12-02 Post Count: 606 |
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| |
|
|
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.
|
|
12103netJoin Date: 2013-07-08 Post Count: 350 |
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 |
|
NetakraJoin Date: 2015-12-02 Post Count: 606 |
@net
er... put him in their camera??? what and why? |
|
12103netJoin Date: 2013-07-08 Post Count: 350 |
camera is rendered on client
just do it |
|
12103netJoin Date: 2013-07-08 Post Count: 350 |
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)
|
|
NetakraJoin Date: 2015-12-02 Post Count: 606 |
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 |
|
Agluk15Join Date: 2016-02-13 Post Count: 193 |
12103net has no idea what he is saying btw. |
|
NetakraJoin Date: 2015-12-02 Post Count: 606 |
@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| |
|
12103netJoin Date: 2013-07-08 Post Count: 350 |
@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. |
|
Agluk15Join Date: 2016-02-13 Post Count: 193 |
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. |
|