-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.luau
More file actions
21 lines (17 loc) · 701 Bytes
/
main.luau
File metadata and controls
21 lines (17 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pcall(function()
getgenv().blackFigure:Disconnect()
getgenv().blackFigure = nil
end)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
local Animator = Character:FindFirstChildWhichIsA("Animator", true)
-- right = 10480793962
-- left = 10480796021
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://10480796021"
local AnimationTrack = Animator:LoadAnimation(Animation)
getgenv().blackFigure = RunService.PreRender:Connect(function()
AnimationTrack:Play(0.1, 1, 0) -- last parameter = speed
end)