Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

What do I need to do in order to make the animation work?

Asked by 5 years ago

I following doing AlvinBlox's tutorial on how to animate but I haven't been able to make it work. I did the following:

  • Inserted ScreenGUI into StarterGUI
  • Inserted TextButton into ScreenGUI
  • Inserted LocalScript and put in the following

    script.Parent.MouseButton1Click:Connect(function()

game.ReplicatedStorage.RemoteEvent:FireServer("2979587799")

end)

  • Inserted RemoteEvent in ReplicatedStorage
  • Inserted Script into Workspace and put the following

    game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player,animationID)

local animation = Instance.new("Animation")

animation.AnimationId = "http://www.roblox.com/Asset?ID="..animationID

local loadedAnimation = game.Workspace(player.Name).Humanoid:LoadedAnimation(animation)

loadedAnimation:Play()

end)

I have tested it and played in-game with no luck. Are there any errors? Is the method simply outdated? What should I do instead?

0
well then dont follow his tutorial TheluaBanana 946 — 5y
0
Make your own script instead, you don't even know what you're writing. Also that is bad practice. valchip 789 — 5y
0
This is why you never trust AlvinBlox. DeceptiveCaster 3761 — 5y
0
The answer is "of course it doesn't work, it's AlvinBlox" LostPast 253 — 5y
0
alvinblox.. lol hellmatic 1523 — 5y

Answer this question