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