Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game:GetService("Players")
- local me = plr.LocalPlayer
- local hum = me.Character:WaitForChild("Humanoid")
- local hrp = me.Character:WaitForChild("HumanoidRootPart")
- local function update()
- hum = me.Character:WaitForChild("Humanoid")
- hrp = me.Character:WaitForChild("HumanoidRootPart")
- animator = hum:FindFirstChild("Animator")
- end
- me.CharacterAdded:Connect(update)
- if me.Character then
- update()
- end
- local animator = hum:FindFirstChild("Animator")
- local screen = Instance.new("ScreenGui")
- screen.Parent = me.PlayerGui
- screen.Name = "AnimLogger"
- local frame = Instance.new("Frame")
- frame.Parent = screen
- frame.Size = UDim2.new(0,250,0,250)
- frame.Position = UDim2.new(0,15,0,380)
- frame.Name = "LogFrame"
- frame.Active = true
- frame.Selectable = true
- frame.Draggable = true
- local btn = Instance.new("TextButton")
- btn.Parent = frame
- btn.Size = UDim2.new(0,25,0,25)
- btn.Position = UDim2.new(0,225,0,0)
- btn.Text = "X"
- btn.TextSize = 12
- local text = Instance.new("TextBox")
- text.Parent = frame
- text.Size = UDim2.new(0,80,0,35)
- text.Position = UDim2.new(0,90,0,100)
- text.Text = ""
- text.PlaceholderText = "Animation"
- text.PlaceholderColor3 = Color3.fromRGB(70,70,70)
- text.TextSize = 12
- local label = Instance.new("TextLabel")
- label.Parent = frame
- label.Text = "AnimationId"
- label.Position = UDim2.new(0,72,0,50)
- label.TextSize = 16
- label.Size = UDim2.new(0,120,0,5)
- label.BorderSizePixel = 0
- label.Name = "Logger"
- local btn2 = Instance.new("TextButton")
- btn2.Parent = frame
- btn2.Size = text.Size
- btn2.Position = UDim2.new(0,30,0,140)
- btn2.Text = "Start"
- btn2.TextSize = 12
- local btn3 = Instance.new("TextButton")
- btn3.Parent = frame
- btn3.Size = text.Size
- btn3.Position = UDim2.new(0,150,0,140)
- btn3.Text = "Stop"
- btn3.TextSize = 12
- local btn4 = Instance.new("TextButton")
- btn4.Parent = frame
- btn4.Size = text.Size
- btn4.Position = UDim2.new(0,90,0,180)
- btn4.Text = "Copy"
- btn4.TextSize = 12
- local anim
- local animtrack
- local args
- btn.MouseButton1Click:Connect(function()
- screen:Destroy()
- end)
- btn2.MouseButton1Click:Connect(function()
- anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://" .. text.Text
- animtrack = hum.Animator:LoadAnimation(anim)
- animtrack:Play()
- end)
- btn3.MouseButton1Click:Connect(function()
- animtrack:Stop()
- end)
- btn4.MouseButton1Click:Connect(function()
- setclipboard(args)
- end)
- local con
- con = game:GetService("RunService").RenderStepped:Connect(function()
- for _, track in pairs(hum.Animator:GetPlayingAnimationTracks()) do
- label.Text = track.Animation.AnimationId
- args = label.Text:sub(14)
- end
- end)
- screen.ResetOnSpawn = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement