zenlaha.blogg.se

Cartoon roblox character
Cartoon roblox character






cartoon roblox character

Wherever you put the BindableEvent, for my example case I put it in ServerStorage This allows two scripts to communicate with each other regardless of it being local, server or module and by using this to your advantage, instead of using. Humanoid = script.Parent:FindFirstChild("Humanoid")īut you should only use this when you have put the scirpt in the StarterCharacterScripts as it is already in the model which is why I done that.Īlso another thing, I was wondering if you wanted the animation to be seeable by other characters seeing as your game was FliteringEnabled, and if you wanted to do this you should use BindableEvents, What this will do will allow the script to load along the character ( the scripts load inside the character model in workspace ) and when you do this instead of using. You should put this script in StarterPlayer > StarterCharacterScripts. You should also use more local variables, as you didn't need to use them globally as they were defined at the top of the script. You should also indent your code properly, some lines were properly indented whilst others weren't. If emote = 1 and CanEmote then - = true unnecessary Local Animation3 = Humanoid:LoadAnimation(script.Animation3) Local Animation2 = Humanoid:LoadAnimation(script.Animation2)

cartoon roblox character

Local Animation1 = Humanoid:LoadAnimation(script.Animation1) Local character = Player.Character or Player.CharacterAdded:Wait() - waiting for character You're getting that error because the character isn't loaded when the player joins the game, you'll have to wait for the character to load. Animations played from a LocalScript replicate to the server, as they are a part of player physics, just like how Humanoid changes replicate to the server.








Cartoon roblox character