SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = owner | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | local FavIDs = { | |
87 | 340106355, --Nefl Crystals | |
88 | 927529620, --Dimension | |
89 | 876981900, --Fantasy | |
90 | 398987889, --Ordinary Days | |
91 | 1117396305, --Oh wait, it's you. | |
92 | 885996042, --Action Winter Journey | |
93 | 919231299, --Sprawling Idiot Effigy | |
94 | 743466274, --Good Day Sunshine | |
95 | 727411183, --Knife Fight | |
96 | 1402748531, --The Earth Is Counting On You! | |
97 | 595230126, --Robot Language | |
98 | 478890315 --Death Road to Canada: Rotten Shotgun | |
99 | } | |
100 | ||
101 | ||
102 | ||
103 | ||
104 | wait(0.2) | |
105 | local plr = owner | |
106 | print('Local User is '..plr.Name) | |
107 | print('if notive was in an anime show Loaded') | |
108 | print('Hi, POLE. Welcome to jo- i mean a random anime.') | |
109 | local char = plr.Character | |
110 | local Character = char | |
111 | local hum = char.Humanoid | |
112 | local hed = char.Head | |
113 | local Head = hed | |
114 | local root = char.HumanoidRootPart | |
115 | local rootj = root.RootJoint | |
116 | local tors = char.Torso | |
117 | local Torso = tors | |
118 | local ra = char["Right Arm"] | |
119 | local RightArm = ra | |
120 | local la = char["Left Arm"] | |
121 | local LeftArm = la | |
122 | local rl = char["Right Leg"] | |
123 | local RightLeg = rl | |
124 | local ll = char["Left Leg"] | |
125 | local LeftLeg = ll | |
126 | local neck = tors["Neck"] | |
127 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
128 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
129 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
130 | local maincolor = BrickColor.new("Institutional white") | |
131 | Character.Head.face.Texture = "rbxassetid://620619801" | |
132 | ||
133 | for i,v in pairs(Character:children()) do | |
134 | if v:IsA("Hat") then | |
135 | v:Destroy() | |
136 | end | |
137 | end | |
138 | for i,v in pairs(Character:children()) do | |
139 | if v:IsA("Accessory") then | |
140 | v:Destroy() | |
141 | end | |
142 | end | |
143 | for i,v in pairs(Character:children()) do | |
144 | if v:IsA("Hair") then | |
145 | v:Destroy() | |
146 | end | |
147 | end | |
148 | for i,v in pairs(Character:children()) do | |
149 | if v:IsA("Shirt") then | |
150 | v:Destroy() | |
151 | end | |
152 | end | |
153 | for i,v in pairs(Character:children()) do | |
154 | if v:IsA("Pants") then | |
155 | v:Destroy() | |
156 | end | |
157 | end | |
158 | for i,v in pairs(Character:children()) do | |
159 | if v:IsA("Graphic Shirt") then | |
160 | v:Destroy() | |
161 | end | |
162 | end | |
163 | for i,v in pairs(Character:children()) do | |
164 | if v:IsA("GraphicShirt") then | |
165 | v:Destroy() | |
166 | end | |
167 | end | |
168 | ||
169 | for _,v in pairs(Character:children()) do | |
170 | if v:IsA("Shirt") then | |
171 | v.ShirtTemplate = "rbxassetid://0" | |
172 | elseif v:IsA("Pants") then | |
173 | v.PantsTemplate = "rbxassetid://0" | |
174 | elseif v:IsA("ShirtGraphic") then | |
175 | v:Remove() | |
176 | wait(.1) | |
177 | Torso.roblox:Remove() | |
178 | elseif v:IsA("Accessory") then | |
179 | v:Remove() | |
180 | end | |
181 | end | |
182 | ||
183 | spawn(function() | |
184 | while wait() do | |
185 | Head.BrickColor = BrickColor.new("Bright yellow") | |
186 | RightArm.BrickColor = BrickColor.new("Bright yellow") | |
187 | LeftArm.BrickColor = BrickColor.new("Bright yellow") | |
188 | Torso.BrickColor = BrickColor.new("Shamrock") | |
189 | RightLeg.BrickColor = BrickColor.new("Br. yellowish green") | |
190 | LeftLeg.BrickColor = BrickColor.new("Br. yellowish green") | |
191 | end | |
192 | end) | |
193 | ||
194 | local Hair = Instance.new("Part") | |
195 | Hair.Parent = char | |
196 | Hair.Name = "GreenTopHat" | |
197 | Hair.Size = Vector3.new(0.1, 0.1, 0.1) | |
198 | Hair.CFrame = char.Head.CFrame | |
199 | Hair:BreakJoints() | |
200 | Hair.CanCollide = false | |
201 | Hair.BrickColor = BrickColor.new("Medium Stone") | |
202 | Hair.TopSurface = "Smooth" | |
203 | Hair.BottomSurface = "Smooth" | |
204 | Weld = Instance.new("Weld") | |
205 | Weld.Name = "Weld" | |
206 | Weld.Part0 = char.Head | |
207 | Weld.Part1 = Hair | |
208 | Weld.Parent = char.Head | |
209 | Weld.C0 = CFrame.new(0, 0.77, 0)*CFrame.fromEulerAnglesXYZ(0.1, 0, 0) | |
210 | Mesh = Instance.new("SpecialMesh") | |
211 | Mesh.Parent = Hair | |
212 | Mesh.MeshId = "http://www.roblox.com/asset/?id=1028713" | |
213 | Mesh.TextureId = "http://www.roblox.com/asset/?id=1563327" | |
214 | Mesh.Scale = Vector3.new(1, 1, 1) | |
215 | ||
216 | ------------------------------------------------------- | |
217 | --Start Good Stuff-- | |
218 | ------------------------------------------------------- | |
219 | cam = game.Workspace.CurrentCamera | |
220 | CF = CFrame.new | |
221 | angles = CFrame.Angles | |
222 | attack = false | |
223 | Euler = CFrame.fromEulerAnglesXYZ | |
224 | Rad = math.rad | |
225 | IT = Instance.new | |
226 | BrickC = BrickColor.new | |
227 | Cos = math.cos | |
228 | Acos = math.acos | |
229 | Sin = math.sin | |
230 | Asin = math.asin | |
231 | Abs = math.abs | |
232 | Mrandom = math.random | |
233 | Floor = math.floor | |
234 | ------------------------------------------------------- | |
235 | --End Good Stuff-- | |
236 | ------------------------------------------------------- | |
237 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
238 | RSH, LSH = nil, nil | |
239 | RW = Instance.new("Weld") | |
240 | LW = Instance.new("Weld") | |
241 | RH = tors["Right Hip"] | |
242 | LH = tors["Left Hip"] | |
243 | RSH = tors["Right Shoulder"] | |
244 | LSH = tors["Left Shoulder"] | |
245 | RSH.Parent = nil | |
246 | LSH.Parent = nil | |
247 | RW.Name = "RW" | |
248 | RW.Part0 = tors | |
249 | RW.C0 = CF(1.5, 0.5, 0) | |
250 | RW.C1 = CF(0, 0.5, 0) | |
251 | RW.Part1 = ra | |
252 | RW.Parent = tors | |
253 | LW.Name = "LW" | |
254 | LW.Part0 = tors | |
255 | LW.C0 = CF(-1.5, 0.5, 0) | |
256 | LW.C1 = CF(0, 0.5, 0) | |
257 | LW.Part1 = la | |
258 | LW.Parent = tors | |
259 | Effects = {} | |
260 | ------------------------------------------------------- | |
261 | --Start HeartBeat-- | |
262 | ------------------------------------------------------- | |
263 | ArtificialHB = Instance.new("BindableEvent", script) | |
264 | ArtificialHB.Name = "Heartbeat" | |
265 | script:WaitForChild("Heartbeat") | |
266 | ||
267 | frame = 1 / 60 | |
268 | tf = 0 | |
269 | allowframeloss = false | |
270 | tossremainder = false | |
271 | ||
272 | ||
273 | lastframe = tick() | |
274 | script.Heartbeat:Fire() | |
275 | ||
276 | ||
277 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
278 | tf = tf + s | |
279 | if tf >= frame then | |
280 | if allowframeloss then | |
281 | script.Heartbeat:Fire() | |
282 | lastframe = tick() | |
283 | else | |
284 | for i = 1, math.floor(tf / frame) do | |
285 | script.Heartbeat:Fire() | |
286 | end | |
287 | lastframe = tick() | |
288 | end | |
289 | if tossremainder then | |
290 | tf = 0 | |
291 | else | |
292 | tf = tf - frame * math.floor(tf / frame) | |
293 | end | |
294 | end | |
295 | end) | |
296 | ------------------------------------------------------- | |
297 | --End HeartBeat-- | |
298 | ------------------------------------------------------- | |
299 | ||
300 | ------------------------------------------------------- | |
301 | --Start Important Functions-- | |
302 | ------------------------------------------------------- | |
303 | function swait(num) | |
304 | if num == 0 or num == nil then | |
305 | game:service("RunService").Stepped:wait(0) | |
306 | else | |
307 | for i = 0, num do | |
308 | game:service("RunService").Stepped:wait(0) | |
309 | end | |
310 | end | |
311 | end | |
312 | function thread(f) | |
313 | coroutine.resume(coroutine.create(f)) | |
314 | end | |
315 | function clerp(a, b, t) | |
316 | local qa = { | |
317 | QuaternionFromCFrame(a) | |
318 | } | |
319 | local qb = { | |
320 | QuaternionFromCFrame(b) | |
321 | } | |
322 | local ax, ay, az = a.x, a.y, a.z | |
323 | local bx, by, bz = b.x, b.y, b.z | |
324 | local _t = 1 - t | |
325 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
326 | end | |
327 | function QuaternionFromCFrame(cf) | |
328 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
329 | local trace = m00 + m11 + m22 | |
330 | if trace > 0 then | |
331 | local s = math.sqrt(1 + trace) | |
332 | local recip = 0.5 / s | |
333 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
334 | else | |
335 | local i = 0 | |
336 | if m00 < m11 then | |
337 | i = 1 | |
338 | end | |
339 | if m22 > (i == 0 and m00 or m11) then | |
340 | i = 2 | |
341 | end | |
342 | if i == 0 then | |
343 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
344 | local recip = 0.5 / s | |
345 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
346 | elseif i == 1 then | |
347 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
348 | local recip = 0.5 / s | |
349 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
350 | elseif i == 2 then | |
351 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
352 | local recip = 0.5 / s | |
353 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
354 | end | |
355 | end | |
356 | end | |
357 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
358 | local xs, ys, zs = x + x, y + y, z + z | |
359 | local wx, wy, wz = w * xs, w * ys, w * zs | |
360 | local xx = x * xs | |
361 | local xy = x * ys | |
362 | local xz = x * zs | |
363 | local yy = y * ys | |
364 | local yz = y * zs | |
365 | local zz = z * zs | |
366 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
367 | end | |
368 | function QuaternionSlerp(a, b, t) | |
369 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
370 | local startInterp, finishInterp | |
371 | if cosTheta >= 1.0E-4 then | |
372 | if 1 - cosTheta > 1.0E-4 then | |
373 | local theta = math.acos(cosTheta) | |
374 | local invSinTheta = 1 / Sin(theta) | |
375 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
376 | finishInterp = Sin(t * theta) * invSinTheta | |
377 | else | |
378 | startInterp = 1 - t | |
379 | finishInterp = t | |
380 | end | |
381 | elseif 1 + cosTheta > 1.0E-4 then | |
382 | local theta = math.acos(-cosTheta) | |
383 | local invSinTheta = 1 / Sin(theta) | |
384 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
385 | finishInterp = Sin(t * theta) * invSinTheta | |
386 | else | |
387 | startInterp = t - 1 | |
388 | finishInterp = t | |
389 | end | |
390 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
391 | end | |
392 | function rayCast(Position, Direction, Range, Ignore) | |
393 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
394 | end | |
395 | local RbxUtility = LoadLibrary("RbxUtility") | |
396 | local Create = RbxUtility.Create | |
397 | ||
398 | ------------------------------------------------------- | |
399 | --Start Damage Function-- | |
400 | ------------------------------------------------------- | |
401 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
402 | if hit.Parent == nil then | |
403 | return | |
404 | end | |
405 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
406 | for _, v in pairs(hit.Parent:children()) do | |
407 | if v:IsA("Humanoid") then | |
408 | h = v | |
409 | end | |
410 | end | |
411 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
412 | ||
413 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
414 | end | |
415 | ||
416 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
417 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
418 | if hit.Parent.DebounceHit.Value == true then | |
419 | return | |
420 | end | |
421 | end | |
422 | if insta == true then | |
423 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
424 | end | |
425 | local c = Create("ObjectValue"){ | |
426 | Name = "creator", | |
427 | Value = owner, | |
428 | Parent = h, | |
429 | } | |
430 | game:GetService("Debris"):AddItem(c, .5) | |
431 | if HitSound ~= nil and HitPitch ~= nil then | |
432 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
433 | end | |
434 | local Damage = math.random(minim, maxim) | |
435 | local blocked = false | |
436 | local block = hit.Parent:findFirstChild("Block") | |
437 | if block ~= nil then | |
438 | if block.className == "IntValue" then | |
439 | if block.Value > 0 then | |
440 | blocked = true | |
441 | block.Value = block.Value - 1 | |
442 | print(block.Value) | |
443 | end | |
444 | end | |
445 | end | |
446 | if blocked == false then | |
447 | h.Health = h.Health - Damage | |
448 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
449 | else | |
450 | h.Health = h.Health - (Damage / 2) | |
451 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
452 | end | |
453 | if Type == "Knockdown" then | |
454 | local hum = hit.Parent.Humanoid | |
455 | hum.PlatformStand = true | |
456 | coroutine.resume(coroutine.create(function(HHumanoid) | |
457 | swait(1) | |
458 | HHumanoid.PlatformStand = false | |
459 | end), hum) | |
460 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
461 | local bodvol = Create("BodyVelocity"){ | |
462 | velocity = angle * knockback, | |
463 | P = 5000, | |
464 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
465 | Parent = hit, | |
466 | } | |
467 | local rl = Create("BodyAngularVelocity"){ | |
468 | P = 3000, | |
469 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
470 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
471 | Parent = hit, | |
472 | } | |
473 | game:GetService("Debris"):AddItem(bodvol, .5) | |
474 | game:GetService("Debris"):AddItem(rl, .5) | |
475 | elseif Type == "Normal" then | |
476 | local vp = Create("BodyVelocity"){ | |
477 | P = 500, | |
478 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
479 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
480 | } | |
481 | if knockback > 0 then | |
482 | vp.Parent = hit.Parent.Torso | |
483 | end | |
484 | game:GetService("Debris"):AddItem(vp, .5) | |
485 | elseif Type == "Up" then | |
486 | local bodyVelocity = Create("BodyVelocity"){ | |
487 | velocity = Vector3.new(0, 20, 0), | |
488 | P = 5000, | |
489 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
490 | Parent = hit, | |
491 | } | |
492 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
493 | elseif Type == "DarkUp" then | |
494 | coroutine.resume(coroutine.create(function() | |
495 | for i = 0, 1, 0.1 do | |
496 | swait() | |
497 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
498 | end | |
499 | end)) | |
500 | local bodyVelocity = Create("BodyVelocity"){ | |
501 | velocity = Vector3.new(0, 20, 0), | |
502 | P = 5000, | |
503 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
504 | Parent = hit, | |
505 | } | |
506 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
507 | elseif Type == "Snare" then | |
508 | local bp = Create("BodyPosition"){ | |
509 | P = 2000, | |
510 | D = 100, | |
511 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
512 | position = hit.Parent.Torso.Position, | |
513 | Parent = hit.Parent.Torso, | |
514 | } | |
515 | game:GetService("Debris"):AddItem(bp, 1) | |
516 | elseif Type == "Freeze" then | |
517 | local BodPos = Create("BodyPosition"){ | |
518 | P = 50000, | |
519 | D = 1000, | |
520 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
521 | position = hit.Parent.Torso.Position, | |
522 | Parent = hit.Parent.Torso, | |
523 | } | |
524 | local BodGy = Create("BodyGyro") { | |
525 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
526 | P = 20e+003, | |
527 | Parent = hit.Parent.Torso, | |
528 | cframe = hit.Parent.Torso.CFrame, | |
529 | } | |
530 | hit.Parent.Torso.Anchored = true | |
531 | coroutine.resume(coroutine.create(function(Part) | |
532 | swait(1.5) | |
533 | Part.Anchored = false | |
534 | end), hit.Parent.Torso) | |
535 | game:GetService("Debris"):AddItem(BodPos, 3) | |
536 | game:GetService("Debris"):AddItem(BodGy, 3) | |
537 | end | |
538 | local debounce = Create("BoolValue"){ | |
539 | Name = "DebounceHit", | |
540 | Parent = hit.Parent, | |
541 | Value = true, | |
542 | } | |
543 | game:GetService("Debris"):AddItem(debounce, Delay) | |
544 | c = Create("ObjectValue"){ | |
545 | Name = "creator", | |
546 | Value = Player, | |
547 | Parent = h, | |
548 | } | |
549 | game:GetService("Debris"):AddItem(c, .5) | |
550 | end | |
551 | end | |
552 | ------------------------------------------------------- | |
553 | --End Damage Function-- | |
554 | ------------------------------------------------------- | |
555 | ||
556 | ------------------------------------------------------- | |
557 | --Start Damage Function Customization-- | |
558 | ------------------------------------------------------- | |
559 | function ShowDamage(Pos, Text, Time, Color) | |
560 | local Rate = (1 / 30) | |
561 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
562 | local Text = (Text or "") | |
563 | local Time = (Time or 2) | |
564 | local Color = (Color or Color3.new(1, 0, 1)) | |
565 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
566 | EffectPart.Anchored = true | |
567 | local BillboardGui = Create("BillboardGui"){ | |
568 | Size = UDim2.new(3, 0, 3, 0), | |
569 | Adornee = EffectPart, | |
570 | Parent = EffectPart, | |
571 | } | |
572 | local TextLabel = Create("TextLabel"){ | |
573 | BackgroundTransparency = 1, | |
574 | Size = UDim2.new(1, 0, 1, 0), | |
575 | Text = Text, | |
576 | Font = "Bodoni", | |
577 | TextColor3 = Color, | |
578 | TextScaled = true, | |
579 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
580 | Parent = BillboardGui, | |
581 | } | |
582 | game.Debris:AddItem(EffectPart, (Time)) | |
583 | EffectPart.Parent = game:GetService("Workspace") | |
584 | delay(0, function() | |
585 | local Frames = (Time / Rate) | |
586 | for Frame = 1, Frames do | |
587 | wait(Rate) | |
588 | local Percent = (Frame / Frames) | |
589 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
590 | TextLabel.TextTransparency = Percent | |
591 | end | |
592 | if EffectPart and EffectPart.Parent then | |
593 | EffectPart:Destroy() | |
594 | end | |
595 | end) | |
596 | end | |
597 | ------------------------------------------------------- | |
598 | --End Damage Function Customization-- | |
599 | ------------------------------------------------------- | |
600 | ||
601 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
602 | for _, c in pairs(workspace:children()) do | |
603 | local hum = c:findFirstChild("Humanoid") | |
604 | if hum ~= nil then | |
605 | local head = c:findFirstChild("Head") | |
606 | if head ~= nil then | |
607 | local targ = head.Position - Part.Position | |
608 | local mag = targ.magnitude | |
609 | if magni >= mag and c.Name ~= plr.Name then | |
610 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
611 | end | |
612 | end | |
613 | end | |
614 | end | |
615 | end | |
616 | ||
617 | ||
618 | CFuncs = { | |
619 | Part = { | |
620 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
621 | local Part = Create("Part")({ | |
622 | Parent = Parent, | |
623 | Reflectance = Reflectance, | |
624 | Transparency = Transparency, | |
625 | CanCollide = false, | |
626 | Locked = true, | |
627 | BrickColor = BrickColor.new(tostring(BColor)), | |
628 | Name = Name, | |
629 | Size = Size, | |
630 | Material = Material | |
631 | }) | |
632 | RemoveOutlines(Part) | |
633 | return Part | |
634 | end | |
635 | }, | |
636 | Mesh = { | |
637 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
638 | local Msh = Create(Mesh)({ | |
639 | Parent = Part, | |
640 | Offset = OffSet, | |
641 | Scale = Scale | |
642 | }) | |
643 | if Mesh == "SpecialMesh" then | |
644 | Msh.MeshType = MeshType | |
645 | Msh.MeshId = MeshId | |
646 | end | |
647 | return Msh | |
648 | end | |
649 | }, | |
650 | Mesh = { | |
651 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
652 | local Msh = Create(Mesh)({ | |
653 | Parent = Part, | |
654 | Offset = OffSet, | |
655 | Scale = Scale | |
656 | }) | |
657 | if Mesh == "SpecialMesh" then | |
658 | Msh.MeshType = MeshType | |
659 | Msh.MeshId = MeshId | |
660 | end | |
661 | return Msh | |
662 | end | |
663 | }, | |
664 | Weld = { | |
665 | Create = function(Parent, Part0, Part1, C0, C1) | |
666 | local Weld = Create("Weld")({ | |
667 | Parent = Parent, | |
668 | Part0 = Part0, | |
669 | Part1 = Part1, | |
670 | C0 = C0, | |
671 | C1 = C1 | |
672 | }) | |
673 | return Weld | |
674 | end | |
675 | }, | |
676 | Sound = { | |
677 | Create = function(id, par, vol, pit) | |
678 | coroutine.resume(coroutine.create(function() | |
679 | local S = Create("Sound")({ | |
680 | Volume = vol, | |
681 | Pitch = pit or 1, | |
682 | SoundId = id, | |
683 | Parent = par or workspace | |
684 | }) | |
685 | wait() | |
686 | S:play() | |
687 | game:GetService("Debris"):AddItem(S, 6) | |
688 | end)) | |
689 | end | |
690 | }, | |
691 | ParticleEmitter = { | |
692 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
693 | local fp = Create("ParticleEmitter")({ | |
694 | Parent = Parent, | |
695 | Color = ColorSequence.new(Color1, Color2), | |
696 | LightEmission = LightEmission, | |
697 | Size = Size, | |
698 | Texture = Texture, | |
699 | Transparency = Transparency, | |
700 | ZOffset = ZOffset, | |
701 | Acceleration = Accel, | |
702 | Drag = Drag, | |
703 | LockedToPart = LockedToPart, | |
704 | VelocityInheritance = VelocityInheritance, | |
705 | EmissionDirection = EmissionDirection, | |
706 | Enabled = Enabled, | |
707 | Lifetime = LifeTime, | |
708 | Rate = Rate, | |
709 | Rotation = Rotation, | |
710 | RotSpeed = RotSpeed, | |
711 | Speed = Speed, | |
712 | VelocitySpread = VelocitySpread | |
713 | }) | |
714 | return fp | |
715 | end | |
716 | } | |
717 | } | |
718 | function RemoveOutlines(part) | |
719 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
720 | end | |
721 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
722 | local Part = Create("Part")({ | |
723 | formFactor = FormFactor, | |
724 | Parent = Parent, | |
725 | Reflectance = Reflectance, | |
726 | Transparency = Transparency, | |
727 | CanCollide = false, | |
728 | Locked = true, | |
729 | BrickColor = BrickColor.new(tostring(BColor)), | |
730 | Name = Name, | |
731 | Size = Size, | |
732 | Material = Material | |
733 | }) | |
734 | RemoveOutlines(Part) | |
735 | return Part | |
736 | end | |
737 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
738 | local Msh = Create(Mesh)({ | |
739 | Parent = Part, | |
740 | Offset = OffSet, | |
741 | Scale = Scale | |
742 | }) | |
743 | if Mesh == "SpecialMesh" then | |
744 | Msh.MeshType = MeshType | |
745 | Msh.MeshId = MeshId | |
746 | end | |
747 | return Msh | |
748 | end | |
749 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
750 | local Weld = Create("Weld")({ | |
751 | Parent = Parent, | |
752 | Part0 = Part0, | |
753 | Part1 = Part1, | |
754 | C0 = C0, | |
755 | C1 = C1 | |
756 | }) | |
757 | return Weld | |
758 | end | |
759 | ||
760 | ||
761 | ------------------------------------------------------- | |
762 | --Start Effect Function-- | |
763 | ------------------------------------------------------- | |
764 | EffectModel = Instance.new("Model", char) | |
765 | Effects = { | |
766 | Block = { | |
767 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
768 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
769 | prt.Anchored = true | |
770 | prt.CFrame = cframe | |
771 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
772 | game:GetService("Debris"):AddItem(prt, 10) | |
773 | if Type == 1 or Type == nil then | |
774 | table.insert(Effects, { | |
775 | prt, | |
776 | "Block1", | |
777 | delay, | |
778 | x3, | |
779 | y3, | |
780 | z3, | |
781 | msh | |
782 | }) | |
783 | elseif Type == 2 then | |
784 | table.insert(Effects, { | |
785 | prt, | |
786 | "Block2", | |
787 | delay, | |
788 | x3, | |
789 | y3, | |
790 | z3, | |
791 | msh | |
792 | }) | |
793 | else | |
794 | table.insert(Effects, { | |
795 | prt, | |
796 | "Block3", | |
797 | delay, | |
798 | x3, | |
799 | y3, | |
800 | z3, | |
801 | msh | |
802 | }) | |
803 | end | |
804 | end | |
805 | }, | |
806 | Sphere = { | |
807 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
808 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
809 | prt.Anchored = true | |
810 | prt.CFrame = cframe | |
811 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
812 | game:GetService("Debris"):AddItem(prt, 10) | |
813 | table.insert(Effects, { | |
814 | prt, | |
815 | "Cylinder", | |
816 | delay, | |
817 | x3, | |
818 | y3, | |
819 | z3, | |
820 | msh | |
821 | }) | |
822 | end | |
823 | }, | |
824 | Cylinder = { | |
825 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
826 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
827 | prt.Anchored = true | |
828 | prt.CFrame = cframe | |
829 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
830 | game:GetService("Debris"):AddItem(prt, 10) | |
831 | table.insert(Effects, { | |
832 | prt, | |
833 | "Cylinder", | |
834 | delay, | |
835 | x3, | |
836 | y3, | |
837 | z3, | |
838 | msh | |
839 | }) | |
840 | end | |
841 | }, | |
842 | Wave = { | |
843 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
844 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
845 | prt.Anchored = true | |
846 | prt.CFrame = cframe | |
847 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
848 | game:GetService("Debris"):AddItem(prt, 10) | |
849 | table.insert(Effects, { | |
850 | prt, | |
851 | "Cylinder", | |
852 | delay, | |
853 | x3 / 60, | |
854 | y3 / 60, | |
855 | z3 / 60, | |
856 | msh | |
857 | }) | |
858 | end | |
859 | }, | |
860 | Ring = { | |
861 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
862 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
863 | prt.Anchored = true | |
864 | prt.CFrame = cframe | |
865 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
866 | game:GetService("Debris"):AddItem(prt, 10) | |
867 | table.insert(Effects, { | |
868 | prt, | |
869 | "Cylinder", | |
870 | delay, | |
871 | x3, | |
872 | y3, | |
873 | z3, | |
874 | msh | |
875 | }) | |
876 | end | |
877 | }, | |
878 | Break = { | |
879 | Create = function(brickcolor, cframe, x1, y1, z1) | |
880 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
881 | prt.Anchored = true | |
882 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
883 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
884 | local num = math.random(10, 50) / 1000 | |
885 | game:GetService("Debris"):AddItem(prt, 10) | |
886 | table.insert(Effects, { | |
887 | prt, | |
888 | "Shatter", | |
889 | num, | |
890 | prt.CFrame, | |
891 | math.random() - math.random(), | |
892 | 0, | |
893 | math.random(50, 100) / 100 | |
894 | }) | |
895 | end | |
896 | }, | |
897 | Spiral = { | |
898 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
899 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
900 | prt.Anchored = true | |
901 | prt.CFrame = cframe | |
902 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
903 | game:GetService("Debris"):AddItem(prt, 10) | |
904 | table.insert(Effects, { | |
905 | prt, | |
906 | "Cylinder", | |
907 | delay, | |
908 | x3, | |
909 | y3, | |
910 | z3, | |
911 | msh | |
912 | }) | |
913 | end | |
914 | }, | |
915 | Push = { | |
916 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
917 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
918 | prt.Anchored = true | |
919 | prt.CFrame = cframe | |
920 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
921 | game:GetService("Debris"):AddItem(prt, 10) | |
922 | table.insert(Effects, { | |
923 | prt, | |
924 | "Cylinder", | |
925 | delay, | |
926 | x3, | |
927 | y3, | |
928 | z3, | |
929 | msh | |
930 | }) | |
931 | end | |
932 | } | |
933 | } | |
934 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
935 | local fp = IT("Part") | |
936 | fp.formFactor = formfactor | |
937 | fp.Parent = parent | |
938 | fp.Reflectance = reflectance | |
939 | fp.Transparency = transparency | |
940 | fp.CanCollide = false | |
941 | fp.Locked = true | |
942 | fp.BrickColor = brickcolor | |
943 | fp.Name = name | |
944 | fp.Size = size | |
945 | fp.Position = tors.Position | |
946 | RemoveOutlines(fp) | |
947 | fp.Material = "SmoothPlastic" | |
948 | fp:BreakJoints() | |
949 | return fp | |
950 | end | |
951 | ||
952 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
953 | local mesh = IT(Mesh) | |
954 | mesh.Parent = part | |
955 | if Mesh == "SpecialMesh" then | |
956 | mesh.MeshType = meshtype | |
957 | if meshid ~= "nil" then | |
958 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
959 | end | |
960 | end | |
961 | mesh.Offset = offset | |
962 | mesh.Scale = scale | |
963 | return mesh | |
964 | end | |
965 | ||
966 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
967 | local type = type | |
968 | local rng = Instance.new("Part", char) | |
969 | rng.Anchored = true | |
970 | rng.BrickColor = color | |
971 | rng.CanCollide = false | |
972 | rng.FormFactor = 3 | |
973 | rng.Name = "Ring" | |
974 | rng.Material = "Neon" | |
975 | rng.Size = Vector3.new(1, 1, 1) | |
976 | rng.Transparency = 0 | |
977 | rng.TopSurface = 0 | |
978 | rng.BottomSurface = 0 | |
979 | rng.CFrame = pos | |
980 | local rngm = Instance.new("SpecialMesh", rng) | |
981 | rngm.MeshType = MType | |
982 | rngm.Scale = scale | |
983 | local scaler2 = 1 | |
984 | if type == "Add" then | |
985 | scaler2 = 1 * value | |
986 | elseif type == "Divide" then | |
987 | scaler2 = 1 / value | |
988 | end | |
989 | coroutine.resume(coroutine.create(function() | |
990 | for i = 0, 10 / bonuspeed, 0.1 do | |
991 | swait() | |
992 | if type == "Add" then | |
993 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
994 | elseif type == "Divide" then | |
995 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
996 | end | |
997 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
998 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
999 | end | |
1000 | rng:Destroy() | |
1001 | end)) | |
1002 | end | |
1003 | ||
1004 | function Eviscerate(dude) | |
1005 | if dude.Name ~= char then | |
1006 | local bgf = IT("BodyGyro", dude.Head) | |
1007 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1008 | local val = IT("BoolValue", dude) | |
1009 | val.Name = "IsHit" | |
1010 | local ds = coroutine.wrap(function() | |
1011 | dude:WaitForChild("Head"):BreakJoints() | |
1012 | wait(0.5) | |
1013 | target = nil | |
1014 | coroutine.resume(coroutine.create(function() | |
1015 | for i, v in pairs(dude:GetChildren()) do | |
1016 | if v:IsA("Accessory") then | |
1017 | v:Destroy() | |
1018 | end | |
1019 | if v:IsA("Humanoid") then | |
1020 | v:Destroy() | |
1021 | end | |
1022 | if v:IsA("CharacterMesh") then | |
1023 | v:Destroy() | |
1024 | end | |
1025 | if v:IsA("Model") then | |
1026 | v:Destroy() | |
1027 | end | |
1028 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1029 | for x, o in pairs(v:GetChildren()) do | |
1030 | if o:IsA("Decal") then | |
1031 | o:Destroy() | |
1032 | end | |
1033 | end | |
1034 | coroutine.resume(coroutine.create(function() | |
1035 | v.Material = "Neon" | |
1036 | v.CanCollide = false | |
1037 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1038 | PartEmmit1.LightEmission = 1 | |
1039 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1040 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1041 | PartEmmit1.Rate = 150 | |
1042 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1043 | PartEmmit1.Size = NumberSequence.new({ | |
1044 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1045 | NumberSequenceKeypoint.new(1, 0, 0) | |
1046 | }) | |
1047 | PartEmmit1.Transparency = NumberSequence.new({ | |
1048 | NumberSequenceKeypoint.new(0, 0, 0), | |
1049 | NumberSequenceKeypoint.new(1, 1, 0) | |
1050 | }) | |
1051 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1052 | PartEmmit1.VelocitySpread = 30000 | |
1053 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1054 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1055 | local BodPoss = IT("BodyPosition", v) | |
1056 | BodPoss.P = 3000 | |
1057 | BodPoss.D = 1000 | |
1058 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1059 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1060 | v.Color = maincolor.Color | |
1061 | coroutine.resume(coroutine.create(function() | |
1062 | for i = 0, 49 do | |
1063 | swait(1) | |
1064 | v.Transparency = v.Transparency + 0.08 | |
1065 | end | |
1066 | wait(0.5) | |
1067 | PartEmmit1.Enabled = false | |
1068 | wait(3) | |
1069 | v:Destroy() | |
1070 | dude:Destroy() | |
1071 | end)) | |
1072 | end)) | |
1073 | end | |
1074 | end | |
1075 | end)) | |
1076 | end) | |
1077 | ds() | |
1078 | end | |
1079 | end | |
1080 | ||
1081 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1082 | if SinglePlayer then | |
1083 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1084 | end | |
1085 | local List = {} | |
1086 | for i, v in pairs(workspace:GetChildren()) do | |
1087 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1088 | table.insert(List, v) | |
1089 | end | |
1090 | end | |
1091 | return List | |
1092 | end | |
1093 | ||
1094 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1095 | local type = type | |
1096 | local rng = Instance.new("Part", char) | |
1097 | rng.Anchored = true | |
1098 | rng.BrickColor = color | |
1099 | rng.CanCollide = false | |
1100 | rng.FormFactor = 3 | |
1101 | rng.Name = "Ring" | |
1102 | rng.Material = "Neon" | |
1103 | rng.Size = Vector3.new(1, 1, 1) | |
1104 | rng.Transparency = 0 | |
1105 | rng.TopSurface = 0 | |
1106 | rng.BottomSurface = 0 | |
1107 | rng.CFrame = pos | |
1108 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1109 | local rngm = Instance.new("SpecialMesh", rng) | |
1110 | rngm.MeshType = MType | |
1111 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1112 | local scaler2 = 1 | |
1113 | local speeder = FastSpeed | |
1114 | if type == "Add" then | |
1115 | scaler2 = 1 * value | |
1116 | elseif type == "Divide" then | |
1117 | scaler2 = 1 / value | |
1118 | end | |
1119 | coroutine.resume(coroutine.create(function() | |
1120 | for i = 0, 10 / bonuspeed, 0.1 do | |
1121 | swait() | |
1122 | if type == "Add" then | |
1123 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1124 | elseif type == "Divide" then | |
1125 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1126 | end | |
1127 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1128 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1129 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1130 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1131 | end | |
1132 | rng:Destroy() | |
1133 | end)) | |
1134 | end | |
1135 | ||
1136 | function SoulSteal(dude) | |
1137 | if dude.Name ~= char then | |
1138 | local bgf = IT("BodyGyro", dude.Head) | |
1139 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1140 | local val = IT("BoolValue", dude) | |
1141 | val.Name = "IsHit" | |
1142 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1143 | local soulst = coroutine.wrap(function() | |
1144 | local soul = Instance.new("Part",dude) | |
1145 | soul.Size = Vector3.new(1,1,1) | |
1146 | soul.CanCollide = false | |
1147 | soul.Anchored = false | |
1148 | soul.Position = torso.Position | |
1149 | soul.Transparency = 1 | |
1150 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1151 | PartEmmit1.LightEmission = 1 | |
1152 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1153 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1154 | PartEmmit1.Rate = 250 | |
1155 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1156 | PartEmmit1.Size = NumberSequence.new({ | |
1157 | NumberSequenceKeypoint.new(0, 1, 0), | |
1158 | NumberSequenceKeypoint.new(1, 0, 0) | |
1159 | }) | |
1160 | PartEmmit1.Transparency = NumberSequence.new({ | |
1161 | NumberSequenceKeypoint.new(0, 0, 0), | |
1162 | NumberSequenceKeypoint.new(1, 1, 0) | |
1163 | }) | |
1164 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1165 | PartEmmit1.VelocitySpread = 30000 | |
1166 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1167 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1168 | local BodPoss = IT("BodyPosition", soul) | |
1169 | BodPoss.P = 3000 | |
1170 | BodPoss.D = 1000 | |
1171 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1172 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1173 | wait(1.6) | |
1174 | soul.Touched:connect(function(hit) | |
1175 | if hit.Parent == char then | |
1176 | soul:Destroy() | |
1177 | end | |
1178 | end) | |
1179 | wait(1.2) | |
1180 | while soul do | |
1181 | swait() | |
1182 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1183 | BodPoss.Position = tors.Position | |
1184 | end | |
1185 | end) | |
1186 | soulst() | |
1187 | end | |
1188 | end | |
1189 | function FaceMouse() | |
1190 | local Cam = workspace.CurrentCamera | |
1191 | return { | |
1192 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1193 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1194 | } | |
1195 | end | |
1196 | ------------------------------------------------------- | |
1197 | --End Effect Function-- | |
1198 | ------------------------------------------------------- | |
1199 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1200 | local NSound = nil | |
1201 | coroutine.resume(coroutine.create(function() | |
1202 | NSound = IT("Sound", PARENT) | |
1203 | NSound.Volume = VOLUME | |
1204 | NSound.Pitch = PITCH | |
1205 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1206 | swait() | |
1207 | NSound:play() | |
1208 | game:GetService("Debris"):AddItem(NSound, 10) | |
1209 | end)) | |
1210 | return NSound | |
1211 | end | |
1212 | function CameraEnshaking(Length, Intensity) | |
1213 | coroutine.resume(coroutine.create(function() | |
1214 | local intensity = 1 * Intensity | |
1215 | local rotM = 0.01 * Intensity | |
1216 | for i = 0, Length, 0.1 do | |
1217 | swait() | |
1218 | intensity = intensity - 0.05 * Intensity / Length | |
1219 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1220 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1221 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
1222 | end | |
1223 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1224 | end)) | |
1225 | end | |
1226 | ||
1227 | function getRegion(point,range,ignore) | |
1228 | return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100) | |
1229 | end | |
1230 | ||
1231 | function GetTorso(chars) | |
1232 | return chars:FindFirstChild'Torso' or chars:FindFirstChild'UpperTorso' | |
1233 | end | |
1234 | ||
1235 | function ClosestHumanoid(pos,range) | |
1236 | local mag,closest = math.huge; | |
1237 | for _,v in next, getRegion(pos,range or 10,{char}) do | |
1238 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid') | |
1239 | if((v.CFrame.p-pos).magnitude < mag and hum and closest ~= hum and hum.Health > 0)then | |
1240 | mag = (v.CFrame.p-pos).magnitude | |
1241 | closest = hum | |
1242 | end | |
1243 | end | |
1244 | return closest,(closest and GetTorso(closest.Parent) or nil) | |
1245 | end | |
1246 | ||
1247 | ------------------------------------------------------- | |
1248 | --End Important Functions-- | |
1249 | ------------------------------------------------------- | |
1250 | ||
1251 | ||
1252 | --[[ | |
1253 | Thanks for using Build-To-Lua by jarredbcv. | |
1254 | ]]-- | |
1255 | ||
1256 | New = function(Object, Parent, Name, Data) | |
1257 | local Object = Instance.new(Object) | |
1258 | for Index, Value in pairs(Data or {}) do | |
1259 | Object[Index] = Value | |
1260 | end | |
1261 | Object.Parent = Parent | |
1262 | Object.Name = Name | |
1263 | return Object | |
1264 | end | |
1265 | ||
1266 | POLE = New("Model",char,"POLE",{}) | |
1267 | Handle = New("Part",POLE,"Handle",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.600000024, 25.1999989, 0.600000024),CFrame = CFrame.new(-133.429993, 15.9508238, -115.659988, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1268 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.400000006, 2),CFrame = CFrame.new(-133.429993, 29.3511391, -110.859985, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1269 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(4.80000305, 13.4003153, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1270 | Part = New("Part",POLE,"Part",{Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.400000036, 2),CFrame = CFrame.new(-133.429993, 29.3511372, -108.459969, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,LeftSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,}) | |
1271 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(7.20001984, 13.4003134, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1272 | LightPart = New("Part",POLE,"LightPart",{BrickColor = BrickColor.new("Pastel brown"),Material = Enum.Material.Metal,Transparency = 0.5,Transparency = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.200000003, 1.79999995),CFrame = CFrame.new(-133.429993, 29.1511116, -110.859985, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.8, 0.6),}) | |
1273 | mot = New("Motor",LightPart,"mot",{Part0 = LightPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(4.80000305, 13.2002878, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1274 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.600000024, 2),CFrame = CFrame.new(-133.429993, 29.2511311, -113.259979, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1275 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(2.40000916, 13.3003073, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1276 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2.79999995, 0.400000036, 0.400000036),CFrame = CFrame.new(-133.429993, 28.5913277, -114.422417, 1.07468857e-13, -6.67446445e-14, -1, 0.499998897, 0.866023302, 1.0658141e-14, 0.866023302, -0.499998897, -1.3500312e-13),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1277 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.07468857e-13, 0.499998897, 0.866023302, -6.67446445e-14, 0.866023302, -0.499998897, -1, 1.0658141e-14, -1.3500312e-13),C1 = CFrame.new(1.23757172, 12.6405039, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1278 | LightPart = New("Part",POLE,"LightPart",{BrickColor = BrickColor.new("Pastel brown"),Material = Enum.Material.Metal,Transparency = 0.5,Transparency = 0.5,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.200000003, 1.79999995),CFrame = CFrame.new(-133.429993, 29.1511097, -120.459991, 8.74227766e-08, 0, 1, 0, 1, 0, -1, 0, 8.74227766e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.8, 0.6),}) | |
1279 | mot = New("Motor",LightPart,"mot",{Part0 = LightPart,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227766e-08, 0, -1, 0, 1, 0, 1, 0, 8.74227766e-08),C1 = CFrame.new(-4.80000305, 13.2002859, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1280 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(4.5999999, 0.400000006, 2),CFrame = CFrame.new(-133.429993, 29.3511353, -120.459984, 8.74227197e-08, -3.55271368e-15, 1, 0, 0.999998808, -3.55271368e-15, -0.999998808, 0, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1281 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227197e-08, 0, -0.999998808, -3.55271368e-15, 0.999998808, 0, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-4.79999542, 13.4003115, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1282 | Part = New("Part",POLE,"Part",{Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.400000036, 2),CFrame = CFrame.new(-133.429993, 29.3511333, -122.859985, 8.74227197e-08, -3.55271368e-15, 1, 0, 0.999998808, -3.55271368e-15, -0.999998808, 0, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,LeftSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,}) | |
1283 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227197e-08, 0, -0.999998808, -3.55271368e-15, 0.999998808, 0, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-7.19999695, 13.4003096, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1284 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(2.79999995, 0.400000036, 0.400000036),CFrame = CFrame.new(-133.429993, 28.5913258, -116.89756, 7.57102967e-08, -4.37113634e-08, 1, 0.499999404, 0.866024375, -3.55271368e-15, -0.866024375, 0.499999404, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1285 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 7.57102967e-08, 0.499999404, -0.866024375, -4.37113634e-08, 0.866024375, 0.499999404, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-1.23757172, 12.640502, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1286 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000048, 0.600000024, 2),CFrame = CFrame.new(-133.429993, 29.2511272, -118.05999, 8.74227197e-08, -3.55271368e-15, 1, 0, 0.999998808, -3.55271368e-15, -0.999998808, 0, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),}) | |
1287 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 8.74227197e-08, 0, -0.999998808, -3.55271368e-15, 0.999998808, 0, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-2.40000153, 13.3003035, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1288 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(3.19999981, 0.200000003, 0.200000003),CFrame = CFrame.new(-133.429993, 27.7216053, -116.711098, 5.61942315e-08, -6.6969676e-08, 1, 0.766043305, 0.642786801, -3.55271368e-15, -0.642786801, 0.766043305, 8.74227482e-08),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1289 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 5.61942315e-08, 0.766043305, -0.642786801, -6.6969676e-08, 0.642786801, 0.766043305, 1, -3.55271368e-15, 8.74227482e-08),C1 = CFrame.new(-1.05110931, 11.7707815, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1290 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Mid gray"),Material = Enum.Material.Metal,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(3.19999981, 0.200000003, 0.200000003),CFrame = CFrame.new(-133.429993, 27.7216072, -114.608871, 7.81597009e-14, -9.9475983e-14, -1, 0.766042829, 0.642786205, 1.0658141e-14, 0.642786205, -0.766042829, -1.3500312e-13),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.803922, 0.803922, 0.803922),}) | |
1291 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 7.81597009e-14, 0.766042829, 0.642786205, -9.9475983e-14, 0.642786205, -0.766042829, -1, 1.0658141e-14, -1.3500312e-13),C1 = CFrame.new(1.05111694, 11.7707834, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1292 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Cyan"),Material = Enum.Material.Concrete,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 3, 1),CFrame = CFrame.new(-133.429993, 1.85098195, -115.659988, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0156863, 0.686275, 0.92549),}) | |
1293 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0, -14.0998421, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1294 | Part = New("Part",POLE,"Part",{BrickColor = BrickColor.new("Navy blue"),Material = Enum.Material.Concrete,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1, 0.200000003, 1),CFrame = CFrame.new(-133.429993, 3.45098758, -115.659988, 0, 0, -1, 0, 1, 0, 1, 0, 0),BottomSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0, 0.12549, 0.376471),}) | |
1295 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0, -12.499836, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
1296 | ||
1297 | ||
1298 | ||
1299 | local NewInstance = function(instance,parent,properties) | |
1300 | local inst = Instance.new(instance,parent) | |
1301 | if(properties)then | |
1302 | for i,v in next, properties do | |
1303 | pcall(function() inst[i] = v end) | |
1304 | end | |
1305 | end | |
1306 | return inst; | |
1307 | end | |
1308 | ||
1309 | for _,v in next, POLE:children() do | |
1310 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
1311 | v.CanCollide = false | |
1312 | end | |
1313 | ||
1314 | ||
1315 | local HW = NewInstance('Weld',char,{Part0 = ra, Part1 = Handle, C0 = CF(0, -1, 0) * angles(Rad(-90), Rad(0), Rad(0))}) | |
1316 | ||
1317 | ||
1318 | ||
1319 | ------------------------------------------------------- | |
1320 | --Start Customization-- | |
1321 | ------------------------------------------------------- | |
1322 | local Player_Size = 1 | |
1323 | if Player_Size ~= 1 then | |
1324 | root.Size = root.Size * Player_Size | |
1325 | tors.Size = tors.Size * Player_Size | |
1326 | hed.Size = hed.Size * Player_Size | |
1327 | ra.Size = ra.Size * Player_Size | |
1328 | la.Size = la.Size * Player_Size | |
1329 | rl.Size = rl.Size * Player_Size | |
1330 | ll.Size = ll.Size * Player_Size | |
1331 | ---------------------------------------------------------------------------------- | |
1332 | rootj.Parent = root | |
1333 | neck.Parent = tors | |
1334 | RW.Parent = tors | |
1335 | LW.Parent = tors | |
1336 | RH.Parent = tors | |
1337 | LH.Parent = tors | |
1338 | ---------------------------------------------------------------------------------- | |
1339 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1340 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1341 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1342 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1343 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1344 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1345 | ---------------------------------------------------------------------------------- | |
1346 | RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1347 | LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1348 | RH.C1 = CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1349 | LH.C1 = CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0)) | |
1350 | --hat.Parent = Character | |
1351 | end | |
1352 | ---------------------------------------------------------------------------------- | |
1353 | local SONG = 996342575 | |
1354 | local SONG2 = 0 | |
1355 | local Music = Instance.new("Sound",tors) | |
1356 | Music.Volume = 2.5 | |
1357 | Music.Looped = true | |
1358 | Music.Pitch = 1 --Pitcher | |
1359 | ---------------------------------------------------------------------------------- | |
1360 | local equipped = false | |
1361 | local idle = 0 | |
1362 | local change = 1 | |
1363 | local val = 0 | |
1364 | local toim = 0 | |
1365 | local idleanim = 0.4 | |
1366 | local sine = 0 | |
1367 | local Sit = 1 | |
1368 | local VALUE1 = false | |
1369 | local VALUE2 = false | |
1370 | ---------------------------------------------------------------------------------- | |
1371 | hum.WalkSpeed = 14 | |
1372 | hum.JumpPower = 157 | |
1373 | hum.Animator.Parent = nil | |
1374 | ------------------------------------------------------- | |
1375 | --End Customization-- | |
1376 | ------------------------------------------------------- | |
1377 | ||
1378 | ||
1379 | ------------------------------------------------------- | |
1380 | --Start Attacks N Stuff-- | |
1381 | ------------------------------------------------------- | |
1382 | function FuckingDyingInside() | |
1383 | attack = true | |
1384 | Cso("207358216", tors, 10, 1) | |
1385 | for i = 1, 100 do | |
1386 | swait() | |
1387 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1388 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1389 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1390 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1391 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1392 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(math.random(-360,360)), Rad(math.random(-360,360)), Rad(math.random(-360,360))), 1) | |
1393 | end | |
1394 | attack = false | |
1395 | end | |
1396 | function SmackaCracka() | |
1397 | attack = true | |
1398 | local THOT = Cso("1028044973", char, 10, 1) | |
1399 | for i = 0, 10, 0.1 do | |
1400 | swait() | |
1401 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2.6 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 1) | |
1402 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1403 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 1) | |
1404 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 1) | |
1405 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(198), Rad(-.6), Rad(25)), 1) | |
1406 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-45)), 1) | |
1407 | end | |
1408 | local THOT = Cso("1041422498", char, 10, 1) | |
1409 | coroutine.resume(coroutine.create(function() | |
1410 | MagniDamage(root, 65, 65, 90, 0, "Normal") | |
1411 | Magic(1, "Add", ra.CFrame, Vector3.new(5, 5, 5), 1, BrickC("Really red"), "Sphere") | |
1412 | Magic(2, "Add", ra.CFrame, Vector3.new(5, 5, 5), 2, BrickColor.new("Br. yellowish orange"), "Sphere") | |
1413 | end)) | |
1414 | for i = 0, 8, 0.1 do | |
1415 | swait() | |
1416 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2.6 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 1) | |
1417 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1418 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1419 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1420 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(34), Rad(-.6), Rad(25)), 1) | |
1421 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-45)), 1) | |
1422 | end | |
1423 | Cso("1093102664", tors, 10, 1) | |
1424 | for i = 0, 6, 0.1 do | |
1425 | swait() | |
1426 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2.6 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(45), Rad(0), Rad(0)), 1) | |
1427 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1428 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1429 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 1) | |
1430 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(34), Rad(-.6), Rad(25)), 1) | |
1431 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-30), Rad(-.6), Rad(-45)), 1) | |
1432 | end | |
1433 | attack = false | |
1434 | end | |
1435 | function OWOIMMASPINNING() | |
1436 | attack = true | |
1437 | local BOOST = Cso("891338458", tors, 10, 1) | |
1438 | hum.WalkSpeed = 56 | |
1439 | local NoConstant = false | |
1440 | local Hitter = Handle.Touched:connect(function(hit) | |
1441 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1442 | --if NoConstant == false then | |
1443 | --NoConstant = true | |
1444 | Damage(hit, hit, 7, 25, 0, "Normal", root, 0.1, "http://www.roblox.com/asset/?id=527749592", 1.2) | |
1445 | --end | |
1446 | end | |
1447 | end) | |
1448 | repeat | |
1449 | for i = 0, 1, 0.1 do | |
1450 | swait() | |
1451 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(255.45 * i)), 1) | |
1452 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1453 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1454 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1455 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1456 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-90)), 1) | |
1457 | end | |
1458 | until BOOST.Playing == false | |
1459 | attack = false | |
1460 | Hitter:Disconnect() | |
1461 | hum.WalkSpeed = 14 | |
1462 | end | |
1463 | ||
1464 | function SLAPPITY() | |
1465 | attack = true | |
1466 | local BOOST = Cso("106626233", tors, 10, 1) | |
1467 | hum.WalkSpeed = 56 | |
1468 | local NoConstant = false | |
1469 | local Hitter = Handle.Touched:connect(function(hit) | |
1470 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1471 | --if NoConstant == false then | |
1472 | --NoConstant = true | |
1473 | Damage(hit, hit, 7, 25, 0, "Normal", root, 0.1, "http://www.roblox.com/asset/?id=12222058", 1.2) | |
1474 | Cso("12222058", tors, 10, 1) | |
1475 | --end | |
1476 | end | |
1477 | end) | |
1478 | repeat | |
1479 | for i = 0, 1, 0.1 do | |
1480 | swait() | |
1481 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(255.45 * i)), 1) | |
1482 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1483 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1484 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1485 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1486 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-90)), 1) | |
1487 | end | |
1488 | until BOOST.Playing == false | |
1489 | attack = false | |
1490 | Hitter:Disconnect() | |
1491 | hum.WalkSpeed = 14 | |
1492 | end | |
1493 | ||
1494 | function I_REALLY_CANT_STOP() | |
1495 | attack = true | |
1496 | hum.WalkSpeed = 0 | |
1497 | VALUE2 = true | |
1498 | SONG = 205620538 | |
1499 | root.Anchored = true | |
1500 | repeat | |
1501 | swait() | |
1502 | for i = 0, 1, 0.1 do | |
1503 | swait() | |
1504 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
1505 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0 + 1 * math.cos(sine / 34))), 0.1) | |
1506 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -2.4 + 0.05 * math.cos(sine / 28)) * angles(math.rad(90 - 1 * math.cos(sine / 34)), math.rad(0), math.rad(0)), 0.1) | |
1507 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(-60)), 0.15) | |
1508 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(180), math.rad(0), math.rad(32)), 0.15) | |
1509 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(180), math.rad(0), math.rad(-65)), 0.15) | |
1510 | end | |
1511 | until VALUE2 == false | |
1512 | attack = false | |
1513 | hum.WalkSpeed = 14 | |
1514 | SONG = 996342575 | |
1515 | root.Anchored = false | |
1516 | end | |
1517 | ||
1518 | function RAEP_qmq() | |
1519 | --Credit To Nebula_Zorua | |
1520 | local humanoid, torso = ClosestHumanoid(tors.CFrame.p,5) | |
1521 | ||
1522 | if(torso)then | |
1523 | attack = true | |
1524 | local Bingo = Cso("429678771", hed, 6, 1) | |
1525 | Bingo.TimePosition = 10.6 | |
1526 | local who = torso.Parent | |
1527 | hum.WalkSpeed = 0 | |
1528 | hum.JumpPower = 0 | |
1529 | humanoid.WalkSpeed = 0 | |
1530 | humanoid.JumpPower = 0 | |
1531 | who.Parent = char | |
1532 | pcall(function() who.HumanoidRootPart:destroy() end) | |
1533 | local gWeld = NewInstance("Weld",char,{Part0 = root, Part1 = torso, C0 = CF(0,0,-1.35)}) | |
1534 | for i = 0, 17, 0.1 do | |
1535 | swait() | |
1536 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-35)), 1) | |
1537 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(20), Rad(35)), 1) | |
1538 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1539 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1540 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1541 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(-.6), Rad(-15)), 1) | |
1542 | end | |
1543 | Bingo.Playing = false | |
1544 | Cso("144508058", tors, 10, 0.8) | |
1545 | for i = 0, 3, 0.1 do | |
1546 | swait() | |
1547 | gWeld.C0 = CF(0, 0, -5) | |
1548 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 2* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-50)), 1) | |
1549 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(50)), 1) | |
1550 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1551 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1552 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1553 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-15)), 1) | |
1554 | end | |
1555 | Cso("702631545", who.Head, 7, 1) | |
1556 | Cso("959679286", who.Head, 7, 1) | |
1557 | for i = 0, 8, 0.1 do | |
1558 | swait() | |
1559 | gWeld.C0 = CF(0, 4, -5) | |
1560 | HW.C0 = clerp(HW.C0, CF(0, -1, 0) * angles(Rad(0), Rad(0), Rad(40)), 1) | |
1561 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 2* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(90)), 1) | |
1562 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(10), Rad(-90)), 1) | |
1563 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1564 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1565 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(90)), 1) | |
1566 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-15)), 1) | |
1567 | end | |
1568 | HW.C0 = clerp(HW.C0, CF(0, -1, 0) * angles(Rad(-90), Rad(0), Rad(0)), 1) | |
1569 | torso:BreakJoints() | |
1570 | attack = false | |
1571 | hum.WalkSpeed = 14 | |
1572 | hum.JumpPower = 157 | |
1573 | end | |
1574 | end | |
1575 | ||
1576 | function My_Favorite_Show_As_A_Kid() | |
1577 | attack = true | |
1578 | hum.WalkSpeed = 0 | |
1579 | Cso("1093102664", hed, 10, 1) | |
1580 | for i = 0, 6, 0.1 do | |
1581 | swait() | |
1582 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 1) | |
1583 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(-20)), 1) | |
1584 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1585 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1586 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1) | |
1587 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1588 | end | |
1589 | Cso("1542642349", hed, 10, 1) | |
1590 | for i = 0, 6, 0.1 do | |
1591 | swait() | |
1592 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 1) | |
1593 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, -5, 0 + ((-1 * Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(180)), 1) | |
1594 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1595 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1596 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(175), Rad(-.6), Rad(15)), 0.1) | |
1597 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1598 | end | |
1599 | Cso("144508058", hed, 10, 0.8) | |
1600 | for i = 0, 6, 0.1 do | |
1601 | swait() | |
1602 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 1) | |
1603 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1604 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1605 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1606 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-90), Rad(-.6), Rad(15)), 1) | |
1607 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1608 | end | |
1609 | Cso("144508058", hed, 10, 0.8) | |
1610 | Cso("702631545", tors, 7, 1) | |
1611 | HW.Part0 = tors | |
1612 | HW.C0 = clerp(HW.C0, CF(0, -.4, 0) * angles(Rad(-90), Rad(0), Rad(0)), 1) | |
1613 | for i = 0, 6, 0.1 do | |
1614 | swait() | |
1615 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 1) | |
1616 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1617 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1618 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1619 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-.6), Rad(-15)), 1) | |
1620 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1621 | end | |
1622 | Cso("1093102664", hed, 10, 1) | |
1623 | for i = 0, 6, 0.1 do | |
1624 | swait() | |
1625 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 1) | |
1626 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1627 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1628 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 1) | |
1629 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-.6), Rad(-15)), 1) | |
1630 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 1) | |
1631 | end | |
1632 | Cso("1025464252", hed, 10, 1) | |
1633 | for i = 0, 16, 0.1 do | |
1634 | swait() | |
1635 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(-10), Rad(0), Rad(0)), 1) | |
1636 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1 * Player_Size) - 1)) * angles(Rad(-25 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 1) | |
1637 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-10)), 1) | |
1638 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(10)), 1) | |
1639 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(15)), 1) | |
1640 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-45), Rad(-.6), Rad(-13)), 1) | |
1641 | end | |
1642 | attack = false | |
1643 | HW.Part0 = ra | |
1644 | HW.C0 = clerp(HW.C0, CF(0, -1, 0) * angles(Rad(-90), Rad(0), Rad(0)), 1) | |
1645 | hum.WalkSpeed = 14 | |
1646 | end | |
1647 | ------------------------------------------------------- | |
1648 | --End Attacks N Stuff-- | |
1649 | ------------------------------------------------------- | |
1650 | ||
1651 | Mouse.Button1Down:connect(function(key) | |
1652 | if attack == false then | |
1653 | attack = true | |
1654 | Speed = 3.01 | |
1655 | if combo == 1 and wait2 == false then | |
1656 | wait2 = true | |
1657 | for i = 0, 1.6, 0.1 do | |
1658 | swait() | |
1659 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-45)), 0.2) | |
1660 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 5 * Sin(sine / 20)), Rad(0), Rad(45)), 0.2) | |
1661 | RH.C0 = clerp(RH.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-45), Rad(0)) * angles(Rad(0), Rad(0), Rad(15)), 0.2) | |
1662 | LH.C0 = clerp(LH.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(10), Rad(0)) * angles(Rad(0), Rad(0), Rad(-15)), 0.2) | |
1663 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(180), Rad(0 + 5 * Sin(sine / 20)), Rad(25 + 5 * Sin(sine / 20))), 0.2) | |
1664 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(0 - 5 * Sin(sine / 20)), Rad(-10 - 5 * Sin(sine / 20))), 0.2) | |
1665 | end | |
1666 | Cso("138097048", ra, 1.2, 0.8) | |
1667 | HitboxFunction(ra.CFrame, 0.01, 1, 1, 1, 7, 6, 9, 3, "Normal") | |
1668 | for i = 0, 1.2, 0.1 do | |
1669 | swait() | |
1670 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(45)), 0.3) | |
1671 | neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(20 - 5 * Sin(sine / 20)), Rad(0), Rad(-45)), 0.3) | |
1672 | rl.Weld.C0 = clerp(rl.Weld.C0, CF(0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-10), Rad(0)) * angles(Rad(0), Rad(0), Rad(15)), 0.3) | |
1673 | ll.Weld.C0 = clerp(ll.Weld.C0, CF(-0.5* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-20), Rad(45), Rad(0)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3) | |
1674 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(85), Rad(0 + 5 * Sin(sine / 20)), Rad(45 + 5 * Sin(sine / 20))), 0.3) | |
1675 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.1 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-45), Rad(0 - 5 * Sin(sine / 20)), Rad(-25 - 5 * Sin(sine / 20))), 0.3) | |
1676 | end | |
1677 | combo = 1 | |
1678 | end | |
1679 | Speed = 56 | |
1680 | wait2 = false | |
1681 | attack = false | |
1682 | end | |
1683 | end) | |
1684 | ||
1685 | mouse.KeyDown:connect(function(key) | |
1686 | if (VALUE1 == false and attack == false) or VALUE2 == true then | |
1687 | if key == "q" then | |
1688 | if VALUE2 == false then | |
1689 | I_REALLY_CANT_STOP() | |
1690 | elseif VALUE2 == true then | |
1691 | VALUE2 = false | |
1692 | end | |
1693 | end | |
1694 | end | |
1695 | if attack == false then | |
1696 | if key == 't' then | |
1697 | FuckingDyingInside() | |
1698 | elseif key == 'z' then | |
1699 | SmackaCracka() | |
1700 | elseif key == 'x' then | |
1701 | OWOIMMASPINNING() | |
1702 | elseif key == 'c' then | |
1703 | RAEP_qmq() | |
1704 | elseif key == 'f' then | |
1705 | SLAPPITY() | |
1706 | elseif key == 'v' then | |
1707 | local B = Cso("847665457", hed, 7, 1) | |
1708 | B.TimePosition = 13.2 | |
1709 | CameraEnshaking(5, 5) | |
1710 | local ORIGINPOS = root.Position | |
1711 | root.CFrame = CFrame.new(Vector3.new(mouse.Hit.p.X, root.Position.Y, mouse.Hit.p.Z), ORIGINPOS) | |
1712 | wait(1.3) | |
1713 | B.Playing = false | |
1714 | elseif key == 'b' then | |
1715 | My_Favorite_Show_As_A_Kid() | |
1716 | end | |
1717 | end | |
1718 | end) | |
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | ------------------------------------------------------- | |
1727 | --Start Animations-- | |
1728 | ------------------------------------------------------- | |
1729 | ||
1730 | while true do | |
1731 | swait() | |
1732 | sine = sine + change | |
1733 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1734 | local velderp = root.Velocity.y | |
1735 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
1736 | if equipped == true or equipped == false then | |
1737 | if attack == false then | |
1738 | idle = idle + 1 | |
1739 | else | |
1740 | idle = 0 | |
1741 | end | |
1742 | if 1 < root.Velocity.y and hitfloor == nil then | |
1743 | Anim = "Jump" | |
1744 | if attack == false then | |
1745 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
1746 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-10), Rad(0), Rad(0)), 0.3) | |
1747 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(15)),0.3) | |
1748 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-15)),0.3) | |
1749 | LH.C0=clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
1750 | RH.C0=clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
1751 | end | |
1752 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
1753 | Anim = "Fall" | |
1754 | if attack == false then | |
1755 | rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3) | |
1756 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(10), Rad(0), Rad(0)), 0.3) | |
1757 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(90)),0.3) | |
1758 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,Rad(-90)),0.3) | |
1759 | LH.C0 = clerp(LH.C0, CF(-1,-.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15) | |
1760 | RH.C0 = clerp(RH.C0, CF(1,-1-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3) | |
1761 | end | |
1762 | elseif torvel < 1 and hitfloor ~= nil then | |
1763 | Anim = "Idle" | |
1764 | change = 1 | |
1765 | if attack == false then | |
1766 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15) | |
1767 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3) | |
1768 | RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15) | |
1769 | LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15) | |
1770 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
1771 | LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-5 + 2.5 * Sin(sine / 20))), 0.1) | |
1772 | end | |
1773 | elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then | |
1774 | Anim = "Walk" | |
1775 | change = 1 | |
1776 | if attack == false then | |
1777 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.25 + 0.3 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(-10 - 3 * Cos(sine / 7))), 0.1) | |
1778 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(10 - 2 * Cos(sine / 7)) - hed.RotVelocity.Y / 15), 0.3) | |
1779 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1780 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 10 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
1781 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(186), Rad(-.6), Rad(15)), 0.1) | |
1782 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-37) * Cos(sine / 7) , Rad(8 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1) | |
1783 | end | |
1784 | end | |
1785 | end | |
1786 | Music.SoundId = "rbxassetid://"..SONG | |
1787 | Music.Looped = true | |
1788 | Music.Pitch = 1 | |
1789 | Music.Volume = 5 | |
1790 | Music.Parent = tors | |
1791 | Music:Resume() | |
1792 | if 0 < #Effects then | |
1793 | for e = 1, #Effects do | |
1794 | if Effects[e] ~= nil then | |
1795 | local Thing = Effects[e] | |
1796 | if Thing ~= nil then | |
1797 | local Part = Thing[1] | |
1798 | local Mode = Thing[2] | |
1799 | local Delay = Thing[3] | |
1800 | local IncX = Thing[4] | |
1801 | local IncY = Thing[5] | |
1802 | local IncZ = Thing[6] | |
1803 | if 1 >= Thing[1].Transparency then | |
1804 | if Thing[2] == "Block1" then | |
1805 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1806 | local Mesh = Thing[1].Mesh | |
1807 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1808 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1809 | elseif Thing[2] == "Block2" then | |
1810 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
1811 | local Mesh = Thing[7] | |
1812 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1813 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1814 | elseif Thing[2] == "Block3" then | |
1815 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
1816 | local Mesh = Thing[7] | |
1817 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1818 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1819 | elseif Thing[2] == "Cylinder" then | |
1820 | local Mesh = Thing[1].Mesh | |
1821 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1822 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1823 | elseif Thing[2] == "Blood" then | |
1824 | local Mesh = Thing[7] | |
1825 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
1826 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1827 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1828 | elseif Thing[2] == "Elec" then | |
1829 | local Mesh = Thing[1].Mesh | |
1830 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1831 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1832 | elseif Thing[2] == "Disappear" then | |
1833 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1834 | elseif Thing[2] == "Shatter" then | |
1835 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1836 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1837 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1838 | Thing[6] = Thing[6] + Thing[5] | |
1839 | end | |
1840 | else | |
1841 | Part.Parent = nil | |
1842 | table.remove(Effects, e) | |
1843 | end | |
1844 | end | |
1845 | end | |
1846 | end | |
1847 | end | |
1848 | end |