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: ANIMATION NOT WORKING IN MULTIPLAYER?

Previous Thread :: Next Thread 
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 08:05 PM
I created an animation for an in animate object using roblox's animation editor and when I hit play on roblox studio, it works perfectly. However, whenever I go to multiplayer, the animation doesn't work! I thought there might've been something wrong with the welds or the script but I'm not getting any errors in the console or output. Whats going on?
Report Abuse
Bernkastel2727 is not online. Bernkastel2727
Joined: 23 Sep 2012
Total Posts: 2612
02 Jun 2016 08:06 PM
Is your animation script local?


Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 08:08 PM
No, the animation script is server side and the object is not attached to the player at all.
Report Abuse
Bernkastel2727 is not online. Bernkastel2727
Joined: 23 Sep 2012
Total Posts: 2612
02 Jun 2016 08:10 PM
Where are you putting the animation? and are you even playing it?


Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 08:13 PM
The animation is inside the script and yes it is playing. When I went to roblox studio, it works fine. But when I go to an actual server, the animation isn't playing at all.
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 08:17 PM
I mean, there doesn't seem to be anything wrong with my script I think:

local animController = Instance.new("AnimationController")
animController.Parent = script.Parent
local Roar = script:WaitForChild("Roar")
local RoarAnimation = animController:LoadAnimation(Roar)

RoarAnimation:Play()

The Roar Animation is a child of the script and its a loop script. The thing it is interacting with is a non humanoid object.
Report Abuse
Void_Optics is not online. Void_Optics
Joined: 21 Mar 2016
Total Posts: 286
02 Jun 2016 08:26 PM
Add wait(1) between the last two lines
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 08:46 PM
Tried it. Doesn't work. Whats even weirder is that I made a small script to test if the animation was playing or not:

while wait() do
if RoarAnimation.IsPlaying then
print("Playing")
else
print("Not playing")
end

And for some super weird reason, I checked the output in server mode and it said that the animation WAS playing but it wasn't appearing on my player screen. Is there any reason for this? Why is it I can't see the animation on my player screen?
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 09:17 PM
Bump
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 09:30 PM
Alright this is officially MEGA weird. I went to server mode in roblox studio. I looked in the server screen and the animation was playing. I then looked in the player screen and the animation wasn't playing. WTH?
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
02 Jun 2016 09:54 PM
Bump
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
03 Jun 2016 01:46 AM
Bump2
Report Abuse
unwarranted is not online. unwarranted
Joined: 05 Jun 2009
Total Posts: 1087
03 Jun 2016 02:19 AM
maybe it hasnt loaded? try preloading it beforehand


mom wheres the spaghetti
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
03 Jun 2016 07:19 PM
It had already loaded in. I think. I think its just the player can't see it.
Report Abuse
OmariHero is not online. OmariHero
Joined: 14 Aug 2013
Total Posts: 4193
03 Jun 2016 07:21 PM
Yeah I'd like to know why this happens as well.


The more you grind, the more you'll shine.
Report Abuse
seanbenish is not online. seanbenish
Joined: 31 Jul 2009
Total Posts: 429
03 Jun 2016 07:42 PM
Does the animation "Roar" have an ID, or a roblox link?


public static void main(String[] args) { System.out.println("Oops! Wrong language."); }
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
03 Jun 2016 08:30 PM
Yes it does. Its really weird because now I just tested it and it works ok in multiplier but some other players can't see it. Is this some kind of roblox error on their part?
Report Abuse
dansk is not online. dansk
Joined: 24 Dec 2008
Total Posts: 548
03 Jun 2016 08:34 PM
I THINK I resolved the problem. I added like wait(20) at the beginning of my script now it seems to work normally. Very odd.
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