BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 05 May 2016 09:38 AM |
Player 1 plays a generic dance animation via LocalScript Player 2 joins while Player 1's animation is in progress and as a result of that the animation is not replicated to him and Player 1 appears as frozen/idle to him
Is there a simple way to fix this?
|
|
|
| Report Abuse |
|
|
DrWaffler
|
  |
| Joined: 16 Sep 2011 |
| Total Posts: 4248 |
|
|
| 05 May 2016 09:41 AM |
| I'm more curious as to the issue this is causing. Care to share? |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 05 May 2016 10:01 AM |
| You're using ROBLOX animation instances, right? If so, sounds more like a bug on their part.. I haven't encountered something like this yet, that's pretty weird. |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 05 May 2016 11:13 AM |
@DrWaffler
For example, you equip a pistol and it plays an equip animation that ends in an equipped pose where both arms are up at an angle as if the character was holding the weapon. Now when a new player joins this pose is not visible, rather the weapon is pointed straight at the ground as the arms remain in their default position.
|
|
|
| Report Abuse |
|
|
|
| 05 May 2016 11:29 AM |
You could either replicate the animation from whatever point its at for the new player that joined, so it looks like the player's equipping it; Or, as long as FilteringEnabled is on, you can just have it show that its equipped while its doing the animation for the other player
#code R+ | local cat = { lives = 9, makeNoise = function() print("meow") end } |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 05 May 2016 11:56 AM |
@Wayne_Gretzky
>"You could either replicate the animation from whatever point its at for the new player that joined"
I already tried that playing with TimePosition and :Play() but no luck producing a result that isn't noticeable whenever a player joins
>"you can just have it show that its equipped while its doing the animation for the other player"
That was my first approach, just playing the animation FROM Player 2 in Player 1, doesn't do anything whatsoever when I try playing it FROM Player 2
|
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 05 May 2016 02:44 PM |
| How did u identify the player |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 05 May 2016 03:13 PM |
@xlaser23
What do you mean?
game.Players.PlayerAdded
|
|
|
| Report Abuse |
|
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 05 May 2016 03:23 PM |
Fffs
Define player
With game.player.localplayer with localscripts
Thats ur problem |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 05 May 2016 03:28 PM |
What are you even talking about? You play the animation from the humanoid
|
|
|
| Report Abuse |
|
|
eRanged
|
  |
| Joined: 15 Jun 2013 |
| Total Posts: 9746 |
|
|
| 05 May 2016 03:30 PM |
They should only freeze for alittle then the animation should load for Player2. not that big of a problem. if that's not the case i think its something wrong on your part.
|
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
| |
|
xlaser23
|
  |
| Joined: 10 Dec 2011 |
| Total Posts: 20341 |
|
|
| 05 May 2016 05:42 PM |
ur using a local script
define humanoid with
local plr = game.Players.LocalPlayer local char = plr.Character local human = char.Humanoid
|
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 06 May 2016 02:46 AM |
xlaser23 you are aware I'm not having issues with the animation actually playing yes?
|
|
|
| Report Abuse |
|
|
|
| 06 May 2016 02:58 AM |
First, WannaBet makes a thread: https://forum.roblox.com/Forum/ShowPost.aspx?PostID=188658025
If it doesn't sync up after a few seconds it's a problem on ROBLOX's part. While the animation editor is fairly amazing in some ways, I think at the end of the day for now we may be stuck with welding.
I literally cannot think of a single way you could solve this.
|
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
| |
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 06 May 2016 06:06 AM |
I think xlaser is right, why use a PlayerAdded in a local script? you just wait until the character loads and then play the animation.
Player = game.Players.LocalPlayer repeat wait() until Player.Character ~= nil animation = workspace.animation AnimTrack = Player.Character.Humanoid:LoadAnimation(animation) AnimTrack:Play() |
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 06 May 2016 06:49 AM |
Jesus Christ if you guys don't understand the issue @xlaser & golandgoal then please don't try to tell me how to fix, thank you
|
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 06 May 2016 07:05 AM |
I think it's you that is the problem here, instead of trying what we are telling you to do, you just get mad at us.
I tried the PlayerAdded event and the localplayer method, when using PlayerAdded only 1 could play the animation even if that is not similar to your problem. while using localplayer, both players were able to play the animation. So I don't understand why you can't try it |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 06 May 2016 08:05 AM |
Should you be running the animation via the server to replicate to the other clients.
|
|
|
| Report Abuse |
|
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
|
| 06 May 2016 09:50 AM |
@golangoal
People like you are the worst on Scripters, literal cancer Your intent is not to help but to be a smartass
There is no "we" as you phrased, there is you not understanding the problem while many others clearly do as seen by the other replies. You are just trying to buy into my misunderstanding of what xlaser (which he poorly phrased) said and now basing your entire idiocy around that (referring to PlayerAdded)
If you read further up someone else suggested playing the animation again whenever a player joins, now what unearthly magic would you utilize to detect when a new player joins? PlayerAdded maybe?
If you put the simple puzzle pieces together you can figure out by what has been said: Playing the animation works fine, it does not replicate when it is in progress when a new player joins
@TimeTicks
You could do that but you don't want to have a delay (latency) when playing an animation locally which is also why ROBLOX chose to replicate animations played locally in the first place, to make it more convenient
|
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 06 May 2016 10:47 AM |
| All I did was agree with xlaser because I use animation editor too and I know how it works. You asked for help and I gave you the reason why I think it doesn't work. |
|
|
| Report Abuse |
|
|
golangoal
|
  |
| Joined: 26 Apr 2011 |
| Total Posts: 185 |
|
|
| 06 May 2016 10:58 AM |
| And you know what? I'm not even a good scripter, animation editor is one of the only things I know. I never came to be a "smartass" over you, you just came with a negative attitude towards me just because you think that playeradded is not the problem. |
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 06 May 2016 10:58 AM |
@TimeTicks, the animation is supposed to be played from the client side. Server side animations would look funny to the client.
Server side would have input sent to the server. And the server would replicate back the reaction. Thus, it would have ping delayed animations.
|
|
|
| Report Abuse |
|
|
hkep
|
  |
| Joined: 19 Jul 2014 |
| Total Posts: 550 |
|
|
| 06 May 2016 11:04 AM |
@BenBonez, your problem is delayed replication. More than likely it is because of the animation not being loaded to the client during mid-animation. If that is the case it is Roblox's fault.
Otherwise, a less likely situation, it could be that the client is purposefully not allowing the animation until the client is loaded. |
|
|
| Report Abuse |
|
|