SHOW:
|
|
- or go back to the newest paste.
1 | -- i was bored | |
2 | -- by Theamazingnater | |
3 | plr = game.Players.LocalPlayer | |
4 | repeat wait() until plr.Character | |
5 | char = plr.Character | |
6 | ||
7 | ||
8 | for i,v in pairs(char:GetChildren()) do | |
9 | if v.ClassName == "Part" then | |
10 | v.Transparency = 1 | |
11 | end | |
12 | end | |
13 | for i,v in pairs(char:GetChildren()) do | |
14 | if v.ClassName == "Accessory" then | |
15 | v.Handle.Transparency = 1 | |
16 | end | |
17 | - | if v.ClassName == "ShirtGraphic" or v.ClassName == "BodyColors" then |
17 | + | |
18 | - | v:Destroy() |
18 | + | |
19 | ||
20 | char.Torso.Transparency = 0 | |
21 | char["Right Leg"].Transparency = 0 | |
22 | char["Left Leg"].Transparency = 0 | |
23 | char.Head.face.Transparency = 1 | |
24 | local block = Instance.new("BlockMesh",char.Torso) | |
25 | block.Offset = Vector3.new(0, -0.5, 0) | |
26 | block.Scale = Vector3.new(1.4, 1.4, 2.8) | |
27 | local block2 = Instance.new("BlockMesh",char["Right Leg"]) | |
28 | block2.Offset = Vector3.new(0.15, -0.5, 0) | |
29 | block2.Scale = Vector3.new(1.2, 0.5, 2) | |
30 | local block3 = Instance.new("BlockMesh",char["Left Leg"]) | |
31 | block3.Offset = Vector3.new(-0.15, -0.5, 0) | |
32 | block3.Scale = Vector3.new(1.2, 0.5, 2) | |
33 | char["Right Leg"].BrickColor = BrickColor.new("Reddish brown") | |
34 | char["Left Leg"].BrickColor = BrickColor.new("Reddish brown") | |
35 | char.Torso.BrickColor = BrickColor.new("Dark orange") | |
36 | local decal = Instance.new("Decal",char.Torso) | |
37 | decal.Texture = "http://www.roblox.com/asset/?id=29336734" | |
38 | decal.Face = "Front" | |
39 | stomp = Instance.new("Sound",char) | |
40 | stomp.SoundId = "rbxassetid://140439666" | |
41 | stomp.Volume = 10 | |
42 | running = false | |
43 | char.Head.Touched:connect(function(p) | |
44 | local human = p.Parent:FindFirstChildOfClass("Humanoid") | |
45 | if human and human.Parent.Name ~= char.Name and p.Name ~= "Head" and not running then | |
46 | block.Scale = Vector3.new(1.4, 0.35, 2.8) | |
47 | block.Offset = Vector3.new(0, -1.55, 0) | |
48 | stomp:Play() | |
49 | wait(1) | |
50 | char.Humanoid.Health = 0 | |
51 | end | |
52 | end) | |
53 | char.Torso.Touched:connect(function(p) | |
54 | local human = p.Parent:FindFirstChildOfClass("Humanoid") | |
55 | if human and human.Parent.Name ~= char.Name then | |
56 | human.Health = 0 | |
57 | end | |
58 | end) | |
59 | local neck = Instance.new("Weld",char) | |
60 | neck.Part0 = char.Torso | |
61 | neck.Part1 = char.Head | |
62 | neck.C0 = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
63 | local human2 = Instance.new("Weld",char) | |
64 | human2.Part0 = char.HumanoidRootPart | |
65 | human2.Part1 = char.Torso | |
66 | human2co = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
67 | necc = CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
68 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
69 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
70 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
71 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
72 | rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
73 | local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
74 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
75 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
76 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
77 | lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1) | |
78 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
79 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
80 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
81 | llegweld.C0 = CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1) | |
82 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
83 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
84 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
85 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
86 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
87 | rlegweld.C0 = CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1) | |
88 | chara = char | |
89 | cananimate = true | |
90 | pose = "Standing" | |
91 | local speed = 0 | |
92 | ||
93 | char.Humanoid.Running:connect(function(s) | |
94 | speed = s | |
95 | end) | |
96 | ||
97 | local update = game:GetService("RunService") | |
98 | update.RenderStepped:connect(function() | |
99 | local ray = Ray.new(chara.Torso.Position, (chara.Torso.Position - Vector3.new(0,9999999,0)).unit * 300) | |
100 | local p, position = game.Workspace:FindPartOnRay(ray, char, true, false) | |
101 | local dis = (chara.Torso.Position - position).magnitude | |
102 | if dis > 3.8 and chara.Torso.Velocity.Y > 0 then | |
103 | pose = "Jumping" | |
104 | end | |
105 | if dis> 3.8 and chara.Torso.Velocity.Y < 0 then | |
106 | pose = "Falling" | |
107 | end | |
108 | if dis < 3.8 and speed == 0 then | |
109 | pose = "Standing" | |
110 | end | |
111 | if dis < 3.8 and speed > 0 then | |
112 | pose = "Walking" | |
113 | end | |
114 | if running and dis < 3.8 and speed > 0 then | |
115 | pose = "Running" | |
116 | end | |
117 | end) | |
118 | canuse = true | |
119 | function sprint() | |
120 | if canuse then | |
121 | canuse = false | |
122 | running = true | |
123 | char.Humanoid.WalkSpeed = 30 | |
124 | wait(3) | |
125 | running = false | |
126 | char.Humanoid.WalkSpeed = 16 | |
127 | canuse = true | |
128 | end | |
129 | end | |
130 | mouse = plr:GetMouse() | |
131 | mouse.KeyDown:connect(function(k) | |
132 | if k == "e" then | |
133 | sprint() | |
134 | end | |
135 | end) | |
136 | coroutine.wrap(function() | |
137 | while true do | |
138 | wait() | |
139 | char["Right Leg"].BrickColor = BrickColor.new("Reddish brown") | |
140 | char["Left Leg"].BrickColor = BrickColor.new("Reddish brown") | |
141 | char.Torso.BrickColor = BrickColor.new("Dark orange") | |
142 | end | |
143 | end)() | |
144 | ||
145 | while true do | |
146 | wait() | |
147 | if pose == "Standing" and cananimate then | |
148 | walking = false | |
149 | for i = 0,1 , 0.05 do | |
150 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 2.38418579e-07, 0, 0.901208401, -0.433386177, 0, 0.433385074, 0.901205897, 0, 0, 0, 1),i) | |
151 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.58996058, -0.0167350769, 9.53674316e-07, 0.933032632, 0.359789908, 0, -0.359790921, 0.933025062, 0, 0, 0, 1),i) | |
152 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i) | |
153 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99998939, 0, 1, 0, 0, 0, 0.999994636, 0, 0, 0, 1),i) | |
154 | human2.C0 = human2.C0:lerp(human2co,i) | |
155 | neck.C0 = neck.C0:lerp(necc,i) | |
156 | update.RenderStepped:wait() | |
157 | end | |
158 | end | |
159 | if pose == "Walking" and cananimate then | |
160 | walking = true | |
161 | for i = 0,1 ,0.05 do | |
162 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i) | |
163 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i) | |
164 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i) | |
165 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i) | |
166 | human2.C0 = human2.C0:lerp(human2co,i) | |
167 | neck.C0 = neck.C0:lerp(necc,i) | |
168 | game:GetService("RunService").RenderStepped:wait() | |
169 | end | |
170 | walking = true | |
171 | for i = 0,1 ,0.05 do | |
172 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i) | |
173 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i) | |
174 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i) | |
175 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i) | |
176 | human2.C0 = human2.C0:lerp(human2co,i) | |
177 | neck.C0 = neck.C0:lerp(necc,i) | |
178 | game:GetService("RunService").RenderStepped:wait() | |
179 | end | |
180 | walking = true | |
181 | end | |
182 | if pose == "Running" and cananimate then | |
183 | walking = true | |
184 | for i = 0,1 ,0.05 do | |
185 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.168842316, -0.374614239, 1, 0, 0, 0, 0.662306964, -0.74923259, 0, 0.74923259, 0.662307084),i) | |
186 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.12597847, 0.331827164, 1, 0, 0, 0, 0.748035073, 0.663659215, 0, -0.663659275, 0.748035014),i) | |
187 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.67391682, -0.738807678, 0.99999994, 0, 0, 0, 0.673916757, -0.738807261, 0, 0.738807321, 0.673916817),i) | |
188 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.67705727, 0.735931396, 1, 0, 0, 0, 0.677056909, 0.735930681, 0, -0.735930741, 0.677056968),i) | |
189 | human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.906151652, -0.422950864, 0, 0.422950327, 0.906152725):inverse(),i) | |
190 | neck.C0 = neck.C0:lerp(necc,i) | |
191 | game:GetService("RunService").RenderStepped:wait() | |
192 | end | |
193 | walking = true | |
194 | for i = 0,1 ,0.05 do | |
195 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.69855976, 0.715551376, 1, 0, 0, 0, 0.698559642, 0.715551734, 0, -0.715551794, 0.698559701),i) | |
196 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.80723953, -0.590223312, 1, 0, 0, 0, 0.807239354, -0.590224087, 0, 0.590224147, 0.807239413),i) | |
197 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.216003418, 0.411518574, 1, 0, 0, 0, 0.567983389, 0.823040009, 0, -0.823040009, 0.567983389),i) | |
198 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.215018272, -0.41083622, 1, 0, 0, 0, 0.569954693, -0.821676135, 0, 0.821676135, 0.569954753),i) | |
199 | human2.C0 = human2.C0:lerp(CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.906151652, -0.422950864, 0, 0.422950327, 0.906152725):inverse(),i) | |
200 | neck.C0 = neck.C0:lerp(necc,i) | |
201 | game:GetService("RunService").RenderStepped:wait() | |
202 | end | |
203 | walking = true | |
204 | end | |
205 | if pose == "Jumping" and cananimate then | |
206 | walking = false | |
207 | for i = 0,1 , 0.05 do | |
208 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.66472816, 0.166806221, 0, 0.840905726, -0.541181803, 0, 0.541181803, 0.840905726, 0, 0, 0, 1),i) | |
209 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.69600487, 0.110276461, 0, 0.871529698, 0.490342826, 0, -0.490342826, 0.871529698, 0, 0, 0, 1),i) | |
210 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.3247503, -0.419755459, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
211 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
212 | human2.C0 = human2.C0:lerp(human2co,i) | |
213 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 0.917574883, -0.397562951, 0, 0.397562951, 0.917574883),i) | |
214 | update.RenderStepped:wait() | |
215 | end | |
216 | end | |
217 | if pose == "Falling" and cananimate then | |
218 | walking = false | |
219 | for i = 0,1 , 0.05 do | |
220 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.00721169, 0.966965914, 0, -0.554754853, -0.832013845, 0, 0.832013845, -0.554754853, 0, 0, 0, 1),i) | |
221 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.87815094, 0.913155079, 0, -0.494452, 0.869204998, 0, -0.869204998, -0.494452, 0, 0, 0, 1),i) | |
222 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
223 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.99999988, 0, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1),i) | |
224 | human2.C0 = human2.C0:lerp(human2co,i) | |
225 | neck.C0 = neck.C0:lerp(CFrame.new(0, 1.50154519, -0.248991966, 1, 0, 0, 0, 0.852542579, 0.522657752, 0, -0.522657752, 0.852542579),i) | |
226 | update.RenderStepped:wait() | |
227 | end | |
228 | end | |
229 | end |