Animation
Animation : Instance
Overview
Animation ๊ฐ์ฒด๋ ์ ๋๋ฉ์ด์ ์ ์์ ID๋ฅผ ์ฐธ์กฐํ๋ ๊ฐ์ฒด์ ๋๋ค.
AnimationTrack์ด ์ ์์ ์ผ๋ก ๋ณต์ ๋๊ธฐ ์ํด์๋, Animator๊ฐ ๋ฐ๋์ Humanoid์ ์์์ผ๋ก ํฌํจ๋์ด์ผ ํฉ๋๋ค. ์ด ๊ฒฝ์ฐ, ํ๋ ์ด์ด์ ํด๋ผ์ด์ธํธ์์ ์์๋ ์ ๋๋ฉ์ด์ ์ ์๋ฒ์ ๋ค๋ฅธ ๋ชจ๋ ํด๋ผ์ด์ธํธ์ ์๋์ผ๋ก ๋ณต์ ๋ฉ๋๋ค.
Properties
AnimationId
string
Animation ๊ฐ์ฒด๊ฐ ์ฐธ์กฐํ ์ ๋๋ฉ์ด์ ์ ์์ ID๋ฅผ ์ค์ ํฉ๋๋ค.
์ ๋๋ฉ์ด์ ์ ์์ ID๋ ์์ ์ ์ํฌํธํ ๋ ์์ฑ๋ฉ๋๋ค.
Code Samples
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
repeat wait() until LocalPlayer.Character
local Character = LocalPlayer.Character
local Humanoid = Character:WaitForChild("Humanoid")
local Animation = Instance.new("Animation")
Animation.AnimationId = "ovdrassetid://18850100" -- WinAnimation01
local Animator = Humanoid:FindFirstChild("Animator")
local AnimationTrack = Animator:LoadAnimation(Animation)
AnimationTrack:Play()
Methods
Events
See also
์บ๋ฆญํฐ ์ ๋๋ฉ์ด์
Last updated