1 | |
2 | |
3 | if not game:IsLoaded() then |
4 | game.Loaded:wait() |
5 | end |
6 | |
7 | |
8 | |
9 | |
10 | local Walk = "http://www.roblox.com/asset/?id=507767714" |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | local Run = "https://www.roblox.com/asset/?id=507767714" |
17 | |
18 | |
19 | local Jump = "http://www.roblox.com/asset/?id=507765000" |
20 | |
21 | |
22 | |
23 | |
24 | local Idle_A = "http://www.roblox.com/asset/?id=507766951" |
25 | |
26 | |
27 | local Idle_B = "http://www.roblox.com/asset/?id=5230599789" |
28 | |
29 | local Fall = "http://www.roblox.com/asset/?id=507767968" |
30 | |
31 | local Climb = "http://www.roblox.com/asset/?id=507765644" |
32 | |
33 | local Swim = "http://www.roblox.com/asset/?id=507784897" |
34 | |
35 | local SwimIdle = "http://www.roblox.com/asset/?id=507785072" |
36 | |
37 | local Player = game:GetService("Players").LocalPlayer |
38 | local Bool = false |
39 | |
40 | game:GetService("StarterPlayer").AllowCustomAnimations = true |
41 | |
42 | local function Animate(Character) |
43 | local Humanoid |
44 | |
45 | local TimeToWait = 5 |
46 | local Time = os.time() |
47 | |
48 | repeat |
49 | if Character and Character:FindFirstChildOfClass("Humanoid") then |
50 | Humanoid = Character:FindFirstChildOfClass("Humanoid") |
51 | break |
52 | end |
53 | game:GetService("RunService").Heartbeat:wait() |
54 | until os.time() > Time + TimeToWait - 1 |
55 | |
56 | local Animate = Character and Character:WaitForChild("Animate") |
57 | |
58 | if not Humanoid then |
59 | return |
60 | elseif Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R6 then |
61 | Bool = true |
62 | return |
63 | end |
64 | |
65 | if not Animate then return end |
66 | |
67 | pcall(function() |
68 | Animate:WaitForChild("walk"):WaitForChild("WalkAnim").AnimationId = Walk |
69 | Animate:WaitForChild("run"):WaitForChild("RunAnim").AnimationId = Run |
70 | Animate:WaitForChild("jump"):WaitForChild("JumpAnim").AnimationId = Jump |
71 | Animate:WaitForChild("idle"):WaitForChild("Animation1").AnimationId = Idle_A |
72 | Animate:WaitForChild("idle"):WaitForChild("Animation2").AnimationId = Idle_B |
73 | Animate:WaitForChild("idle"):WaitForChild("Animation1"):WaitForChild("Weight").Value = "9" |
74 | Animate:WaitForChild("idle"):WaitForChild("Animation2"):WaitForChild("Weight").Value = "1" |
75 | Animate:WaitForChild("fall"):WaitForChild("FallAnim").AnimationId = Fall |
76 | Animate:WaitForChild("climb"):WaitForChild("ClimbAnim").AnimationId = Climb |
77 | Animate:WaitForChild("swim"):WaitForChild("Swim").AnimationId = Swim |
78 | Animate:WaitForChild("swimidle"):WaitForChild("SwimIdle").AnimationId = SwimIdle |
79 | end) |
80 | end |
81 | |
82 | |
83 | Animate(Player.Character or Player.CharacterAdded:wait()) |
84 | |
85 | Player.CharacterAdded:Connect(function(Character) |
86 | Animate(Character) |
87 | end) |
88 | |