SHOW:
|
|
- or go back to the newest paste.
1 | - | |
1 | + | |
2 | plr = game.Players.LocalPlayer | |
3 | repeat | |
4 | wait(0.4) | |
5 | until plr.Character | |
6 | chr = plr.Character | |
7 | human = chr:FindFirstChild("Humanoid") | |
8 | mouse = plr:GetMouse() | |
9 | cam = workspace.CurrentCamera | |
10 | selected = false | |
11 | equipd = false | |
12 | tors = chr.Torso | |
13 | rarm = chr["Right Arm"] | |
14 | larm = chr["Left Arm"] | |
15 | rleg = chr["Right Leg"] | |
16 | lleg = chr["Left Leg"] | |
17 | hrp = chr.HumanoidRootPart | |
18 | hed = chr.Head | |
19 | anim = human.Animator | |
20 | activu = false | |
21 | ragged = false | |
22 | batting = false | |
23 | Heartbeat = Instance.new("BindableEvent") | |
24 | Heartbeat.Name = "Heartbeat" | |
25 | Heartbeat.Parent = script | |
26 | frame = 0.03333333333333333 | |
27 | tf = 0 | |
28 | chara = plr.Character | |
29 | ||
30 | New = function(Object, Parent, Name, Data) | |
31 | local Object = Instance.new(Object) | |
32 | for Index, Value in pairs(Data or {}) do | |
33 | Object[Index] = Value | |
34 | end | |
35 | Object.Parent = Parent | |
36 | Object.Name = Name | |
37 | return Object | |
38 | end | |
39 | local AddInstance = function(Object, ...) | |
40 | local Obj = Instance.new(Object) | |
41 | for i,v in next,(...) do | |
42 | Obj[i] = v | |
43 | end | |
44 | return Obj | |
45 | end | |
46 | ||
47 | Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://390409627",Volume = 10,Looped = true}) | |
48 | Music1:Play() | |
49 | musicon = true | |
50 | for i,v in pairs(chara:GetChildren()) do | |
51 | if v.ClassName == 'Accessory' then | |
52 | v:Destroy() | |
53 | end | |
54 | end | |
55 | ||
56 | local BC = chara["Body Colors"] | |
57 | BC.HeadColor = BrickColor.new("Pastel brown") | |
58 | BC.LeftArmColor = BrickColor.new("Pastel brown") | |
59 | BC.LeftLegColor = BrickColor.new("Pastel brown") | |
60 | BC.RightArmColor = BrickColor.new("Pastel brown") | |
61 | BC.RightLegColor = BrickColor.new("Pastel brown") | |
62 | BC.TorsoColor = BrickColor.new("Pastel brown") | |
63 | - | Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://390409627",Volume = 2,Looped = true}) |
63 | + | |
64 | Team=function() | |
65 | local r=math.random(1,2) | |
66 | ||
67 | if r==1 then | |
68 | print('RED') | |
69 | for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end | |
70 | for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end | |
71 | wait()shirt = Instance.new("Shirt", chara) | |
72 | shirt.Name = "Shirt" | |
73 | pants = Instance.new("Pants", chara) | |
74 | pants.Name = "Pants" | |
75 | chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921144" | |
76 | chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182" | |
77 | end | |
78 | ||
79 | if r==2 then | |
80 | print('BLUE') | |
81 | for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end | |
82 | for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end | |
83 | wait()shirt = Instance.new("Shirt", chara) | |
84 | shirt.Name = "Shirt" | |
85 | pants = Instance.new("Pants", chara) | |
86 | pants.Name = "Pants" | |
87 | chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921164" | |
88 | chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182" | |
89 | end | |
90 | end | |
91 | ||
92 | Team() | |
93 | ||
94 | chara.Head.face.Texture = "http://www.roblox.com/asset/?id=293392688" | |
95 | wait() | |
96 | ||
97 | local Reaper = AddInstance("Part",{ | |
98 | Parent = hed, | |
99 | CFrame = hed.CFrame, | |
100 | formFactor = "Symmetric", | |
101 | Size = Vector3.new(1, 1, 1), | |
102 | CanCollide = false, | |
103 | TopSurface = "Smooth", | |
104 | BottomSurface = "Smooth", | |
105 | Locked = true, | |
106 | }) | |
107 | local Weld = AddInstance("Weld",{ | |
108 | Parent = Reaper, | |
109 | Part0 = hed, | |
110 | C0 = CFrame.new(-0.2,0.17,-.24)*CFrame.Angles(.15, 3.12, 0), | |
111 | Part1 = Reaper, | |
112 | }) | |
113 | local Mesh = AddInstance("SpecialMesh",{ | |
114 | Parent = Reaper, | |
115 | MeshId = "rbxassetid://450793946", | |
116 | TextureId = "rbxassetid://450794061", | |
117 | Scale = Vector3.new(3.4,3,2.7), | |
118 | VertexColor = Vector3.new(1,1,1), | |
119 | }) | |
120 | ||
121 | ||
122 | ||
123 | local Reaper2 = AddInstance("Part",{ | |
124 | Parent = larm, | |
125 | CFrame = larm.CFrame, | |
126 | formFactor = "Symmetric", | |
127 | Size = Vector3.new(.1, .1, .1), | |
128 | CanCollide = false, | |
129 | TopSurface = "Smooth", | |
130 | BottomSurface = "Smooth", | |
131 | Locked = true, | |
132 | Transparency = 1 | |
133 | }) | |
134 | local Weld = AddInstance("Weld",{ | |
135 | Parent = Reaper2, | |
136 | Part0 = larm, | |
137 | C0 = CFrame.new(.3,-1,.2)*CFrame.Angles(-1, 0, -1), | |
138 | Part1 = Reaper2, | |
139 | }) | |
140 | local Mesh = AddInstance("SpecialMesh",{ | |
141 | Parent = Reaper2, | |
142 | MeshId = "rbxassetid://10470609", | |
143 | TextureId = "rbxassetid://10735250", | |
144 | Scale = Vector3.new(1,1,1), | |
145 | VertexColor = Vector3.new(1,1,1), | |
146 | }) | |
147 | ||
148 | ||
149 | ||
150 | ||
151 | ||
152 | ||
153 | ||
154 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
155 | tf = tf + s | |
156 | if tf >= frame then | |
157 | for i = 1, math.floor(tf / frame) do | |
158 | Heartbeat:Fire() | |
159 | end | |
160 | tf = tf - frame * math.floor(tf / frame) | |
161 | end | |
162 | end) | |
163 | function swait(num) | |
164 | if num == 0 or num == nil then | |
165 | Heartbeat.Event:wait() | |
166 | else | |
167 | for i = 1, num do | |
168 | Heartbeat.Event:wait() | |
169 | end | |
170 | end | |
171 | end | |
172 | tool = Instance.new("Tool") | |
173 | tool.CanBeDropped = false | |
174 | tool.RequiresHandle = false | |
175 | tool.TextureId = "rbxassetid://291302154" | |
176 | tool.ToolTip = "NANI" | |
177 | tool.Name = "AAAAAAAAAAAAAA" | |
178 | tool.Parent = plr.Backpack | |
179 | modz = Instance.new("Model") | |
180 | modz.Name = "efx" | |
181 | modz.Parent = chr | |
182 | RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
183 | RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
184 | LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
185 | LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
186 | RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
187 | RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
188 | LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
189 | RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
190 | LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
191 | NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
192 | NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
193 | RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
194 | local nscale = Instance.new("NumberValue") | |
195 | nscale.Value = 1 | |
196 | nscale.Parent = nil | |
197 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
198 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
199 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
200 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
201 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
202 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
203 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
204 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
205 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
206 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
207 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
208 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
209 | nscale.Changed:connect(function() | |
210 | RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
211 | RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
212 | LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
213 | LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
214 | RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
215 | RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
216 | LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
217 | LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
218 | RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
219 | RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
220 | NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
221 | NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
222 | end) | |
223 | RS = tors:FindFirstChild("Right Shoulder") | |
224 | LS = tors:FindFirstChild("Left Shoulder") | |
225 | RH = tors:FindFirstChild("Right Hip") | |
226 | LH = tors:FindFirstChild("Left Hip") | |
227 | RJ = hrp:FindFirstChild("RootJoint") | |
228 | N = tors:FindFirstChild("Neck") | |
229 | cf = CFrame.new | |
230 | ang = CFrame.Angles | |
231 | rd = math.rad | |
232 | rd2 = math.random | |
233 | function nooutline(p) | |
234 | p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10 | |
235 | end | |
236 | function makepart(color, name, reflec, trans, mater, parnt, cfram) | |
237 | local port = Instance.new("Part") | |
238 | port.BrickColor = BrickColor.new(color) | |
239 | port.Name = name | |
240 | port.Transparency = trans | |
241 | nooutline(port) | |
242 | port.Reflectance = reflec | |
243 | port.Material = mater | |
244 | port.Anchored = false | |
245 | port.CanCollide = false | |
246 | port.Locked = true | |
247 | port.Size = Vector3.new(0.2, 0.2, 0.2) | |
248 | port.Parent = parnt | |
249 | return port | |
250 | end | |
251 | function makemesh(meshtype, scale, meshid, parent) | |
252 | local mes = Instance.new("SpecialMesh") | |
253 | mes.MeshType = meshtype | |
254 | mes.Scale = scale | |
255 | if meshtype == "FileMesh" then | |
256 | mes.MeshId = meshid | |
257 | end | |
258 | mes.Parent = parent | |
259 | return mes | |
260 | end | |
261 | function makeweld(parent, p0, p1, c0, c1) | |
262 | local wel = Instance.new("Weld") | |
263 | wel.Part0 = p0 | |
264 | wel.Part1 = p1 | |
265 | wel.C0 = c0 | |
266 | if c1 ~= nil then | |
267 | wel.C1 = c1 | |
268 | end | |
269 | wel.Parent = parent | |
270 | return wel | |
271 | end | |
272 | local lauf1 = Instance.new("Sound") | |
273 | lauf1.SoundId = "rbxassetid://617500399" | |
274 | lauf1.Volume = 1.5 | |
275 | lauf1.Pitch = 1 | |
276 | lauf1.Parent = hrp | |
277 | function lerpz(joint, prop, cfrmz, alp) | |
278 | joint[prop] = joint[prop]:lerp(cfrmz, alp) | |
279 | end | |
280 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
281 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
282 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
283 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
284 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
285 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
286 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
287 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
288 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
289 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
290 | function resetlerp() | |
291 | RJ.C0 = RJC0 | |
292 | RJ.C1 = RJC1 | |
293 | N.C0 = NC0 | |
294 | N.C1 = NC1 | |
295 | RS.C0 = RSC0 | |
296 | RS.C1 = RSC1 | |
297 | LS.C0 = LSC0 | |
298 | LS.C1 = LSC1 | |
299 | RH.C0 = RHC0 | |
300 | RH.C1 = RHC1 | |
301 | LH.C0 = LHC0 | |
302 | LH.C1 = LHC1 | |
303 | end | |
304 | function test() | |
305 | if selected == false or activu == true then | |
306 | return | |
307 | end | |
308 | if ragged == false then | |
309 | ragged = true | |
310 | human.PlatformStand = true | |
311 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
312 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
313 | makegloo(tors, RightShoulderC0, RightShoulderC1, tors, rarm, "Right Shoulder") | |
314 | maketouchy(rarm, rarm, CFrame.new(0, 0.5, 0)) | |
315 | end | |
316 | if larm and tors:FindFirstChild("Left Shoulder") then | |
317 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
318 | makegloo(tors, LeftShoulderC0, LeftShoulderC1, tors, larm, "Left Shoulder") | |
319 | maketouchy(larm, larm, CFrame.new(0, 0.5, 0)) | |
320 | end | |
321 | if rleg and tors:FindFirstChild("Right Hip") then | |
322 | tors:FindFirstChild("Right Hip"):Destroy() | |
323 | makegloo(tors, RightHipC0, RightHipC1, tors, rleg, "Right Hip") | |
324 | maketouchy(rleg, rleg, CFrame.new(0, 0.5, 0)) | |
325 | end | |
326 | if lleg and tors:FindFirstChild("Left Hip") then | |
327 | tors:FindFirstChild("Left Hip"):Destroy() | |
328 | makegloo(tors, LeftHipC0, LeftHipC1, tors, lleg, "Left Hip") | |
329 | maketouchy(lleg, lleg, CFrame.new(0, 0.5, 0)) | |
330 | end | |
331 | elseif ragged == true then | |
332 | ragged = false | |
333 | human.Jump = true | |
334 | if rarm and tors:FindFirstChild("Right Shoulder") then | |
335 | tors:FindFirstChild("Right Shoulder"):Destroy() | |
336 | makejoint(tors, RSC0, RSC1, tors, rarm, "Right Shoulder") | |
337 | rarm:FindFirstChild("touchy"):Destroy() | |
338 | end | |
339 | if larm and tors:FindFirstChild("Left Shoulder") then | |
340 | tors:FindFirstChild("Left Shoulder"):Destroy() | |
341 | makejoint(tors, LSC0, LSC1, tors, larm, "Left Shoulder") | |
342 | larm:FindFirstChild("touchy"):Destroy() | |
343 | end | |
344 | if rleg and tors:FindFirstChild("Right Hip") then | |
345 | tors:FindFirstChild("Right Hip"):Destroy() | |
346 | makejoint(tors, RHC0, RHC1, tors, rleg, "Right Hip") | |
347 | rleg:FindFirstChild("touchy"):Destroy() | |
348 | end | |
349 | if lleg and tors:FindFirstChild("Left Hip") then | |
350 | tors:FindFirstChild("Left Hip"):Destroy() | |
351 | makejoint(tors, LHC0, LHC1, tors, lleg, "Left Hip") | |
352 | lleg:FindFirstChild("touchy"):Destroy() | |
353 | end | |
354 | RS = tors:FindFirstChild("Right Shoulder") | |
355 | LS = tors:FindFirstChild("Left Shoulder") | |
356 | RH = tors:FindFirstChild("Right Hip") | |
357 | LH = tors:FindFirstChild("Left Hip") | |
358 | RJ = hrp:FindFirstChild("RootJoint") | |
359 | N = tors:FindFirstChild("Neck") | |
360 | end | |
361 | end | |
362 | function makegloo(paren, co, ci, parto, parti, nam) | |
363 | local gloo = Instance.new("Glue") | |
364 | gloo.Name = nam | |
365 | gloo.C0 = co | |
366 | gloo.C1 = ci | |
367 | gloo.Part0 = parto | |
368 | gloo.Part1 = parti | |
369 | gloo.Parent = paren | |
370 | end | |
371 | function makejoint(paren, co, ci, parto, parti, nam) | |
372 | local gloo = Instance.new("Motor6D") | |
373 | gloo.Name = nam | |
374 | gloo.C0 = co | |
375 | gloo.C1 = ci | |
376 | gloo.Part0 = parto | |
377 | gloo.Part1 = parti | |
378 | gloo.Parent = paren | |
379 | end | |
380 | function maketouchy(parent, limb, cframe) | |
381 | local pr = Instance.new("Part") | |
382 | pr.Name = "touchy" | |
383 | pr.Size = Vector3.new(1 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
384 | pr.Transparency = 1 | |
385 | pr.CustomPhysicalProperties = PhysicalProperties.new(0.55, 0.3, 0.5) | |
386 | pr.CanCollide = true | |
387 | pr.Anchored = false | |
388 | pr.Parent = parent | |
389 | local w = Instance.new("Weld") | |
390 | w.Part0 = pr | |
391 | w.Part1 = limb | |
392 | w.C0 = cframe | |
393 | w.Parent = pr | |
394 | end | |
395 | local clibat, spec | |
396 | local dipperhat = chr:FindFirstChild("DXD_DipperHat") | |
397 | local dipperrot | |
398 | if dipperhat then | |
399 | dipperrot = dipperhat.Handle.HatAttachment.Rotation | |
400 | end | |
401 | function bat() | |
402 | if selected == false or activu == true then | |
403 | return | |
404 | end | |
405 | if batting == false then | |
406 | batting = true | |
407 | do | |
408 | local bmod = Instance.new("Model") | |
409 | bmod.Name = "bmodel" | |
410 | bmod.Parent = chr | |
411 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
412 | local hmes = makemesh("Head", Vector3.new(2, 9, 2), nil, hnd) | |
413 | local hwel = makeweld(hnd, hnd, rarm, ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0), nil) | |
414 | hnd.Transparency = 1 | |
415 | local pt5 = makepart("Dark stone grey", "pt5", 0, 0, "SmoothPlastic", bmod, rarm.CFrame) | |
416 | local p5m = makemesh("FileMesh", Vector3.new(2, 2, 1.7), "rbxassetid://54983181", pt5) | |
417 | p5m.Offset = Vector3.new(.2, -.3, -2.5) | |
418 | local p5w = makeweld(pt5, pt5, hnd, ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), nil) | |
419 | ||
420 | local swingwoo = Instance.new("Sound") | |
421 | swingwoo.SoundId = "rbxassetid://10209640" | |
422 | swingwoo.Pitch = rd2(10, 11) / 10 | |
423 | swingwoo.Name = "sweae" | |
424 | swingwoo.Volume = 1 | |
425 | swingwoo.Parent = hrp | |
426 | clibat = tool.Activated:connect(function() | |
427 | if selected == false or activu == true or ragged == true then | |
428 | return | |
429 | end | |
430 | activu = true | |
431 | for _ = 1, 5 do | |
432 | swait() | |
433 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
434 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
435 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
436 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
437 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
438 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
439 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
440 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
441 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
442 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
443 | end | |
444 | local bon = Instance.new("Sound") | |
445 | bon.SoundId = "rbxassetid://135436482" | |
446 | bon.Pitch = rd2(10, 12) / 10 | |
447 | bon.Volume = 1 | |
448 | bon.Parent = hrp | |
449 | game.Debris:AddItem(bon, 1) | |
450 | bon:Play() | |
451 | swingwoo:Play() | |
452 | for X = 1, 5 do | |
453 | swait() | |
454 | if X > 1 then | |
455 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * 25, Vector3.new(0, rd2(-5, 5), rd2(-40, 40))) | |
456 | end | |
457 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
458 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
459 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
460 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
461 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
462 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
463 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
464 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
465 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
466 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
467 | end | |
468 | activu = false | |
469 | end) | |
470 | spec = mouse.KeyDown:connect(function(keya) | |
471 | if selected == false or activu == true or ragged == true then | |
472 | return | |
473 | end | |
474 | if keya == "e" then | |
475 | activu = true | |
476 | local speed = human.WalkSpeed | |
477 | human.WalkSpeed = 0 | |
478 | human:SetStateEnabled(3, false) | |
479 | local sond = Instance.new("Sound") | |
480 | sond.Volume = 2 | |
481 | sond.Pitch = 1 | |
482 | sond.EmitterSize = 15 | |
483 | sond.SoundId = "rbxassetid://154606531" | |
484 | sond.Parent = pt5 | |
485 | chara.Head.face.Texture = "http://www.roblox.com/asset/?id=249062487" | |
486 | ||
487 | sond:Play() | |
488 | ||
489 | local function expa() | |
490 | ||
491 | ||
492 | for _ = 1, 1 do | |
493 | swait() | |
494 | hmes.Scale = hmes.Scale:lerp(Vector3.new(18, 81, 18), 0.7) | |
495 | ||
496 | p5m.Scale = p5m.Scale:lerp(Vector3.new(2, 2, 3.7), 0.7) | |
497 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.5, 0), 0.7) | |
498 | ||
499 | end | |
500 | for _ = 1, 2 do | |
501 | swait() | |
502 | hmes.Scale = hmes.Scale:lerp(Vector3.new(14, 63, 14), 0.7) | |
503 | ||
504 | p5m.Scale = p5m.Scale:lerp(Vector3.new(3, 3, 2.7), 0.7) | |
505 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), 0.7) | |
506 | ||
507 | end | |
508 | end | |
509 | for _ = 1, 2 do | |
510 | swait() | |
511 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
512 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
513 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
514 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
515 | lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5) | |
516 | if dipperhat then | |
517 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3) | |
518 | end | |
519 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
520 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
521 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
522 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
523 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
524 | end | |
525 | ||
526 | print('um') | |
527 | for _ = 1, 20 do | |
528 | ||
529 | ||
530 | swait() | |
531 | ||
532 | ||
533 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
534 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
535 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
536 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
537 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3) | |
538 | if dipperhat then | |
539 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3) | |
540 | end | |
541 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
542 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
543 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
544 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
545 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
546 | end | |
547 | print('no') | |
548 | chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476" | |
549 | for _ = 1, 10 do | |
550 | swait() | |
551 | lerpz(RJ, "C0", RJC0 * cf(1.1, 0.6, 0) * ang(rd(0), rd(0), rd(-120)), 0.2) | |
552 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.2) | |
553 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.2) | |
554 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
555 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.2) | |
556 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
557 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.2) | |
558 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
559 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.2) | |
560 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2) | |
561 | end | |
562 | expa() | |
563 | ||
564 | for O = 1, 10 do | |
565 | swait() | |
566 | lerpz(RJ, "C0", RJC0 * cf(0, 0.3, 0) * ang(rd(0), rd(0), rd(60)), 0.001 + O * 0.01) | |
567 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.001 + O * 0.01) | |
568 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(-20), rd(80)), 0.001 + O * 0.01) | |
569 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
570 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.001 + O * 0.01) | |
571 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
572 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.001 + O * 0.01) | |
573 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
574 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.001 + O * 0.01) | |
575 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.001 + O * 0.01) | |
576 | end | |
577 | local whoooo = Instance.new("Sound") | |
578 | whoooo.Volume = .7 | |
579 | whoooo.TimePosition = 0 | |
580 | whoooo.Pitch = 1 | |
581 | whoooo.SoundId = "rbxassetid://254873067" | |
582 | whoooo.Parent = pt5 | |
583 | whoooo:Play() | |
584 | game.Debris:AddItem(whoooo, 2) | |
585 | ||
586 | local whoooo2 = Instance.new("Sound") | |
587 | whoooo2.Volume = 3 | |
588 | whoooo2.TimePosition = 0 | |
589 | whoooo2.Pitch = 1 | |
590 | whoooo2.SoundId = "rbxassetid://296102734" | |
591 | whoooo2.Parent = pt5 | |
592 | ||
593 | game.Debris:AddItem(whoooo2, 2) | |
594 | ||
595 | for O = 1, 6 do | |
596 | swait() | |
597 | hito(pt5, 25, 40, 0.75, hrp.CFrame.rightVector * -100 + Vector3.new(0, 50, 0), Vector3.new(0, rd2(-25, 25), rd2(-160, 160))) | |
598 | lerpz(RJ, "C0", RJC0 * cf(0.9, -0.7, 0) * ang(rd(0), rd(0), rd(120)), 0.1 + O * 0.05) | |
599 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.1 + O * 0.05) | |
600 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(20), rd(20)), 0.1 + O * 0.05) | |
601 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
602 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(-20), rd(-60), rd(-80)), 0.1 + O * 0.05) | |
603 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
604 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.1 + O * 0.05) | |
605 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
606 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.1 + O * 0.05) | |
607 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + O * 0.05) | |
608 | end | |
609 | whoooo2:Play() | |
610 | for O = 1, 13 do | |
611 | swait() | |
612 | hmes.Scale = hmes.Scale:lerp(Vector3.new(2, 9, 2), 0.05 + O * 0.075) | |
613 | ||
614 | p5m.Scale = p5m.Scale:lerp(Vector3.new(2, 2, 1.7), 0.05 + O * 0.075) | |
615 | p5w.C0 = p5w.C0:lerp(ang(rd(0), rd(90), rd(90)) * cf(0, -4.025, 0), 0.05 + O * 0.075) | |
616 | ||
617 | lerpz(RJ, "C0", RJC0 * cf(1.1, -0.8, 0) * ang(rd(0), rd(0), rd(150)), 0.05 + O * 0.075) | |
618 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(-20)), 0.05 + O * 0.075) | |
619 | lerpz(RS, "C0", RSC0 * cf(0, 0.4, 0.2) * ang(rd(80), rd(30), rd(10)), 0.05 + O * 0.075) | |
620 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
621 | lerpz(LS, "C0", LSC0 * cf(0, -0.2, -0.7) * ang(rd(20), rd(20), rd(-20)), 0.05 + O * 0.075) | |
622 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
623 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-5)), 0.05 + O * 0.075) | |
624 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
625 | lerpz(LH, "C0", LHC0 * cf(0.4, 0, -0.4) * ang(rd(-10), rd(70), rd(-5)), 0.05 + O * 0.075) | |
626 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05 + O * 0.075) | |
627 | end | |
628 | if dipperhat then | |
629 | dipperhat.Handle.HatAttachment.Rotation = dipperrot | |
630 | end | |
631 | human.WalkSpeed = speed | |
632 | human:SetStateEnabled(3, true) | |
633 | activu = false | |
634 | end | |
635 | -------------------------------------------------------------------------------------------------------------------------------------- | |
636 | ||
637 | ||
638 | -------------------------------------------------------------------------------------------------------------------------------------- | |
639 | if keya == "q" then | |
640 | activu = true | |
641 | do | |
642 | local checkkey = true | |
643 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
644 | if xzx == "q" then | |
645 | checkkey = false | |
646 | end | |
647 | end) | |
648 | repeat | |
649 | for _ = 1, 2 do | |
650 | swait() | |
651 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-20), rd(10), rd(-40)), 0.7) | |
652 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
653 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(-20), rd(179)), 0.7) | |
654 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
655 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(30)), 0.7) | |
656 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
657 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
658 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
659 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(-110)), 0.7) | |
660 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
661 | end | |
662 | swingwoo:Play() | |
663 | for T = 1, 2 do | |
664 | swait() | |
665 | if T == 2 then | |
666 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10))) | |
667 | end | |
668 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(60), rd(-10), rd(30)), 0.7) | |
669 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
670 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(20), rd(20), rd(40)), 0.7) | |
671 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
672 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
673 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
674 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(20), rd(-40), rd(80)), 0.7) | |
675 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
676 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-20), rd(60)), 0.7) | |
677 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
678 | end | |
679 | for _ = 1, 2 do | |
680 | swait() | |
681 | lerpz(RJ, "C0", RJC0 * cf(0, 0.5, 0) * ang(rd(-30), rd(20), rd(0)), 0.7) | |
682 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
683 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(179)), 0.7) | |
684 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
685 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-40), rd(20), rd(30)), 0.7) | |
686 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
687 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
688 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
689 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(35)), 0.7) | |
690 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
691 | end | |
692 | swingwoo:Play() | |
693 | for T = 1, 2 do | |
694 | swait() | |
695 | if T == 2 then | |
696 | hito(pt5, 5, 4, 0.03, hrp.CFrame.lookVector * 10, Vector3.new(0, rd2(-2, 2), rd2(-10, 10))) | |
697 | end | |
698 | lerpz(RJ, "C0", RJC0 * cf(0, -0.5, 0) * ang(rd(40), rd(40), rd(0)), 0.7) | |
699 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(20), rd(0), rd(0)), 0.7) | |
700 | lerpz(RS, "C0", RSC0 * cf(0, 0.5, 0) * ang(rd(60), rd(20), rd(30)), 0.7) | |
701 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
702 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-70), rd(20), rd(30)), 0.7) | |
703 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
704 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-30)), 0.7) | |
705 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
706 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-30), rd(20), rd(-65)), 0.7) | |
707 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.7) | |
708 | end | |
709 | until not checkkey | |
710 | keyingup:Disconnect() | |
711 | activu = false | |
712 | end | |
713 | end | |
714 | if keya == "f" then | |
715 | activu = true | |
716 | do | |
717 | local speed = human.WalkSpeed | |
718 | human.WalkSpeed = 2 | |
719 | human:SetStateEnabled(3, false) | |
720 | local checkkey = true | |
721 | local chargecounter = 0 | |
722 | local keyingup = mouse.KeyUp:connect(function(xzx) | |
723 | if xzx == "f" then | |
724 | checkkey = false | |
725 | end | |
726 | end) | |
727 | local firederp | |
728 | for _ = 1, 8 do | |
729 | swait() | |
730 | hwel.C0 = hwel.C0:lerp(ang(rd(65), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
731 | lerpz(RJ, "C0", RJC0 * cf(0.5, 0.5, 0) * ang(rd(0), rd(0), rd(-70)), 0.5) | |
732 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(60)), 0.5) | |
733 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(70), rd(-10), rd(80)), 0.5) | |
734 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
735 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(-10), rd(-70), rd(-75)), 0.5) | |
736 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.5) | |
737 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.5) | |
738 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
739 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(0), rd(80), rd(-5)), 0.5) | |
740 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.5) | |
741 | end | |
742 | repeat | |
743 | swait() | |
744 | chargecounter = chargecounter + 1 | |
745 | lerpz(RS, "C0", RSC0 * cf(rd2(-5, 5) / 100, rd2(-5, 5) / 100, rd2(-5, 5) / 100) * ang(rd(rd2(65, 75)), rd(rd2(-15, 5)), rd(rd2(75, 85))), 0.05 + chargecounter * 0.019) | |
746 | lerpz(LS, "C0", LSC0 * cf(-0.3, -0.1, -1) * ang(rd(rd2(-15, -5)), rd(rd2(-75, -65)), rd(rd2(-80, -70))), 0.05 + chargecounter * 0.019) | |
747 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(rd2(-25, -15)), rd(0)), 0.05 + chargecounter * 0.019) | |
748 | if chargecounter > 30 and firederp == nil then | |
749 | firederp = Instance.new("Fire") | |
750 | firederp.Parent = pt5 | |
751 | end | |
752 | until not checkkey or chargecounter > 50 | |
753 | swingwoo:Play() | |
754 | for U = 1, 10 do | |
755 | swait() | |
756 | if U < 3 then | |
757 | hito(pt5, 5, 10, 0.2, hrp.CFrame.lookVector * (80 + chargecounter * 3) + Vector3.new(0, 6 + 6 * (chargecounter / 5), 0), Vector3.new(0, rd2(-25, 25) * (chargecounter / 25), rd2(-80, 80) * (chargecounter / 25))) | |
758 | if chargecounter > 30 then | |
759 | tagexplode(pt5, 5, 1) | |
760 | end | |
761 | end | |
762 | hwel.C0 = hwel.C0:lerp(ang(rd(135), rd(0), rd(0)) * cf(0, 1, 0), 0.6) | |
763 | lerpz(RJ, "C0", RJC0 * cf(0.5, -0.5, 0) * ang(rd(0), rd(0), rd(50)), 0.6) | |
764 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(-30)), 0.6) | |
765 | lerpz(RS, "C0", RSC0 * cf(0.75, 0.5, -0.5) * ang(rd(0), rd(60), rd(120)), 0.4) | |
766 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(100), rd(0)), 0.4) | |
767 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(20), rd(-125)), 0.4) | |
768 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(-20), rd(0)), 0.4) | |
769 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(5)), 0.6) | |
770 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6) | |
771 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(-6)), 0.6) | |
772 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(5), rd(0), rd(0)), 0.6) | |
773 | end | |
774 | if firederp then | |
775 | firederp:Destroy() | |
776 | end | |
777 | swait(10) | |
778 | hwel.C0 = ang(rd(90), rd(0), rd(0)) * cf(0, 1, 0) | |
779 | keyingup:Disconnect() | |
780 | human.WalkSpeed = speed | |
781 | human:SetStateEnabled(3, true) | |
782 | activu = false | |
783 | end | |
784 | end | |
785 | end) | |
786 | end | |
787 | elseif batting == true then | |
788 | batting = false | |
789 | clibat:Disconnect() | |
790 | spec:Disconnect() | |
791 | hrp.sweae:Destroy() | |
792 | local batmod = chr:FindFirstChild("bmodel") | |
793 | batmod.hnd.Weld:Destroy() | |
794 | batmod.PrimaryPart = batmod.hnd | |
795 | batmod:SetPrimaryPartCFrame(rarm.CFrame * ang(rd(-90), rd(0), rd(0)) * cf(0, 0, -1)) | |
796 | for _, A in pairs(batmod:GetChildren()) do | |
797 | if A.ClassName == "Part" then | |
798 | A.CanCollide = true | |
799 | A.Anchored = false | |
800 | end | |
801 | end | |
802 | batmod.Parent = workspace | |
803 | game.Debris:AddItem(batmod, 8) | |
804 | end | |
805 | end | |
806 | local movin = false | |
807 | local cliham, hamspec | |
808 | function ham() | |
809 | if batting == false then | |
810 | batting = true | |
811 | do | |
812 | local bmod = Instance.new("Model") | |
813 | bmod.Name = "bmodel" | |
814 | bmod.Parent = chr | |
815 | local makemotor = function(parent, p0, p1, c0, c1) | |
816 | local wel = Instance.new("Motor6D") | |
817 | wel.Part0 = p0 | |
818 | wel.Part1 = p1 | |
819 | wel.C0 = c0 | |
820 | if c1 ~= nil then | |
821 | wel.C1 = c1 | |
822 | end | |
823 | wel.Parent = parent | |
824 | return wel | |
825 | end | |
826 | local hnd = makepart("Br. yellowish green", "hnd", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
827 | hnd.Anchored = true | |
828 | local hmes = makemesh("Head", Vector3.new(5, 30, 5), nil, hnd) | |
829 | movin = true | |
830 | hnd.CFrame = hrp.CFrame | |
831 | coroutine.resume(coroutine.create(function() | |
832 | while hnd.Anchored == true do | |
833 | swait() | |
834 | if movin then | |
835 | hnd.CFrame = hnd.CFrame:lerp(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, 11, 0), 0.65) | |
836 | end | |
837 | end | |
838 | end)) | |
839 | local pt1 = makepart("Br. yellowish green", "pt1", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
840 | local p1m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt1) | |
841 | local p1w = makemotor(pt1, pt1, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3, 0), nil) | |
842 | local pt2 = makepart("Br. yellowish green", "pt2", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
843 | local p2m = makemesh("Head", Vector3.new(6, 5.5, 5.5), nil, pt2) | |
844 | local p2w = makemotor(pt2, pt2, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -3, 0), nil) | |
845 | local pt3 = makepart("Bright yellow", "pt3", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
846 | local p3m = makemesh("Head", Vector3.new(6.5, 6.5, 6.5), nil, pt3) | |
847 | local p3w = makemotor(pt3, pt3, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, 3.75, 0), nil) | |
848 | local pt4 = makepart("Br. yellowish green", "pt4", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
849 | local p4m = makemesh("FileMesh", Vector3.new(1, 1, 1), "rbxassetid://250640098", pt4) | |
850 | p4m.TextureId = "rbxassetid://250639536" | |
851 | local p4w = makemotor(pt4, pt4, hnd, ang(rd(180), rd(180), rd(0)) * cf(0, 4.25, 0.25), nil) | |
852 | local pt5 = makepart("Bright blue", "pt5", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
853 | local p5m = makemesh("Head", Vector3.new(5, 90, 4), nil, pt5) | |
854 | local p5w = makemotor(pt5, pt5, hnd, ang(rd(0), rd(0), rd(0)) * cf(0, -12, 0), nil) | |
855 | local pt6 = makepart("Bright blue", "pt6", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
856 | local p6m = makemesh("FileMesh", Vector3.new(0.16, 0.4, 0.16), "rbxassetid://703458158", pt6) | |
857 | local p6w = makemotor(pt6, pt6, hnd, ang(rd(180), rd(0), rd(0)) * cf(0, -16, 0), nil) | |
858 | local pt7 = makepart("Bright yellow", "pt7", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
859 | local p7m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt7) | |
860 | local p7w = makemotor(pt7, pt7, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -27, 0), nil) | |
861 | local hdec1 = Instance.new("Decal") | |
862 | hdec1.Texture = "rbxasset://textures/face.png" | |
863 | hdec1.Face = "Front" | |
864 | hdec1.Parent = pt7 | |
865 | local pt8 = makepart("Bright yellow", "pt8", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
866 | local p8m = makemesh("Head", Vector3.new(75, 75, 75), nil, pt8) | |
867 | local p8w = makemotor(pt8, pt8, hnd, ang(rd(0), rd(-90), rd(0)) * cf(0, -27, 0), nil) | |
868 | local hdec2 = Instance.new("Decal") | |
869 | hdec2.Texture = "rbxasset://textures/face.png" | |
870 | hdec2.Face = "Front" | |
871 | hdec2.Parent = pt8 | |
872 | local pt9 = makepart("Bright yellow", "pt9", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
873 | local p9m = makemesh("FileMesh", Vector3.new(12, 11, 11), "rbxassetid://272942659", pt9) | |
874 | local p9w = makemotor(pt9, pt9, hnd, ang(rd(0), rd(90), rd(0)) * cf(0, -30, 0), nil) | |
875 | p9m.TextureId = "rbxassetid://272942750" | |
876 | local pt10 = makepart("Bright yellow", "pt10", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
877 | local p10m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt10) | |
878 | local p10w = makemotor(pt10, pt10, pt7, ang(rd(0), rd(0), rd(90)) * cf(11, 0, 0), nil) | |
879 | local hdec3 = Instance.new("Decal") | |
880 | hdec3.Texture = "rbxasset://textures/face.png" | |
881 | hdec3.Face = "Front" | |
882 | hdec3.Parent = pt10 | |
883 | local pt11 = makepart("Bright yellow", "pt11", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
884 | local p11m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt11) | |
885 | local p11w = makemotor(pt11, pt11, pt7, ang(rd(0), rd(180), rd(90)) * cf(11, 0, 0), nil) | |
886 | local hdec4 = Instance.new("Decal") | |
887 | hdec4.Texture = "rbxasset://textures/face.png" | |
888 | hdec4.Face = "Front" | |
889 | hdec4.Parent = pt11 | |
890 | local pt12 = makepart("Bright yellow", "pt12", 0, 0, "SmoothPlastic", bmod, hrp.CFrame) | |
891 | local p12m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt12) | |
892 | local p12w = makemotor(pt12, pt12, pt7, ang(rd(0), rd(0), rd(-90)) * cf(-11, 0, 0), nil) | |
893 | local hdec5 = Instance.new("Decal") | |
894 | hdec5.Texture = "rbxasset://textures/face.png" | |
895 | hdec5.Face = "Front" | |
896 | hdec5.Parent = pt12 | |
897 | local pt13 = makepart("Bright yellow", "pt13", 0, 1, "SmoothPlastic", bmod, hrp.CFrame) | |
898 | local p13m = makemesh("Head", Vector3.new(60, 60, 60), nil, pt13) | |
899 | local p13w = makemotor(pt13, pt13, pt7, ang(rd(0), rd(180), rd(-90)) * cf(-11, 0, 0), nil) | |
900 | local hdec6 = Instance.new("Decal") | |
901 | hdec6.Texture = "rbxasset://textures/face.png" | |
902 | hdec6.Face = "Front" | |
903 | hdec6.Parent = pt13 | |
904 | cliham = tool.Activated:connect(function() | |
905 | if selected == false or activu == true or ragged == true then | |
906 | return | |
907 | end | |
908 | activu = true | |
909 | movin = false | |
910 | for B = 1, 20 do | |
911 | swait() | |
912 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.4) | |
913 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(8), rd(0), rd(0)), 0.4) | |
914 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-15), rd(-5), rd(170)), 0.4) | |
915 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
916 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(-10), rd(10)), 0.4) | |
917 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
918 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-5), rd(-10), rd(-10)), 0.4) | |
919 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
920 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-5), rd(10), rd(10)), 0.4) | |
921 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.4) | |
922 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 0.1 + B * 0.045) | |
923 | end | |
924 | for B = 1, 30 do | |
925 | swait() | |
926 | lerpz(RJ, "C0", RJC0 * cf(0, 0.8, 0) * ang(rd(-25), rd(0), rd(-50)), 0.1 + B / 80) | |
927 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-18), rd(0), rd(40)), 0.1 + B / 80) | |
928 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-30), rd(-5), rd(160)), 0.1 + B / 80) | |
929 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
930 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-20), rd(-150)), 0.1 + B / 80) | |
931 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
932 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(-10)), 0.1 + B / 80) | |
933 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
934 | lerpz(LH, "C0", LHC0 * cf(0.5, 0, -0.4) * ang(rd(-5), rd(60), rd(-110)), 0.1 + B / 80) | |
935 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.1 + B / 80) | |
936 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
937 | end | |
938 | for B = 1, 7 do | |
939 | swait() | |
940 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(40)), 0.015 + B / 15) | |
941 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.015 + B / 15) | |
942 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-50), rd(100)), 0.015 + B / 15) | |
943 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
944 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.015 + B / 15) | |
945 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
946 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(10)), 0.015 + B / 15) | |
947 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
948 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(-20)), 0.015 + B / 15) | |
949 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.015 + B / 15) | |
950 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
951 | end | |
952 | for B = 1, 4 do | |
953 | swait() | |
954 | lerpz(RJ, "C0", RJC0 * cf(0, -0.8, 0) * ang(rd(70), rd(0), rd(40)), 0.38 + B * 0.1) | |
955 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(9), rd(0), rd(-15)), 0.38 + B * 0.1) | |
956 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(-40), rd(100)), 0.38 + B * 0.1) | |
957 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
958 | lerpz(LS, "C0", LSC0 * cf(-0.8, 0, -1) * ang(rd(-60), rd(-25), rd(-90)), 0.38 + B * 0.1) | |
959 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
960 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-20), rd(60)), 0.38 + B * 0.1) | |
961 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
962 | lerpz(LH, "C0", LHC0 * cf(0.1, 0, -0.1) * ang(rd(-5), rd(20), rd(70)), 0.38 + B * 0.1) | |
963 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.38 + B * 0.1) | |
964 | hnd.CFrame = hnd.CFrame:lerp(rarm.CFrame * ang(rd(-110), rd(0), rd(0)) * cf(0, 0, -1), 1) | |
965 | end | |
966 | swait(15) | |
967 | movin = true | |
968 | activu = false | |
969 | end) | |
970 | end | |
971 | elseif batting == true then | |
972 | batting = false | |
973 | cliham:Disconnect() | |
974 | local badevz = chr:FindFirstChild("bmodel") | |
975 | badevz.PrimaryPart = badevz.hnd | |
976 | for _, A in pairs(badevz:GetChildren()) do | |
977 | if A.ClassName == "Part" then | |
978 | A.CanCollide = true | |
979 | A.Anchored = false | |
980 | end | |
981 | end | |
982 | movin = false | |
983 | badevz.Parent = workspace | |
984 | badevz:SetPrimaryPartCFrame(hrp.CFrame * ang(rd(40), rd(0), rd(0)) * cf(0, -11, 0)) | |
985 | game.Debris:AddItem(badevz, 8) | |
986 | end | |
987 | end | |
988 | game:GetService("ContentProvider"):Preload("rbxassetid://725969678") | |
989 | function lauf() | |
990 | if selected == false or activu == true then | |
991 | return | |
992 | end | |
993 | lauf1:Play() | |
994 | end | |
995 | function makenoob(cfrem, scalo, rags) | |
996 | nscale.Value = scalo | |
997 | local md = Instance.new("Model") | |
998 | md.Name = "Noob" | |
999 | md.Parent = workspace | |
1000 | local hu = Instance.new("Humanoid") | |
1001 | hu.RigType = "R6" | |
1002 | hu.MaxHealth = 100 * scalo | |
1003 | hu.Health = 100 * scalo | |
1004 | hu.Parent = md | |
1005 | local anm = Instance.new("Animator") | |
1006 | anm.Parent = hu | |
1007 | hu.PlatformStand = true | |
1008 | local light = function(part) | |
1009 | part.CustomPhysicalProperties = PhysicalProperties.new(0.35, 0.3, 0.5) | |
1010 | end | |
1011 | local hd = Instance.new("Part") | |
1012 | hd.Name = "Head" | |
1013 | hd.Size = Vector3.new(2 * nscale.Value, 1 * nscale.Value, 1 * nscale.Value) | |
1014 | hd.TopSurface = "Smooth" | |
1015 | hd.BottomSurface = "Inlet" | |
1016 | hd.Locked = true | |
1017 | hd.BrickColor = BrickColor.new("Bright yellow") | |
1018 | hd.CanCollide = true | |
1019 | hd.Anchored = false | |
1020 | light(hd) | |
1021 | hd.Parent = md | |
1022 | local hm = Instance.new("SpecialMesh") | |
1023 | hm.MeshType = "Head" | |
1024 | hm.Scale = Vector3.new(1.25, 1.25, 1.25) | |
1025 | hm.Parent = hd | |
1026 | local hf = Instance.new("Decal") | |
1027 | hf.Texture = "rbxasset://textures/face.png" | |
1028 | local gen = math.random(1, 40) | |
1029 | if gen == 3 then | |
1030 | hf.Texture = "rbxassetid://260884109" | |
1031 | end | |
1032 | if gen == 8 then | |
1033 | hf.Texture = "rbxassetid://260569492" | |
1034 | end | |
1035 | if gen == 12 then | |
1036 | hf.Texture = "rbxassetid://259580505" | |
1037 | end | |
1038 | if gen == 16 then | |
1039 | hf.Texture = "rbxassetid://259579232" | |
1040 | end | |
1041 | if gen == 24 then | |
1042 | hf.Texture = "rbxassetid://259571525" | |
1043 | end | |
1044 | if gen == 28 then | |
1045 | hf.Texture = "rbxassetid://258283210" | |
1046 | end | |
1047 | if gen == 32 then | |
1048 | hf.Texture = "rbxassetid://258940032" | |
1049 | end | |
1050 | if gen == 38 then | |
1051 | hf.Texture = "rbxassetid://673220970" | |
1052 | hf.Color3 = Color3.new(0, 0, 0) | |
1053 | end | |
1054 | hf.Face = "Front" | |
1055 | hf.Parent = hd | |
1056 | local hrpa = Instance.new("Part") | |
1057 | hrpa.Name = "HumanoidRootPart" | |
1058 | hrpa.TopSurface, hrpa.BottomSurface = 0, 0 | |
1059 | hrpa.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1060 | hrpa.Transparency = 1 | |
1061 | hrpa.CanCollide = false | |
1062 | hrpa.Locked = true | |
1063 | light(hrpa) | |
1064 | hrpa.Parent = md | |
1065 | local tagbomb = Instance.new("BoolValue") | |
1066 | tagbomb.Name = "tagbomb" | |
1067 | tagbomb.Value = false | |
1068 | tagbomb.Parent = hrpa | |
1069 | local learm = Instance.new("Part") | |
1070 | learm.Name = "Left Arm" | |
1071 | learm.BrickColor = BrickColor.new("Bright yellow") | |
1072 | learm.CanCollide = false | |
1073 | learm.Locked = true | |
1074 | learm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1075 | light(learm) | |
1076 | learm.Parent = md | |
1077 | local riarm = Instance.new("Part") | |
1078 | riarm.Name = "Right Arm" | |
1079 | riarm.BrickColor = BrickColor.new("Bright yellow") | |
1080 | riarm.CanCollide = false | |
1081 | riarm.Locked = true | |
1082 | light(riarm) | |
1083 | riarm.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1084 | riarm.Parent = md | |
1085 | local leleg = Instance.new("Part") | |
1086 | leleg.Name = "Left Leg" | |
1087 | leleg.BrickColor = BrickColor.new("Br. yellowish green") | |
1088 | leleg.CanCollide = false | |
1089 | leleg.Locked = true | |
1090 | light(leleg) | |
1091 | leleg.BottomSurface = 0 | |
1092 | leleg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1093 | leleg.Parent = md | |
1094 | local rileg = Instance.new("Part") | |
1095 | rileg.Name = "Right Leg" | |
1096 | rileg.BrickColor = BrickColor.new("Br. yellowish green") | |
1097 | rileg.CanCollide = false | |
1098 | rileg.Locked = true | |
1099 | light(rileg) | |
1100 | rileg.BottomSurface = 0 | |
1101 | rileg.Size = Vector3.new(1 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1102 | rileg.Parent = md | |
1103 | local tor = Instance.new("Part") | |
1104 | tor.Name = "Torso" | |
1105 | tor.BrickColor = BrickColor.new("Bright blue") | |
1106 | tor.Locked = true | |
1107 | light(tor) | |
1108 | tor.Size = Vector3.new(2 * nscale.Value, 2 * nscale.Value, 1 * nscale.Value) | |
1109 | tor.LeftSurface, tor.RightSurface = "Weld", "Weld" | |
1110 | tor.Parent = md | |
1111 | md.PrimaryPart = hrpa | |
1112 | md:SetPrimaryPartCFrame(cfrem) | |
1113 | md:makeJoints() | |
1114 | makejoint(hrpa, RootJointC0, RootJointC1, hrpa, tor, "RootJoint") | |
1115 | makejoint(tor, NeckC0, NeckC1, tor, hd, "Neck") | |
1116 | if rags == true then | |
1117 | makegloo(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
1118 | makegloo(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
1119 | makegloo(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
1120 | makegloo(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
1121 | maketouchy(riarm, riarm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1122 | maketouchy(learm, learm, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1123 | maketouchy(leleg, leleg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1124 | maketouchy(rileg, rileg, CFrame.new(0, 0.5 * nscale.Value, 0)) | |
1125 | elseif rags == false then | |
1126 | makejoint(tor, RightShoulderC0, RightShoulderC1, tor, riarm, "Right Shoulder") | |
1127 | makejoint(tor, LeftShoulderC0, LeftShoulderC1, tor, learm, "Left Shoulder") | |
1128 | makejoint(tor, RightHipC0, RightHipC1, tor, rileg, "Right Hip") | |
1129 | makejoint(tor, LeftHipC0, LeftHipC1, tor, leleg, "Left Hip") | |
1130 | hu.PlatformStand = false | |
1131 | end | |
1132 | nscale.Value = 1 | |
1133 | hu.Touched:connect(function(tpart, uwot) | |
1134 | if tagbomb.Value == true and tpart.Parent ~= md and tpart.Parent.Parent ~= md and tpart.Parent.Parent.Parent ~= md then | |
1135 | tagbomb.Value = false | |
1136 | hu.Health = 0 | |
1137 | local derp = Instance.new("Explosion") | |
1138 | derp.BlastPressure = 200 | |
1139 | derp.BlastRadius = 8 | |
1140 | derp.DestroyJointRadiusPercent = 0 | |
1141 | derp.ExplosionType = 2 | |
1142 | derp.Visible = true | |
1143 | derp.Position = uwot.Position - Vector3.new(0, 0.5, 0) | |
1144 | derp.Parent = workspace | |
1145 | game.Debris:AddItem(md, 8) | |
1146 | end | |
1147 | end) | |
1148 | return md | |
1149 | end | |
1150 | function makecircle(cfrem, scalo) | |
1151 | local mcir1 = Instance.new("Part") | |
1152 | mcir1.Anchored = true | |
1153 | mcir1.CanCollide = false | |
1154 | mcir1.Size = Vector3.new(0.2, 0.2, 0.2) | |
1155 | mcir1.Transparency = 1 | |
1156 | mcir1.CFrame = cfrem | |
1157 | mcir1.Parent = modz | |
1158 | game.Debris:AddItem(mcir1, 8) | |
1159 | local d1 = Instance.new("Decal") | |
1160 | d1.Texture = "rbxassetid://602615043" | |
1161 | d1.Face = "Front" | |
1162 | d1.Parent = mcir1 | |
1163 | local d2 = Instance.new("Decal") | |
1164 | d2.Texture = "rbxassetid://602617463" | |
1165 | d2.Face = "Back" | |
1166 | d2.Parent = mcir1 | |
1167 | local bme = Instance.new("BlockMesh") | |
1168 | bme.Parent = mcir1 | |
1169 | for _ = 1, 9 do | |
1170 | swait() | |
1171 | bme.Scale = bme.Scale:lerp(Vector3.new(35 * scalo, 35 * scalo, 0), 0.3) | |
1172 | end | |
1173 | coroutine.resume(coroutine.create(function() | |
1174 | swait(15) | |
1175 | for _ = 1, 12 do | |
1176 | swait() | |
1177 | d1.Transparency = d1.Transparency + 0.08 | |
1178 | d2.Transparency = d2.Transparency + 0.08 | |
1179 | end | |
1180 | mcir1:Destroy() | |
1181 | end)) | |
1182 | return mcir1 | |
1183 | end | |
1184 | function spawnnoob(circlecf, noobcf, scalez, ragd) | |
1185 | local aearae = makecircle(circlecf, scalez) | |
1186 | local nananb | |
1187 | if ragd then | |
1188 | nananb = makenoob(aearae.CFrame * noobcf, scalez, true) | |
1189 | elseif not ragd then | |
1190 | nananb = makenoob(aearae.CFrame * noobcf, scalez, false) | |
1191 | end | |
1192 | return nananb | |
1193 | end | |
1194 | function tagexplode(partoz, magn, bombdelay) | |
1195 | for _, guy in pairs(workspace:GetChildren()) do | |
1196 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy.Name == "Noob" and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude then | |
1197 | coroutine.resume(coroutine.create(function() | |
1198 | swait(bombdelay * 30) | |
1199 | guy:FindFirstChild("HumanoidRootPart").tagbomb.Value = true | |
1200 | end)) | |
1201 | end | |
1202 | end | |
1203 | end | |
1204 | function hito(partoz, magn, dmg, debtim, bodyfdire, bodyrot) | |
1205 | for _, guy in pairs(workspace:GetChildren()) do | |
1206 | if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("HumanoidRootPart") and guy ~= chr and magn > (guy:FindFirstChild("HumanoidRootPart").Position - partoz.Position).magnitude and guy:FindFirstChild("HumanoidRootPart"):FindFirstChild("alabo") == nil then | |
1207 | do | |
1208 | local humz = guy:FindFirstChild("Humanoid") | |
1209 | local horp = guy:FindFirstChild("HumanoidRootPart") | |
1210 | humz:TakeDamage(dmg) | |
1211 | humz:SetStateEnabled(16, true) | |
1212 | delay(debtim, function() | |
1213 | humz:SetStateEnabled(16, true) | |
1214 | end) | |
1215 | local db = Instance.new("StringValue") | |
1216 | db.Name = "alabo" | |
1217 | db.Parent = horp | |
1218 | delay(debtim, function() | |
1219 | db:Destroy() | |
1220 | end) | |
1221 | local b = Instance.new("Part") | |
1222 | nooutline(b) | |
1223 | b.Size = Vector3.new(0.2, 0.2, 0.2) | |
1224 | b.Transparency = 0.25 | |
1225 | b.Anchored = true | |
1226 | b.CanCollide = false | |
1227 | b.BrickColor = BrickColor.new("Institutional white") | |
1228 | b.Locked = true | |
1229 | b.CFrame = horp.CFrame * CFrame.new(rd2(-1, 1), rd2(-2, 2), rd2(-1, 1)) | |
1230 | b.Parent = modz | |
1231 | local c = Instance.new("SpecialMesh") | |
1232 | c.MeshType = "Sphere" | |
1233 | c.Scale = Vector3.new(3.5, 3.5, 3.5) | |
1234 | c.Parent = b | |
1235 | game.Debris:AddItem(b, 1) | |
1236 | if bodyfdire then | |
1237 | local boopyve = Instance.new("BodyVelocity") | |
1238 | boopyve.MaxForce = Vector3.new(9999999999999, 9999999999999, 9999999999999) | |
1239 | boopyve.P = 9999999999 | |
1240 | boopyve.Velocity = bodyfdire | |
1241 | boopyve.Parent = horp | |
1242 | game.Debris:AddItem(boopyve, debtim) | |
1243 | end | |
1244 | if bodyrot then | |
1245 | local boopyro = Instance.new("BodyAngularVelocity") | |
1246 | boopyro.MaxTorque = Vector3.new(999999, 999999, 999999) | |
1247 | boopyro.P = math.huge | |
1248 | boopyro.AngularVelocity = bodyrot | |
1249 | boopyro.Parent = horp | |
1250 | game.Debris:AddItem(boopyro, debtim) | |
1251 | end | |
1252 | local bet = Instance.new("Sound") | |
1253 | bet.Pitch = rd2(9, 11) / 10 | |
1254 | bet.Volume = rd2(12, 14) / 10 | |
1255 | bet.SoundId = "rbxassetid://305526724" | |
1256 | bet.Parent = b | |
1257 | bet:Play() | |
1258 | coroutine.resume(coroutine.create(function() | |
1259 | for _ = 1, 5 do | |
1260 | swait() | |
1261 | b.Transparency = b.Transparency + 0.175 | |
1262 | c.Scale = c.Scale + Vector3.new(0.8 * dmg, 0.8 * dmg, 0.8 * dmg) | |
1263 | end | |
1264 | end)) | |
1265 | end | |
1266 | end | |
1267 | end | |
1268 | end | |
1269 | function cleannoobs() | |
1270 | for _, nib in pairs(workspace:GetChildren()) do | |
1271 | coroutine.resume(coroutine.create(function() | |
1272 | if nib.Name == "Noob" then | |
1273 | if nib:FindFirstChild("HumanoidRootPart") then | |
1274 | local g = Instance.new("Part") | |
1275 | g.CanCollide, g.Anchored = false, true | |
1276 | g.Transparency = 1 | |
1277 | g.CFrame = nib:FindFirstChild("HumanoidRootPart").CFrame | |
1278 | g.Parent = workspace | |
1279 | game.Debris:AddItem(g, 3.5) | |
1280 | local sou = Instance.new("Sound") | |
1281 | sou.Pitch = math.random(7, 11) / 10 | |
1282 | sou.Volume = 0.8 | |
1283 | sou.SoundId = "rbxassetid://111124523" | |
1284 | sou.Parent = g | |
1285 | local pe = Instance.new("ParticleEmitter") | |
1286 | pe.Acceleration = Vector3.new(0, 8, 0) | |
1287 | pe.Lifetime = NumberRange.new(1, 1.5) | |
1288 | pe.Rate = 0.005 | |
1289 | pe.RotSpeed = NumberRange.new(-30, 30) | |
1290 | pe.Rotation = NumberRange.new(0, 360) | |
1291 | pe.Size = NumberSequence.new({ | |
1292 | NumberSequenceKeypoint.new(0, 4.38, 0), | |
1293 | NumberSequenceKeypoint.new(0.672, 4.14, 0), | |
1294 | NumberSequenceKeypoint.new(1, 1.48, 0) | |
1295 | }) | |
1296 | pe.Texture = "rbxassetid://244221440" | |
1297 | pe.Transparency = NumberSequence.new({ | |
1298 | NumberSequenceKeypoint.new(0, 0, 0), | |
1299 | NumberSequenceKeypoint.new(0.529, 0.3, 0), | |
1300 | NumberSequenceKeypoint.new(1, 1, 1) | |
1301 | }) | |
1302 | pe.ZOffset = 5 | |
1303 | pe.Enabled = true | |
1304 | pe.VelocitySpread = 360 | |
1305 | pe.Parent = g | |
1306 | swait(5) | |
1307 | pe:Emit(6) | |
1308 | sou:Play() | |
1309 | end | |
1310 | nib:Destroy() | |
1311 | end | |
1312 | end)) | |
1313 | end | |
1314 | end | |
1315 | function animo(yep) | |
1316 | if yep == true then | |
1317 | anim.Parent = human | |
1318 | chr.Animate.Disabled = false | |
1319 | elseif yep == false then | |
1320 | chr.Animate.Disabled = true | |
1321 | anim.Parent = nil | |
1322 | end | |
1323 | end | |
1324 | mouse.KeyDown:connect(function(key) | |
1325 | if key == "r" then | |
1326 | test() | |
1327 | end | |
1328 | if key == "t" then | |
1329 | lauf() | |
1330 | end | |
1331 | if key == "c" and plr.UserId == 42147575 then | |
1332 | ham() | |
1333 | end | |
1334 | if key == "x" then | |
1335 | bat() | |
1336 | end | |
1337 | if key == "l" and plr.UserId == 42147575 and selected == true then | |
1338 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, true) | |
1339 | end | |
1340 | if key == "j" and plr.UserId == 42147575 and selected == true then | |
1341 | spawnnoob(hrp.CFrame * cf(5, 60, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 10, true) | |
1342 | end | |
1343 | if key == "k" and plr.UserId == 42147575 and selected == true then | |
1344 | spawnnoob(hrp.CFrame * cf(5, 3, -1) * ang(rd(90), 0, 0), cf(0, 0, 0) * ang(rd(-90), 0, 0), 1, false) | |
1345 | end | |
1346 | if key == "p" then | |
1347 | cleannoobs() | |
1348 | end | |
1349 | if key == "z" then | |
1350 | if selected == false or activu == true then | |
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | return | |
1356 | end | |
1357 | if human.WalkSpeed == 25 then | |
1358 | ---------------------------------------------------------------------- | |
1359 | ||
1360 | ||
1361 | ||
1362 | activu = true | |
1363 | local speed = human.WalkSpeed | |
1364 | human.WalkSpeed = 0 | |
1365 | human:SetStateEnabled(3, false) | |
1366 | local sond = Instance.new("Sound") | |
1367 | sond.Volume = 2 | |
1368 | sond.Pitch = 1 | |
1369 | sond.EmitterSize = 15 | |
1370 | sond.SoundId = "rbxassetid://203952633" | |
1371 | sond.Parent = hed | |
1372 | sond.TimePosition = .5 | |
1373 | Reaper2.Transparency = 0 | |
1374 | chara.Head.face.Texture = "http://www.roblox.com/asset/?id=246990268" | |
1375 | ||
1376 | sond:Play() | |
1377 | ||
1378 | local function expa() | |
1379 | ||
1380 | ||
1381 | ||
1382 | end | |
1383 | for _ = 1, 2 do | |
1384 | swait() | |
1385 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
1386 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
1387 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
1388 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1389 | lerpz(LS, "C0", LSC0 * cf(0, 0.2, -0.2) * ang(rd(70), rd(-60), rd(-100)), 0.5) | |
1390 | if dipperhat then | |
1391 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(0, 0, 0), 0.3) | |
1392 | end | |
1393 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1394 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
1395 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1396 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
1397 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1398 | ||
1399 | end | |
1400 | ||
1401 | ||
1402 | ||
1403 | for _ = 1, 20 do | |
1404 | ||
1405 | ||
1406 | swait() | |
1407 | ||
1408 | ||
1409 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.5) | |
1410 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.5) | |
1411 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-20), rd(0), rd(-10)), 0.5) | |
1412 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1413 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(35), rd(-50), rd(-100)), 0.3) | |
1414 | if dipperhat then | |
1415 | dipperhat.Handle.HatAttachment.Rotation = dipperhat.Handle.HatAttachment.Rotation:lerp(dipperrot + Vector3.new(15, 0, 0), 0.3) | |
1416 | end | |
1417 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1418 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-10), rd(10), rd(-10)), 0.5) | |
1419 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1420 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-10), rd(-10), rd(-10)), 0.5) | |
1421 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.5) | |
1422 | end | |
1423 | if dipperhat then | |
1424 | dipperhat.Handle.HatAttachment.Rotation = dipperrot | |
1425 | end | |
1426 | ||
1427 | ||
1428 | ||
1429 | human:SetStateEnabled(3, true) | |
1430 | activu = false | |
1431 | ||
1432 | ||
1433 | ||
1434 | ---------------------------------------------------------------------- | |
1435 | human.WalkSpeed = 70 | |
1436 | human.JumpPower = 75 | |
1437 | wait(.2) | |
1438 | Reaper2.Transparency = 1 | |
1439 | chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476" | |
1440 | wait(1.5) | |
1441 | sond:Stop() | |
1442 | else | |
1443 | human.WalkSpeed = 25 | |
1444 | human.JumpPower = 50 | |
1445 | end | |
1446 | end | |
1447 | ||
1448 | if key == "m" then | |
1449 | if musicon == true then | |
1450 | Music1:Stop() | |
1451 | musicon = false | |
1452 | ||
1453 | else | |
1454 | Music1:Play() | |
1455 | musicon = true | |
1456 | ||
1457 | end | |
1458 | end | |
1459 | end) | |
1460 | tool.Equipped:connect(function() | |
1461 | selected = true | |
1462 | end) | |
1463 | tool.Unequipped:connect(function() | |
1464 | selected = false | |
1465 | end) | |
1466 | animo(false) | |
1467 | human.WalkSpeed = 25 | |
1468 | sine = 0 | |
1469 | charge = 1 | |
1470 | cos = math.cos | |
1471 | game:GetService("RunService").RenderStepped:connect(function() | |
1472 | if ragged == false and activu == false then | |
1473 | local checkfloor = Ray.new(hrp.Position, Vector3.new(0, -5, 0)) | |
1474 | local checkpart = workspace:FindPartOnRayWithIgnoreList(checkfloor, {chr}, false, false) | |
1475 | local checkstate = human:GetState() | |
1476 | if checkstate.Value == 13 then | |
1477 | animpose = "Sitting" | |
1478 | elseif hrp.Velocity.y > 1 and checkpart == nil then | |
1479 | animpose = "Jumping" | |
1480 | elseif hrp.Velocity.y < -1 and checkpart == nil then | |
1481 | animpose = "Falling" | |
1482 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 2 then | |
1483 | animpose = "Idle" | |
1484 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude < 40 then | |
1485 | animpose = "Walking" | |
1486 | elseif (hrp.Velocity * Vector3.new(1, 0, 1)).magnitude > 40 then | |
1487 | animpose = "TooFast" | |
1488 | end | |
1489 | if animpose == "Idle" then | |
1490 | sine = sine + charge | |
1491 | lerpz(RJ, "C0", RJC0 * cf(0.05 * cos(sine / 40), 0, -0.05 - 0.05 * cos(sine / 20)) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1492 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(4 + 2 * cos(sine / 20)), rd(0), rd(0)), 0.3) | |
1493 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
1494 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1495 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(8 * cos(sine / 80)), rd(0), rd(8 * cos(sine / 80))), 0.3) | |
1496 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1497 | lerpz(RH, "C0", RHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), 0.05 * cos(sine / 40)) * ang(rd(-5), rd(-5), rd(1)), 0.3) | |
1498 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1499 | lerpz(LH, "C0", LHC0 * cf(0, 0.05 + 0.05 * cos(sine / 20), -0.05 * cos(sine / 40)) * ang(rd(-5), rd(5), rd(1)), 0.3) | |
1500 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1501 | end | |
1502 | if animpose == "Walking" then | |
1503 | sine = sine + charge | |
1504 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.025 * cos(sine / 4)) * ang(rd(-5), math.sin(hrp.RotVelocity.Y / 30), math.sin(hrp.RotVelocity.Y / 5)), 0.3) | |
1505 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(0), rd(0)), 0.3) | |
1506 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
1507 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1508 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 5)), rd(-20 * cos(sine / 5)), rd(90 * cos(sine / 5))), 0.6) | |
1509 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1510 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
1511 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1512 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-90 * cos(sine / 5))), 0.6) | |
1513 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1514 | end | |
1515 | if animpose == "Jumping" then | |
1516 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-5), rd(0), rd(0)), 0.3) | |
1517 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-10), rd(0), rd(0)), 0.3) | |
1518 | lerpz(RS, "C0", RSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(-5), rd(-20)), 0.3) | |
1519 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1520 | lerpz(LS, "C0", LSC0 * cf(0, -0.5, 0.2) * ang(rd(-70), rd(5), rd(20)), 0.3) | |
1521 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1522 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-20), rd(-20), rd(-20)), 0.3) | |
1523 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1524 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-20), rd(20), rd(15)), 0.3) | |
1525 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1526 | end | |
1527 | if animpose == "Falling" then | |
1528 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
1529 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(10), rd(0), rd(0)), 0.3) | |
1530 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(-5), rd(-20)), 0.3) | |
1531 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1532 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0.6) * ang(rd(-150), rd(5), rd(20)), 0.3) | |
1533 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1534 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-15), rd(-15), rd(-20)), 0.3) | |
1535 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1536 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-15), rd(15), rd(15)), 0.3) | |
1537 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1538 | end | |
1539 | if animpose == "TooFast" then | |
1540 | sine = sine + charge | |
1541 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0.35 * cos(sine / 2)) * ang(rd(-20), math.sin(hrp.RotVelocity.Y / 20), math.sin(hrp.RotVelocity.Y / 2)), 0.3) | |
1542 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-15 - 5 * cos(sine / 2)), rd(0), rd(0)), 0.3) | |
1543 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
1544 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1545 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-5 * cos(sine / 3)), rd(-120 * cos(sine / 3)), rd(110 * cos(sine / 3))), 0.6) | |
1546 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1547 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(-1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
1548 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1549 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-1 - 1 * cos(sine / 60)), rd(1 - 1 * cos(sine / 60)), rd(-110 * cos(sine / 3))), 0.6) | |
1550 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1551 | end | |
1552 | if animpose == "Sitting" then | |
1553 | lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1554 | lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1555 | lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
1556 | lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1557 | lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
1558 | lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1559 | lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(90)), 0.3) | |
1560 | lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1561 | lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(-90)), 0.3) | |
1562 | lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3) | |
1563 | end | |
1564 | end | |
1565 | end) | |
1566 | ||
1567 | ||
1568 | chara.Humanoid.MaxHealth = 1000 | |
1569 | chara.Humanoid.Health = 1000 | |
1570 | while true do | |
1571 | if chara.Humanoid.Health <=50 then | |
1572 | chara.Humanoid.Health = 1000 | |
1573 | end | |
1574 | wait(0.1) | |
1575 | end | |
1576 | ||
1577 | ||
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | ||
1585 | ||
1586 | ||
1587 | ||
1588 | ||
1589 | ||
1590 | ||
1591 | ------made by (123jl123) |