roblox animations code example
Example 1: how to amke a Playanimation script for roblox stuio
--Made by Rigby#9052
--Put The "Animation" in This Script & Then.
--Insert this into your character.
local hum = script.Parent:WaitForChild("Humanoid")
local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation"))
anim.Looped = true
anim:Play()
Example 2: roblox animation id
local Players = game : GetService ( "Spelers" ) local player = Players : FindFirstChild ( "Builderman" ) lokaal karakter = speler . Karakterlocal humanoid = character : FindFirstChild ( "Humanoid" ) local animation = Instance.new ( "Animatie" ) animatie . AnimationId =