1. 로블록스에서 에니메이션 생성 후
2. 로블록스 스튜디오에서 R6 캐릭터를 지운다.
3. StarterGui > ScreenGui > TextButton >LocalScript 을 추가한다.
4. ScreenGui 이름은 AnimationGui 로 바꾸고, TextButton 안에 Text란에는 PlayAnimation 으로 내용을 수정한다.
5. ReplicatedStorage > RemoteEvent 를 추가한다.
6. Workspace > Script 추가
7.
script.Parent.MouseButton1Click:Connect(function() game.ReplicatedStorage.RemoteEvent:FireServer(8846405481) end) |
8. 서버스크립트 넣기
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:LoadAnimation(animation) loadedAnimation:Play() end) |
9. 완성