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: wait() isn't fast enough for this...

Previous Thread :: Next Thread 
Netakra is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. 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 is not online. 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 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
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