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