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