SHOW:
|
|
- or go back to the newest paste.
1 | --------------- | |
2 | --(Kris edit) Jevil v2-- | |
3 | ---------------------------------------------------------------- | |
4 | print([[ | |
5 | --made by Makhail07 | |
6 | --FE code by Mokiros | |
7 | --Edited by XKxngSupremeX -- | |
8 | --YT: https://www.youtube.com/channel/UC38cAdtSgPWJVEHV8zgZi6A-- | |
9 | --Discord: ozzak1003#3275 | |
10 | --Discord: Clon#2166 | |
11 | -------------------------------- | |
12 | hello good sir | |
13 | Don't leak pls | |
14 | Enjoy ;) | |
15 | -------------------------------- | |
16 | ]]) | |
17 | ||
18 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
19 | local Player,game,owner = owner,game | |
20 | local RealPlayer = Player | |
21 | do | |
22 | local rp = RealPlayer | |
23 | script.Parent = rp.Character | |
24 | ||
25 | --RemoteEvent for communicating | |
26 | local Event = Instance.new("RemoteEvent") | |
27 | Event.Name = "UserInput_Event" | |
28 | ||
29 | --Fake event to make stuff like Mouse.KeyDown work | |
30 | local function fakeEvent() | |
31 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
32 | t.connect = t.Connect | |
33 | return t | |
34 | end | |
35 | ||
36 | --Creating fake input objects with fake variables | |
37 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
38 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
39 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
40 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
41 | end} | |
42 | --Merged 2 functions into one by checking amount of arguments | |
43 | CAS.UnbindAction = CAS.BindAction | |
44 | ||
45 | --This function will trigger the events that have been :Connect()'ed | |
46 | local function te(self,ev,...) | |
47 | local t = m[ev] | |
48 | if t and t._fakeEvent then | |
49 | for _,f in pairs(t.Functions) do | |
50 | f(...) | |
51 | end | |
52 | end | |
53 | end | |
54 | m.TrigEvent = te | |
55 | UIS.TrigEvent = te | |
56 | ||
57 | Event.OnServerEvent:Connect(function(plr,io) | |
58 | if plr~=rp then return end | |
59 | m.Target = io.Target | |
60 | m.Hit = io.Hit | |
61 | if not io.isMouse then | |
62 | local b = io.UserInputState == Enum.UserInputState.Begin | |
63 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
64 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
65 | end | |
66 | for _,t in pairs(CAS.Actions) do | |
67 | for _,k in pairs(t.Keys) do | |
68 | if k==io.KeyCode then | |
69 | t.Function(t.Name,io.UserInputState,io) | |
70 | end | |
71 | end | |
72 | end | |
73 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
74 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
75 | end | |
76 | end) | |
77 | Event.Parent = NLS([==[ | |
78 | - | local Player = game:GetService("Players").CerealKiller223 |
78 | + | local Player = game:GetService("Players").scripttester0617 |
79 | local Event = script:WaitForChild("UserInput_Event") | |
80 | ||
81 | local Mouse = Player:GetMouse() | |
82 | local UIS = game:GetService("UserInputService") | |
83 | local input = function(io,a) | |
84 | if a then return end | |
85 | --Since InputObject is a client-side instance, we create and pass table instead | |
86 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
87 | end | |
88 | UIS.InputBegan:Connect(input) | |
89 | UIS.InputEnded:Connect(input) | |
90 | ||
91 | local h,t | |
92 | --Give the server mouse data 30 times every second, but only if the values changed | |
93 | --If player is not moving their mouse, client won't fire events | |
94 | while wait(1/30) do | |
95 | if h~=Mouse.Hit or t~=Mouse.Target then | |
96 | h,t=Mouse.Hit,Mouse.Target | |
97 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
98 | end | |
99 | end]==],Player.Character) | |
100 | ||
101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
102 | --Real game object | |
103 | local _rg = game | |
104 | ||
105 | --Metatable for fake service | |
106 | local fsmt = { | |
107 | __index = function(self,k) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then return s[k] end | |
110 | end, | |
111 | __newindex = function(self,k,v) | |
112 | local s = rawget(self,"_RealService") | |
113 | if s then s[k]=v end | |
114 | end, | |
115 | __call = function(self,...) | |
116 | local s = rawget(self,"_RealService") | |
117 | if s then return s(...) end | |
118 | end | |
119 | } | |
120 | local function FakeService(t,RealService) | |
121 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
122 | return setmetatable(t,fsmt) | |
123 | end | |
124 | ||
125 | --Fake game object | |
126 | local g = { | |
127 | GetService = function(self,s) | |
128 | return self[s] | |
129 | end, | |
130 | Players = FakeService({ | |
131 | - | CerealKiller223 = FakeService({GetMouse=function(self)return m end},Player) |
131 | + | scripttester0617 = FakeService({GetMouse=function(self)return m end},Player) |
132 | },"Players"), | |
133 | UserInputService = FakeService(UIS,"UserInputService"), | |
134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
135 | } | |
136 | - | rawset(g.Players,"CerealKiller223",g.Players.CerealKiller223) |
136 | + | rawset(g.Players,"scripttester0617",g.Players.scripttester0617) |
137 | g.service = g.GetService | |
138 | ||
139 | g.RunService = FakeService({ | |
140 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
141 | BindToRenderStep = function(self,name,_,fun) | |
142 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
143 | end, | |
144 | UnbindFromRenderStep = function(self,name) | |
145 | self._btrs[name]:Disconnect() | |
146 | end, | |
147 | },"RunService") | |
148 | ||
149 | setmetatable(g,{ | |
150 | __index=function(self,s) | |
151 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
152 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
153 | end, | |
154 | __newindex = fsmt.__newindex, | |
155 | __call = fsmt.__call | |
156 | }) | |
157 | --Changing owner to fake player object to support owner:GetMouse() | |
158 | - | game,owner = g,g.Players.CerealKiller223 |
158 | + | game,owner = g,g.Players.scripttester0617 |
159 | end | |
160 | ||
161 | Player = owner | |
162 | PlayerGui = Player.PlayerGui | |
163 | Cam = workspace.CurrentCamera | |
164 | Backpack = Player.Backpack | |
165 | Character = Player.Character | |
166 | Humanoid = Character.Humanoid | |
167 | Mouse = Player:GetMouse() | |
168 | RootPart = Character["HumanoidRootPart"] | |
169 | Torso = Character["Torso"] | |
170 | Head = Character["Head"] | |
171 | RightArm = Character["Right Arm"] | |
172 | LeftArm = Character["Left Arm"] | |
173 | RightLeg = Character["Right Leg"] | |
174 | LeftLeg = Character["Left Leg"] | |
175 | RootJoint = RootPart["RootJoint"] | |
176 | Neck = Torso["Neck"] | |
177 | RightShoulder = Torso["Right Shoulder"] | |
178 | LeftShoulder = Torso["Left Shoulder"] | |
179 | RightHip = Torso["Right Hip"] | |
180 | LeftHip = Torso["Left Hip"] | |
181 | ||
182 | Character = Player.Character | |
183 | Humanoid = Character.Humanoid | |
184 | --------- | |
185 | - | plr = game.Players.CerealKiller223 |
185 | + | plr = game.Players.scripttester0617 |
186 | chara = plr.Character | |
187 | mouse = plr:GetMouse() | |
188 | Create = Instance.new | |
189 | Huge = math.huge | |
190 | ||
191 | ||
192 | local shadowhead = Create("Part",chara.Head) | |
193 | shadowhead.BrickColor = BrickColor.new("Really black") | |
194 | shadowhead.Size = Vector3.new(1.2, 0.6, 1) | |
195 | shadowhead.CanCollide = false | |
196 | local shadowheadmesh = Create("SpecialMesh",shadowhead) | |
197 | shadowheadmesh.MeshType = "Head" | |
198 | shadowheadmesh.Scale = Vector3.new(1.26, 1.5, 1.26) | |
199 | local weld2 = Create("Weld",shadowhead) | |
200 | weld2.Part0 = shadowhead | |
201 | weld2.Part1 = chara.Head | |
202 | weld2.C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
203 | ||
204 | - | Player = game:GetService("Players").CerealKiller223 |
204 | + | Player = game:GetService("Players").scripttester0617 |
205 | PlayerGui = Player.PlayerGui | |
206 | Cam = workspace.CurrentCamera | |
207 | Backpack = Player.Backpack | |
208 | Character = Player.Character | |
209 | char = Player.Character | |
210 | Humanoid = Character.Humanoid | |
211 | Mouse = Player:GetMouse() | |
212 | RootPart = Character["HumanoidRootPart"] | |
213 | Torso = Character["Torso"] | |
214 | Head = Character["Head"] | |
215 | RightArm = Character["Right Arm"] | |
216 | LeftArm = Character["Left Arm"] | |
217 | RightLeg = Character["Right Leg"] | |
218 | LeftLeg = Character["Left Leg"] | |
219 | RootJoint = RootPart["RootJoint"] | |
220 | Neck = Torso["Neck"] | |
221 | RightShoulder = Torso["Right Shoulder"] | |
222 | LeftShoulder = Torso["Left Shoulder"] | |
223 | RightHip = Torso["Right Hip"] | |
224 | LeftHip = Torso["Left Hip"] | |
225 | ||
226 | local Orin = "http://www.roblox.com/asset/?id=7074786" | |
227 | Head.face.Texture = Orin | |
228 | function weld(a, b, acf) | |
229 | local w = Instance.new("Weld", a) | |
230 | w.Part0 = a | |
231 | w.Part1 = b | |
232 | w.C0 = acf | |
233 | end | |
234 | -------------------------------- | |
235 | char.Head.face.Texture = "rbxassetid://241553801" | |
236 | -------------------------------- | |
237 | ||
238 | ------------------------------------------------------- | |
239 | ||
240 | local FavIDs = { | |
241 | 340106355, --Nefl Crystals | |
242 | 927529620, --Dimension | |
243 | 876981900, --Fantasy | |
244 | 398987889, --Ordinary Days | |
245 | 1117396305, --Oh wait, it's you. | |
246 | 885996042, --Action Winter Journey | |
247 | 919231299, --Sprawling Idiot Effigy | |
248 | 743466274, --Good Day Sunshine | |
249 | 727411183, --Knife Fight | |
250 | 1402748531, --The Earth Is Counting On You! | |
251 | 595230126 --Robot Language | |
252 | } | |
253 | ||
254 | ||
255 | ||
256 | --The reality of my life isn't real but a Universe -makhail07 | |
257 | wait(0.2) | |
258 | - | local plr = game:service'Players'.CerealKiller223 |
258 | + | local plr = game:service'Players'.scripttester0617 |
259 | print('Local User is '..plr.Name) | |
260 | print('SCRIPTNAME Loaded') | |
261 | print('SCRIPT DESCRIPTION') | |
262 | local char = plr.Character | |
263 | local hum = char.Humanoid | |
264 | local hed = char.Head | |
265 | local root = char.HumanoidRootPart | |
266 | local rootj = root.RootJoint | |
267 | local tors = char.Torso | |
268 | local ra = char["Right Arm"] | |
269 | local la = char["Left Arm"] | |
270 | local rl = char["Right Leg"] | |
271 | local ll = char["Left Leg"] | |
272 | local neck = tors["Neck"] | |
273 | local mouse = plr:GetMouse() | |
274 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
275 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
276 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
277 | local maincolor = BrickColor.new("Bright purple") | |
278 | ||
279 | ------------------------------------------------------- | |
280 | --Start Good Stuff-- | |
281 | ------------------------------------------------------- | |
282 | cam = game.Workspace.CurrentCamera | |
283 | CF = CFrame.new | |
284 | angles = CFrame.Angles | |
285 | attack = false | |
286 | Euler = CFrame.fromEulerAnglesXYZ | |
287 | Rad = math.rad | |
288 | IT = Instance.new | |
289 | BrickC = BrickColor.new | |
290 | Cos = math.cos | |
291 | Acos = math.acos | |
292 | Sin = math.sin | |
293 | Asin = math.asin | |
294 | Abs = math.abs | |
295 | Mrandom = math.random | |
296 | Floor = math.floor | |
297 | ------------------------------------------------------- | |
298 | --End Good Stuff-- | |
299 | ------------------------------------------------------- | |
300 | necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
301 | RSH, LSH = nil, nil | |
302 | RW = Instance.new("Weld") | |
303 | LW = Instance.new("Weld") | |
304 | RH = tors["Right Hip"] | |
305 | LH = tors["Left Hip"] | |
306 | RSH = tors["Right Shoulder"] | |
307 | LSH = tors["Left Shoulder"] | |
308 | RSH.Parent = nil | |
309 | LSH.Parent = nil | |
310 | RW.Name = "RW" | |
311 | RW.Part0 = tors | |
312 | RW.C0 = CF(1.5, 0.5, 0) | |
313 | RW.C1 = CF(0, 0.5, 0) | |
314 | RW.Part1 = ra | |
315 | RW.Parent = tors | |
316 | LW.Name = "LW" | |
317 | LW.Part0 = tors | |
318 | LW.C0 = CF(-1.5, 0.5, 0) | |
319 | LW.C1 = CF(0, 0.5, 0) | |
320 | LW.Part1 = la | |
321 | LW.Parent = tors | |
322 | Effects = {} | |
323 | ------------------------------------------------------- | |
324 | --Start HeartBeat-- | |
325 | ------------------------------------------------------- | |
326 | ArtificialHB = Instance.new("BindableEvent", script) | |
327 | ArtificialHB.Name = "Heartbeat" | |
328 | script:WaitForChild("Heartbeat") | |
329 | ||
330 | frame = 1 / 60 | |
331 | tf = 0 | |
332 | allowframeloss = false | |
333 | tossremainder = false | |
334 | ||
335 | ||
336 | lastframe = tick() | |
337 | script.Heartbeat:Fire() | |
338 | ||
339 | ||
340 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
341 | tf = tf + s | |
342 | if tf >= frame then | |
343 | if allowframeloss then | |
344 | script.Heartbeat:Fire() | |
345 | lastframe = tick() | |
346 | else | |
347 | for i = 1, math.floor(tf / frame) do | |
348 | script.Heartbeat:Fire() | |
349 | end | |
350 | lastframe = tick() | |
351 | end | |
352 | if tossremainder then | |
353 | tf = 0 | |
354 | else | |
355 | tf = tf - frame * math.floor(tf / frame) | |
356 | end | |
357 | end | |
358 | end) | |
359 | ------------------------------------------------------- | |
360 | --End HeartBeat-- | |
361 | ------------------------------------------------------- | |
362 | ||
363 | ------------------------------------------------------- | |
364 | --Start Important Functions-- | |
365 | ------------------------------------------------------- | |
366 | function swait(num) | |
367 | if num == 0 or num == nil then | |
368 | game:service("RunService").Stepped:wait(0) | |
369 | else | |
370 | for i = 0, num do | |
371 | game:service("RunService").Stepped:wait(0) | |
372 | end | |
373 | end | |
374 | end | |
375 | function thread(f) | |
376 | coroutine.resume(coroutine.create(f)) | |
377 | end | |
378 | function clerp(a, b, t) | |
379 | local qa = { | |
380 | QuaternionFromCFrame(a) | |
381 | } | |
382 | local qb = { | |
383 | QuaternionFromCFrame(b) | |
384 | } | |
385 | local ax, ay, az = a.x, a.y, a.z | |
386 | local bx, by, bz = b.x, b.y, b.z | |
387 | local _t = 1 - t | |
388 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
389 | end | |
390 | function QuaternionFromCFrame(cf) | |
391 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
392 | local trace = m00 + m11 + m22 | |
393 | if trace > 0 then | |
394 | local s = math.sqrt(1 + trace) | |
395 | local recip = 0.5 / s | |
396 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
397 | else | |
398 | local i = 0 | |
399 | if m00 < m11 then | |
400 | i = 1 | |
401 | end | |
402 | if m22 > (i == 0 and m00 or m11) then | |
403 | i = 2 | |
404 | end | |
405 | if i == 0 then | |
406 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
407 | local recip = 0.5 / s | |
408 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
409 | elseif i == 1 then | |
410 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
411 | local recip = 0.5 / s | |
412 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
413 | elseif i == 2 then | |
414 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
415 | local recip = 0.5 / s | |
416 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
417 | end | |
418 | end | |
419 | end | |
420 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
421 | local xs, ys, zs = x + x, y + y, z + z | |
422 | local wx, wy, wz = w * xs, w * ys, w * zs | |
423 | local xx = x * xs | |
424 | local xy = x * ys | |
425 | local xz = x * zs | |
426 | local yy = y * ys | |
427 | local yz = y * zs | |
428 | local zz = z * zs | |
429 | 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)) | |
430 | end | |
431 | function QuaternionSlerp(a, b, t) | |
432 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
433 | local startInterp, finishInterp | |
434 | if cosTheta >= 1.0E-4 then | |
435 | if 1 - cosTheta > 1.0E-4 then | |
436 | local theta = math.acos(cosTheta) | |
437 | local invSinTheta = 1 / Sin(theta) | |
438 | startInterp = Sin((1 - t) * theta) * invSinTheta | |
439 | finishInterp = Sin(t * theta) * invSinTheta | |
440 | else | |
441 | startInterp = 1 - t | |
442 | finishInterp = t | |
443 | end | |
444 | elseif 1 + cosTheta > 1.0E-4 then | |
445 | local theta = math.acos(-cosTheta) | |
446 | local invSinTheta = 1 / Sin(theta) | |
447 | startInterp = Sin((t - 1) * theta) * invSinTheta | |
448 | finishInterp = Sin(t * theta) * invSinTheta | |
449 | else | |
450 | startInterp = t - 1 | |
451 | finishInterp = t | |
452 | end | |
453 | 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 | |
454 | end | |
455 | function rayCast(Position, Direction, Range, Ignore) | |
456 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
457 | end | |
458 | local RbxUtility = LoadLibrary("RbxUtility") | |
459 | local Create = RbxUtility.Create | |
460 | ||
461 | function getRegion(point,range,ignore) | |
462 | return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100) | |
463 | end | |
464 | ||
465 | function GetTorso(char) | |
466 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
467 | end | |
468 | ||
469 | 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} | |
470 | ------------------------------------------------------- | |
471 | --Start Damage Function-- | |
472 | ------------------------------------------------------- | |
473 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
474 | if hit.Parent == nil then | |
475 | return | |
476 | end | |
477 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
478 | for _, v in pairs(hit.Parent:children()) do | |
479 | if v:IsA("Humanoid") then | |
480 | h = v | |
481 | end | |
482 | end | |
483 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
484 | ||
485 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
486 | end | |
487 | ||
488 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
489 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
490 | if hit.Parent.DebounceHit.Value == true then | |
491 | return | |
492 | end | |
493 | end | |
494 | if insta == true then | |
495 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
496 | end | |
497 | local c = Create("ObjectValue"){ | |
498 | Name = "creator", | |
499 | - | Value = game:service("Players").CerealKiller223, |
499 | + | Value = game:service("Players").scripttester0617, |
500 | Parent = h, | |
501 | } | |
502 | game:GetService("Debris"):AddItem(c, .5) | |
503 | if HitSound ~= nil and HitPitch ~= nil then | |
504 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
505 | end | |
506 | local Damage = math.random(minim, maxim) | |
507 | local blocked = false | |
508 | local block = hit.Parent:findFirstChild("Block") | |
509 | if block ~= nil then | |
510 | if block.className == "IntValue" then | |
511 | if block.Value > 0 then | |
512 | blocked = true | |
513 | block.Value = block.Value - 1 | |
514 | print(block.Value) | |
515 | end | |
516 | end | |
517 | end | |
518 | if blocked == false then | |
519 | h.Health = h.Health - Damage | |
520 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
521 | else | |
522 | h.Health = h.Health - (Damage / 2) | |
523 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
524 | end | |
525 | if Type == "Knockdown" then | |
526 | local hum = hit.Parent.Humanoid | |
527 | hum.PlatformStand = true | |
528 | coroutine.resume(coroutine.create(function(HHumanoid) | |
529 | swait(1) | |
530 | HHumanoid.PlatformStand = false | |
531 | end), hum) | |
532 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
533 | local bodvol = Create("BodyVelocity"){ | |
534 | velocity = angle * knockback, | |
535 | P = 5000, | |
536 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
537 | Parent = hit, | |
538 | } | |
539 | local rl = Create("BodyAngularVelocity"){ | |
540 | P = 3000, | |
541 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
542 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
543 | Parent = hit, | |
544 | } | |
545 | game:GetService("Debris"):AddItem(bodvol, .5) | |
546 | game:GetService("Debris"):AddItem(rl, .5) | |
547 | elseif Type == "Normal" then | |
548 | local vp = Create("BodyVelocity"){ | |
549 | P = 500, | |
550 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
551 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
552 | } | |
553 | if knockback > 0 then | |
554 | vp.Parent = hit.Parent.Torso | |
555 | end | |
556 | game:GetService("Debris"):AddItem(vp, .5) | |
557 | elseif Type == "Up" then | |
558 | local bodyVelocity = Create("BodyVelocity"){ | |
559 | velocity = Vector3.new(0, 20, 0), | |
560 | P = 5000, | |
561 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
562 | Parent = hit, | |
563 | } | |
564 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
565 | elseif Type == "DarkUp" then | |
566 | coroutine.resume(coroutine.create(function() | |
567 | for i = 0, 1, 0.1 do | |
568 | swait() | |
569 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
570 | end | |
571 | end)) | |
572 | local bodyVelocity = Create("BodyVelocity"){ | |
573 | velocity = Vector3.new(0, 20, 0), | |
574 | P = 5000, | |
575 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
576 | Parent = hit, | |
577 | } | |
578 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
579 | elseif Type == "Snare" then | |
580 | local bp = Create("BodyPosition"){ | |
581 | P = 2000, | |
582 | D = 100, | |
583 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
584 | position = hit.Parent.Torso.Position, | |
585 | Parent = hit.Parent.Torso, | |
586 | } | |
587 | game:GetService("Debris"):AddItem(bp, 1) | |
588 | elseif Type == "Freeze" then | |
589 | local BodPos = Create("BodyPosition"){ | |
590 | P = 50000, | |
591 | D = 1000, | |
592 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
593 | position = hit.Parent.Torso.Position, | |
594 | Parent = hit.Parent.Torso, | |
595 | } | |
596 | local BodGy = Create("BodyGyro") { | |
597 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
598 | P = 20e+003, | |
599 | Parent = hit.Parent.Torso, | |
600 | cframe = hit.Parent.Torso.CFrame, | |
601 | } | |
602 | hit.Parent.Torso.Anchored = true | |
603 | coroutine.resume(coroutine.create(function(Part) | |
604 | swait(1.5) | |
605 | Part.Anchored = false | |
606 | end), hit.Parent.Torso) | |
607 | game:GetService("Debris"):AddItem(BodPos, 3) | |
608 | game:GetService("Debris"):AddItem(BodGy, 3) | |
609 | end | |
610 | local debounce = Create("BoolValue"){ | |
611 | Name = "DebounceHit", | |
612 | Parent = hit.Parent, | |
613 | Value = true, | |
614 | } | |
615 | game:GetService("Debris"):AddItem(debounce, Delay) | |
616 | c = Create("ObjectValue"){ | |
617 | Name = "creator", | |
618 | Value = Player, | |
619 | Parent = h, | |
620 | } | |
621 | game:GetService("Debris"):AddItem(c, .5) | |
622 | end | |
623 | end | |
624 | ------------------------------------------------------- | |
625 | --End Damage Function-- | |
626 | ------------------------------------------------------- | |
627 | ||
628 | ------------------------------------------------------- | |
629 | --Start Damage Function Customization-- | |
630 | ------------------------------------------------------- | |
631 | function ShowDamage(Pos, Text, Time, Color) | |
632 | local Rate = (1 / 30) | |
633 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
634 | local Text = (Text or "") | |
635 | local Time = (Time or 2) | |
636 | local Color = (Color or Color3.new(255, 255, 1)) | |
637 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
638 | EffectPart.Anchored = true | |
639 | local BillboardGui = Create("BillboardGui"){ | |
640 | Size = UDim2.new(3, 0, 3, 0), | |
641 | Adornee = EffectPart, | |
642 | Parent = EffectPart, | |
643 | } | |
644 | local TextLabel = Create("TextLabel"){ | |
645 | BackgroundTransparency = 1, | |
646 | Size = UDim2.new(1, 0, 1, 0), | |
647 | Text = Text, | |
648 | Font = "Bodoni", | |
649 | TextColor3 = Color, | |
650 | TextScaled = true, | |
651 | TextStrokeColor3 = Color3.fromRGB(0,0,0), | |
652 | Parent = BillboardGui, | |
653 | } | |
654 | game.Debris:AddItem(EffectPart, (Time)) | |
655 | EffectPart.Parent = game:GetService("Workspace") | |
656 | delay(0, function() | |
657 | local Frames = (Time / Rate) | |
658 | for Frame = 1, Frames do | |
659 | wait(Rate) | |
660 | local Percent = (Frame / Frames) | |
661 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
662 | TextLabel.TextTransparency = Percent | |
663 | end | |
664 | if EffectPart and EffectPart.Parent then | |
665 | EffectPart:Destroy() | |
666 | end | |
667 | end) | |
668 | end | |
669 | ------------------------------------------------------- | |
670 | --End Damage Function Customization-- | |
671 | ------------------------------------------------------- | |
672 | ||
673 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
674 | for _, c in pairs(workspace:children()) do | |
675 | local hum = c:findFirstChild("Humanoid") | |
676 | if hum ~= nil then | |
677 | local head = c:findFirstChild("Head") | |
678 | if head ~= nil then | |
679 | local targ = head.Position - Part.Position | |
680 | local mag = targ.magnitude | |
681 | if magni >= mag and c.Name ~= plr.Name then | |
682 | Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2) | |
683 | end | |
684 | end | |
685 | end | |
686 | end | |
687 | end | |
688 | ||
689 | ||
690 | CFuncs = { | |
691 | Part = { | |
692 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
693 | local Part = Create("Part")({ | |
694 | Parent = Parent, | |
695 | Reflectance = Reflectance, | |
696 | Transparency = Transparency, | |
697 | CanCollide = false, | |
698 | Locked = true, | |
699 | BrickColor = BrickColor.new(tostring(BColor)), | |
700 | Name = Name, | |
701 | Size = Size, | |
702 | Material = Material | |
703 | }) | |
704 | RemoveOutlines(Part) | |
705 | return Part | |
706 | end | |
707 | }, | |
708 | Mesh = { | |
709 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
710 | local Msh = Create(Mesh)({ | |
711 | Parent = Part, | |
712 | Offset = OffSet, | |
713 | Scale = Scale | |
714 | }) | |
715 | if Mesh == "SpecialMesh" then | |
716 | Msh.MeshType = MeshType | |
717 | Msh.MeshId = MeshId | |
718 | end | |
719 | return Msh | |
720 | end | |
721 | }, | |
722 | Mesh = { | |
723 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
724 | local Msh = Create(Mesh)({ | |
725 | Parent = Part, | |
726 | Offset = OffSet, | |
727 | Scale = Scale | |
728 | }) | |
729 | if Mesh == "SpecialMesh" then | |
730 | Msh.MeshType = MeshType | |
731 | Msh.MeshId = MeshId | |
732 | end | |
733 | return Msh | |
734 | end | |
735 | }, | |
736 | Weld = { | |
737 | Create = function(Parent, Part0, Part1, C0, C1) | |
738 | local Weld = Create("Weld")({ | |
739 | Parent = Parent, | |
740 | Part0 = Part0, | |
741 | Part1 = Part1, | |
742 | C0 = C0, | |
743 | C1 = C1 | |
744 | }) | |
745 | return Weld | |
746 | end | |
747 | }, | |
748 | Sound = { | |
749 | Create = function(id, par, vol, pit) | |
750 | coroutine.resume(coroutine.create(function() | |
751 | local S = Create("Sound")({ | |
752 | Volume = vol, | |
753 | Pitch = pit or 1, | |
754 | SoundId = id, | |
755 | Parent = par or workspace | |
756 | }) | |
757 | wait() | |
758 | S:play() | |
759 | game:GetService("Debris"):AddItem(S, 6) | |
760 | end)) | |
761 | end | |
762 | }, | |
763 | ParticleEmitter = { | |
764 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
765 | local fp = Create("ParticleEmitter")({ | |
766 | Parent = Parent, | |
767 | Color = ColorSequence.new(Color1, Color2), | |
768 | LightEmission = LightEmission, | |
769 | Size = Size, | |
770 | Texture = Texture, | |
771 | Transparency = Transparency, | |
772 | ZOffset = ZOffset, | |
773 | Acceleration = Accel, | |
774 | Drag = Drag, | |
775 | LockedToPart = LockedToPart, | |
776 | VelocityInheritance = VelocityInheritance, | |
777 | EmissionDirection = EmissionDirection, | |
778 | Enabled = Enabled, | |
779 | Lifetime = LifeTime, | |
780 | Rate = Rate, | |
781 | Rotation = Rotation, | |
782 | RotSpeed = RotSpeed, | |
783 | Speed = Speed, | |
784 | VelocitySpread = VelocitySpread | |
785 | }) | |
786 | return fp | |
787 | end | |
788 | } | |
789 | } | |
790 | function RemoveOutlines(part) | |
791 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
792 | end | |
793 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
794 | local Part = Create("Part")({ | |
795 | formFactor = FormFactor, | |
796 | Parent = Parent, | |
797 | Reflectance = Reflectance, | |
798 | Transparency = Transparency, | |
799 | CanCollide = false, | |
800 | Locked = true, | |
801 | BrickColor = BrickColor.new(tostring(BColor)), | |
802 | Name = Name, | |
803 | Size = Size, | |
804 | Material = Material | |
805 | }) | |
806 | RemoveOutlines(Part) | |
807 | return Part | |
808 | end | |
809 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
810 | local Msh = Create(Mesh)({ | |
811 | Parent = Part, | |
812 | Offset = OffSet, | |
813 | Scale = Scale | |
814 | }) | |
815 | if Mesh == "SpecialMesh" then | |
816 | Msh.MeshType = MeshType | |
817 | Msh.MeshId = MeshId | |
818 | end | |
819 | return Msh | |
820 | end | |
821 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
822 | local Weld = Create("Weld")({ | |
823 | Parent = Parent, | |
824 | Part0 = Part0, | |
825 | Part1 = Part1, | |
826 | C0 = C0, | |
827 | C1 = C1 | |
828 | }) | |
829 | return Weld | |
830 | end | |
831 | ||
832 | ||
833 | ------------------------------------------------------- | |
834 | --Start Effect Function-- | |
835 | ------------------------------------------------------- | |
836 | EffectModel = Instance.new("Model", char) | |
837 | Effects = { | |
838 | Block = { | |
839 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
840 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
841 | prt.Anchored = true | |
842 | prt.CFrame = cframe | |
843 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
844 | game:GetService("Debris"):AddItem(prt, 10) | |
845 | if Type == 1 or Type == nil then | |
846 | table.insert(Effects, { | |
847 | prt, | |
848 | "Block1", | |
849 | delay, | |
850 | x3, | |
851 | y3, | |
852 | z3, | |
853 | msh | |
854 | }) | |
855 | elseif Type == 2 then | |
856 | table.insert(Effects, { | |
857 | prt, | |
858 | "Block2", | |
859 | delay, | |
860 | x3, | |
861 | y3, | |
862 | z3, | |
863 | msh | |
864 | }) | |
865 | else | |
866 | table.insert(Effects, { | |
867 | prt, | |
868 | "Block3", | |
869 | delay, | |
870 | x3, | |
871 | y3, | |
872 | z3, | |
873 | msh | |
874 | }) | |
875 | end | |
876 | end | |
877 | }, | |
878 | Sphere = { | |
879 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
880 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
881 | prt.Anchored = true | |
882 | prt.CFrame = cframe | |
883 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
884 | game:GetService("Debris"):AddItem(prt, 10) | |
885 | table.insert(Effects, { | |
886 | prt, | |
887 | "Cylinder", | |
888 | delay, | |
889 | x3, | |
890 | y3, | |
891 | z3, | |
892 | msh | |
893 | }) | |
894 | end | |
895 | }, | |
896 | Cylinder = { | |
897 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
898 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
899 | prt.Anchored = true | |
900 | prt.CFrame = cframe | |
901 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
902 | game:GetService("Debris"):AddItem(prt, 10) | |
903 | table.insert(Effects, { | |
904 | prt, | |
905 | "Cylinder", | |
906 | delay, | |
907 | x3, | |
908 | y3, | |
909 | z3, | |
910 | msh | |
911 | }) | |
912 | end | |
913 | }, | |
914 | Wave = { | |
915 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
916 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
917 | prt.Anchored = true | |
918 | prt.CFrame = cframe | |
919 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
920 | game:GetService("Debris"):AddItem(prt, 10) | |
921 | table.insert(Effects, { | |
922 | prt, | |
923 | "Cylinder", | |
924 | delay, | |
925 | x3 / 60, | |
926 | y3 / 60, | |
927 | z3 / 60, | |
928 | msh | |
929 | }) | |
930 | end | |
931 | }, | |
932 | Ring = { | |
933 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
934 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
935 | prt.Anchored = true | |
936 | prt.CFrame = cframe | |
937 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
938 | game:GetService("Debris"):AddItem(prt, 10) | |
939 | table.insert(Effects, { | |
940 | prt, | |
941 | "Cylinder", | |
942 | delay, | |
943 | x3, | |
944 | y3, | |
945 | z3, | |
946 | msh | |
947 | }) | |
948 | end | |
949 | }, | |
950 | Break = { | |
951 | Create = function(brickcolor, cframe, x1, y1, z1) | |
952 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
953 | prt.Anchored = true | |
954 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
955 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
956 | local num = math.random(10, 50) / 1000 | |
957 | game:GetService("Debris"):AddItem(prt, 10) | |
958 | table.insert(Effects, { | |
959 | prt, | |
960 | "Shatter", | |
961 | num, | |
962 | prt.CFrame, | |
963 | math.random() - math.random(), | |
964 | 0, | |
965 | math.random(50, 100) / 100 | |
966 | }) | |
967 | end | |
968 | }, | |
969 | Spiral = { | |
970 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
971 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
972 | prt.Anchored = true | |
973 | prt.CFrame = cframe | |
974 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
975 | game:GetService("Debris"):AddItem(prt, 10) | |
976 | table.insert(Effects, { | |
977 | prt, | |
978 | "Cylinder", | |
979 | delay, | |
980 | x3, | |
981 | y3, | |
982 | z3, | |
983 | msh | |
984 | }) | |
985 | end | |
986 | }, | |
987 | Push = { | |
988 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
989 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
990 | prt.Anchored = true | |
991 | prt.CFrame = cframe | |
992 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
993 | game:GetService("Debris"):AddItem(prt, 10) | |
994 | table.insert(Effects, { | |
995 | prt, | |
996 | "Cylinder", | |
997 | delay, | |
998 | x3, | |
999 | y3, | |
1000 | z3, | |
1001 | msh | |
1002 | }) | |
1003 | end | |
1004 | } | |
1005 | } | |
1006 | function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size) | |
1007 | local fp = IT("Part") | |
1008 | fp.formFactor = formfactor | |
1009 | fp.Parent = parent | |
1010 | fp.Reflectance = reflectance | |
1011 | fp.Transparency = transparency | |
1012 | fp.CanCollide = false | |
1013 | fp.Locked = true | |
1014 | fp.BrickColor = brickcolor | |
1015 | fp.Name = name | |
1016 | fp.Size = size | |
1017 | fp.Position = tors.Position | |
1018 | RemoveOutlines(fp) | |
1019 | fp.Material = "SmoothPlastic" | |
1020 | fp:BreakJoints() | |
1021 | return fp | |
1022 | end | |
1023 | ||
1024 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1025 | local mesh = IT(Mesh) | |
1026 | mesh.Parent = part | |
1027 | if Mesh == "SpecialMesh" then | |
1028 | mesh.MeshType = meshtype | |
1029 | if meshid ~= "nil" then | |
1030 | mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid | |
1031 | end | |
1032 | end | |
1033 | mesh.Offset = offset | |
1034 | mesh.Scale = scale | |
1035 | return mesh | |
1036 | end | |
1037 | ||
1038 | function Magic(bonuspeed, type, pos, scale, value, color, MType) | |
1039 | local type = type | |
1040 | local rng = Instance.new("Part", char) | |
1041 | rng.Anchored = true | |
1042 | rng.BrickColor = color | |
1043 | rng.CanCollide = false | |
1044 | rng.FormFactor = 3 | |
1045 | rng.Name = "Ring" | |
1046 | rng.Material = "Neon" | |
1047 | rng.Size = Vector3.new(1, 1, 1) | |
1048 | rng.Transparency = 0 | |
1049 | rng.TopSurface = 0 | |
1050 | rng.BottomSurface = 0 | |
1051 | rng.CFrame = pos | |
1052 | local rngm = Instance.new("SpecialMesh", rng) | |
1053 | rngm.MeshType = MType | |
1054 | rngm.Scale = scale | |
1055 | local scaler2 = 1 | |
1056 | if type == "Add" then | |
1057 | scaler2 = 1 * value | |
1058 | elseif type == "Divide" then | |
1059 | scaler2 = 1 / value | |
1060 | end | |
1061 | coroutine.resume(coroutine.create(function() | |
1062 | for i = 0, 10 / bonuspeed, 0.1 do | |
1063 | swait() | |
1064 | if type == "Add" then | |
1065 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1066 | elseif type == "Divide" then | |
1067 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1068 | end | |
1069 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1070 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
1071 | end | |
1072 | rng:Destroy() | |
1073 | end)) | |
1074 | end | |
1075 | ||
1076 | function Eviscerate(dude) | |
1077 | if dude.Name ~= char then | |
1078 | local bgf = IT("BodyGyro", dude.Head) | |
1079 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1080 | local val = IT("BoolValue", dude) | |
1081 | val.Name = "IsHit" | |
1082 | local ds = coroutine.wrap(function() | |
1083 | dude:WaitForChild("Head"):BreakJoints() | |
1084 | wait(0.5) | |
1085 | target = nil | |
1086 | coroutine.resume(coroutine.create(function() | |
1087 | for i, v in pairs(dude:GetChildren()) do | |
1088 | if v:IsA("Accessory") then | |
1089 | v:Destroy() | |
1090 | end | |
1091 | if v:IsA("Humanoid") then | |
1092 | v:Destroy() | |
1093 | end | |
1094 | if v:IsA("CharacterMesh") then | |
1095 | v:Destroy() | |
1096 | end | |
1097 | if v:IsA("Model") then | |
1098 | v:Destroy() | |
1099 | end | |
1100 | if v:IsA("Part") or v:IsA("MeshPart") then | |
1101 | for x, o in pairs(v:GetChildren()) do | |
1102 | if o:IsA("Decal") then | |
1103 | o:Destroy() | |
1104 | end | |
1105 | end | |
1106 | coroutine.resume(coroutine.create(function() | |
1107 | v.Material = "Neon" | |
1108 | v.CanCollide = false | |
1109 | local PartEmmit1 = IT("ParticleEmitter", v) | |
1110 | PartEmmit1.LightEmission = 1 | |
1111 | PartEmmit1.Texture = "rbxassetid://284205403" | |
1112 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1113 | PartEmmit1.Rate = 150 | |
1114 | PartEmmit1.Lifetime = NumberRange.new(1) | |
1115 | PartEmmit1.Size = NumberSequence.new({ | |
1116 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
1117 | NumberSequenceKeypoint.new(1, 0, 0) | |
1118 | }) | |
1119 | PartEmmit1.Transparency = NumberSequence.new({ | |
1120 | NumberSequenceKeypoint.new(0, 0, 0), | |
1121 | NumberSequenceKeypoint.new(1, 1, 0) | |
1122 | }) | |
1123 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1124 | PartEmmit1.VelocitySpread = 30000 | |
1125 | PartEmmit1.Rotation = NumberRange.new(-500, 500) | |
1126 | PartEmmit1.RotSpeed = NumberRange.new(-500, 500) | |
1127 | local BodPoss = IT("BodyPosition", v) | |
1128 | BodPoss.P = 3000 | |
1129 | BodPoss.D = 1000 | |
1130 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1131 | BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1132 | v.Color = maincolor.Color | |
1133 | coroutine.resume(coroutine.create(function() | |
1134 | for i = 0, 49 do | |
1135 | swait(1) | |
1136 | v.Transparency = v.Transparency + 0.08 | |
1137 | end | |
1138 | wait(0.5) | |
1139 | PartEmmit1.Enabled = false | |
1140 | wait(3) | |
1141 | v:Destroy() | |
1142 | dude:Destroy() | |
1143 | end)) | |
1144 | end)) | |
1145 | end | |
1146 | end | |
1147 | end)) | |
1148 | end) | |
1149 | ds() | |
1150 | end | |
1151 | end | |
1152 | ||
1153 | function FindNearestHead(Position, Distance, SinglePlayer) | |
1154 | if SinglePlayer then | |
1155 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
1156 | end | |
1157 | local List = {} | |
1158 | for i, v in pairs(workspace:GetChildren()) do | |
1159 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then | |
1160 | table.insert(List, v) | |
1161 | end | |
1162 | end | |
1163 | return List | |
1164 | end | |
1165 | ||
1166 | function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType) | |
1167 | local type = type | |
1168 | local rng = Instance.new("Part", char) | |
1169 | rng.Anchored = true | |
1170 | rng.BrickColor = color | |
1171 | rng.CanCollide = false | |
1172 | rng.FormFactor = 3 | |
1173 | rng.Name = "Ring" | |
1174 | rng.Material = "Neon" | |
1175 | rng.Size = Vector3.new(1, 1, 1) | |
1176 | rng.Transparency = 0 | |
1177 | rng.TopSurface = 0 | |
1178 | rng.BottomSurface = 0 | |
1179 | rng.CFrame = pos | |
1180 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
1181 | local rngm = Instance.new("SpecialMesh", rng) | |
1182 | rngm.MeshType = MType | |
1183 | rngm.Scale = Vector3.new(x1, y1, z1) | |
1184 | local scaler2 = 1 | |
1185 | local speeder = FastSpeed | |
1186 | if type == "Add" then | |
1187 | scaler2 = 1 * value | |
1188 | elseif type == "Divide" then | |
1189 | scaler2 = 1 / value | |
1190 | end | |
1191 | coroutine.resume(coroutine.create(function() | |
1192 | for i = 0, 10 / bonuspeed, 0.1 do | |
1193 | swait() | |
1194 | if type == "Add" then | |
1195 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
1196 | elseif type == "Divide" then | |
1197 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
1198 | end | |
1199 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
1200 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
1201 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
1202 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
1203 | end | |
1204 | rng:Destroy() | |
1205 | end)) | |
1206 | end | |
1207 | ||
1208 | function SoulSteal(dude) | |
1209 | if dude.Name ~= char then | |
1210 | local bgf = IT("BodyGyro", dude.Head) | |
1211 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0) | |
1212 | local val = IT("BoolValue", dude) | |
1213 | val.Name = "IsHit" | |
1214 | local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart') | |
1215 | local soulst = coroutine.wrap(function() | |
1216 | local soul = Instance.new("Part",dude) | |
1217 | soul.Size = Vector3.new(1,1,1) | |
1218 | soul.CanCollide = false | |
1219 | soul.Anchored = false | |
1220 | soul.Position = torso.Position | |
1221 | soul.Transparency = 1 | |
1222 | local PartEmmit1 = IT("ParticleEmitter", soul) | |
1223 | PartEmmit1.LightEmission = 1 | |
1224 | PartEmmit1.Texture = "rbxassetid://569507414" | |
1225 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1226 | PartEmmit1.Rate = 250 | |
1227 | PartEmmit1.Lifetime = NumberRange.new(1.6) | |
1228 | PartEmmit1.Size = NumberSequence.new({ | |
1229 | NumberSequenceKeypoint.new(0, 1, 0), | |
1230 | NumberSequenceKeypoint.new(1, 0, 0) | |
1231 | }) | |
1232 | PartEmmit1.Transparency = NumberSequence.new({ | |
1233 | NumberSequenceKeypoint.new(0, 0, 0), | |
1234 | NumberSequenceKeypoint.new(1, 1, 0) | |
1235 | }) | |
1236 | PartEmmit1.Speed = NumberRange.new(0, 0) | |
1237 | PartEmmit1.VelocitySpread = 30000 | |
1238 | PartEmmit1.Rotation = NumberRange.new(-360, 360) | |
1239 | PartEmmit1.RotSpeed = NumberRange.new(-360, 360) | |
1240 | local BodPoss = IT("BodyPosition", soul) | |
1241 | BodPoss.P = 3000 | |
1242 | BodPoss.D = 1000 | |
1243 | BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
1244 | BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15)) | |
1245 | wait(1.6) | |
1246 | soul.Touched:connect(function(hit) | |
1247 | if hit.Parent == char then | |
1248 | soul:Destroy() | |
1249 | end | |
1250 | end) | |
1251 | wait(1.2) | |
1252 | while soul do | |
1253 | swait() | |
1254 | PartEmmit1.Color = ColorSequence.new(maincolor.Color) | |
1255 | BodPoss.Position = tors.Position | |
1256 | end | |
1257 | end) | |
1258 | soulst() | |
1259 | end | |
1260 | end | |
1261 | function FaceMouse() | |
1262 | local Cam = workspace.CurrentCamera | |
1263 | return { | |
1264 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
1265 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
1266 | } | |
1267 | end | |
1268 | ||
1269 | BTAUNT = Instance.new("Sound", tors) | |
1270 | BTAUNT.SoundId = "http://www.roblox.com/asset/?id=2561705325" | |
1271 | BTAUNT.Volume = 2 | |
1272 | BTAUNT.Pitch = 1 | |
1273 | BTAUNT.Looped = true | |
1274 | BTAUNT.TimePosition = 0.2 | |
1275 | ||
1276 | TEST = Instance.new("Sound", tors) | |
1277 | TEST.SoundId = "http://www.roblox.com/asset/?id=2544975373" | |
1278 | TEST.Volume = 25 | |
1279 | TEST.Pitch = 1 | |
1280 | TEST.Looped = false | |
1281 | TEST.TimePosition = 0 | |
1282 | ------------------------------------------------------- | |
1283 | --End Effect Function-- | |
1284 | ------------------------------------------------------- | |
1285 | function Cso(ID, PARENT, VOLUME, PITCH) | |
1286 | local NSound = nil | |
1287 | coroutine.resume(coroutine.create(function() | |
1288 | NSound = IT("Sound", PARENT) | |
1289 | NSound.Volume = VOLUME | |
1290 | NSound.Pitch = PITCH | |
1291 | NSound.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1292 | swait() | |
1293 | NSound:play() | |
1294 | game:GetService("Debris"):AddItem(NSound, 50) | |
1295 | end)) | |
1296 | return NSound | |
1297 | end | |
1298 | function CameraEnshaking(Length, Intensity) | |
1299 | coroutine.resume(coroutine.create(function() | |
1300 | local intensity = 1 * Intensity | |
1301 | local rotM = 0.01 * Intensity | |
1302 | for i = 0, Length, 0.1 do | |
1303 | swait() | |
1304 | intensity = intensity - 0.05 * Intensity / Length | |
1305 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1306 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
1307 | 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) | |
1308 | end | |
1309 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
1310 | end)) | |
1311 | end | |
1312 | ------------------------------------------------------- | |
1313 | --End Important Functions-- | |
1314 | ------------------------------------------------------- | |
1315 | ||
1316 | ||
1317 | ------------------------------------------------------- | |
1318 | --Start Customization-- | |
1319 | ------------------------------------------------------- | |
1320 | local Player_Size = 1 | |
1321 | if Player_Size ~= 1 then | |
1322 | root.Size = root.Size * Player_Size | |
1323 | tors.Size = tors.Size * Player_Size | |
1324 | hed.Size = hed.Size * Player_Size | |
1325 | ra.Size = ra.Size * Player_Size | |
1326 | la.Size = la.Size * Player_Size | |
1327 | rl.Size = rl.Size * Player_Size | |
1328 | ll.Size = ll.Size * Player_Size | |
1329 | ---------------------------------------------------------------------------------- | |
1330 | rootj.Parent = root | |
1331 | neck.Parent = tors | |
1332 | RW.Parent = tors | |
1333 | LW.Parent = tors | |
1334 | RH.Parent = tors | |
1335 | LH.Parent = tors | |
1336 | ---------------------------------------------------------------------------------- | |
1337 | rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1338 | rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) | |
1339 | neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0)) | |
1340 | neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180)) | |
1341 | RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0 | |
1342 | LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0 | |
1343 | ---------------------------------------------------------------------------------- | |
1344 | 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)) | |
1345 | 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)) | |
1346 | 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)) | |
1347 | 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)) | |
1348 | --hat.Parent = Character | |
1349 | end | |
1350 | ---------------------------------------------------------------------------------- | |
1351 | ---------------------------------------------------------------------------------- | |
1352 | local equipped = false | |
1353 | local idle = 0 | |
1354 | local change = 1 | |
1355 | local val = 0 | |
1356 | local toim = 0 | |
1357 | local idleanim = 0.4 | |
1358 | local sine = 0 | |
1359 | local Sit = 1 | |
1360 | ---------------------------------------------------------------------------------- | |
1361 | hum.WalkSpeed = 8 | |
1362 | hum.JumpPower = 57 | |
1363 | hum.Animator.Parent = nil | |
1364 | ---------------------------------------------------------------------------------- | |
1365 | ||
1366 | ||
1367 | ------------------------------------------------------- | |
1368 | --End Customization-- | |
1369 | ------------------------------------------------------- | |
1370 | local Blobby = Instance.new("Part", char) | |
1371 | Blobby.Name = "Blob" | |
1372 | Blobby.CanCollide = false | |
1373 | Blobby.BrickColor = BrickColor.new("Really black") | |
1374 | Blobby.Transparency = 0 | |
1375 | Blobby.Material = "Plastic" | |
1376 | Blobby.Size = Vector3.new(1, 1, 2) | |
1377 | Blobby.TopSurface = Enum.SurfaceType.Smooth | |
1378 | Blobby.BottomSurface = Enum.SurfaceType.Smooth | |
1379 | ||
1380 | local Weld = Instance.new("Weld", Blobby) | |
1381 | Weld.Part0 = ra | |
1382 | Weld.Part1 = Blobby | |
1383 | Weld.C1 = CFrame.new(0, 0.8, 0) | |
1384 | Weld.C0 = CFrame.Angles(Rad(-180),0,135) | |
1385 | ||
1386 | local M2 = Instance.new("SpecialMesh") | |
1387 | M2.Parent = Blobby | |
1388 | M2.MeshId = "rbxassetid://0" | |
1389 | M2.TextureId = "rbxassetid://0" | |
1390 | M2.Scale = Vector3.new(1, 0.8, 1) | |
1391 | ||
1392 | --[[local naeeym2 = Instance.new("BillboardGui",char) | |
1393 | naeeym2.AlwaysOnTop = true | |
1394 | naeeym2.Size = UDim2.new(5,35,2,15) | |
1395 | naeeym2.StudsOffset = Vector3.new(0, 3.5, 0) | |
1396 | naeeym2.Adornee = hed | |
1397 | naeeym2.Name = "Name" | |
1398 | --naeeym2.PlayerToHideFrom = Player | |
1399 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1400 | tecks2.BackgroundTransparency = 1 | |
1401 | tecks2.TextScaled = true | |
1402 | tecks2.BorderSizePixel = 0 | |
1403 | tecks2.Text = "Fight Me" | |
1404 | tecks2.Font = Enum.Font.Bodoni | |
1405 | tecks2.TextSize = 30 | |
1406 | tecks2.TextStrokeTransparency = 0 | |
1407 | tecks2.TextColor3 = Color3.new(0, 0, 0) | |
1408 | tecks2.TextStrokeColor3 = Color3.new(1, 1, 1) | |
1409 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1410 | tecks2.Parent = naeeym2]] | |
1411 | ---------------------------------------------------------------------------------- | |
1412 | local AddInstance = function(Object, ...) | |
1413 | local Obj = Instance.new(Object) | |
1414 | for i,v in next,(...) do | |
1415 | Obj[i] = v | |
1416 | end | |
1417 | return Obj | |
1418 | end | |
1419 | ---------------------------------------------------- | |
1420 | local Reaper = AddInstance("Part",{ | |
1421 | Parent = hed, | |
1422 | CFrame = hed.CFrame, | |
1423 | formFactor = "Symmetric", | |
1424 | Size = Vector3.new(1, 1, 1), | |
1425 | CanCollide = false, | |
1426 | TopSurface = "Smooth", | |
1427 | BottomSurface = "Smooth", | |
1428 | Locked = true, | |
1429 | }) | |
1430 | local Weld = AddInstance("Weld",{ | |
1431 | Parent = Reaper, | |
1432 | Part0 = hed, | |
1433 | C0 = CFrame.new(0, 0.4, 0)*CFrame.Angles(0, 0, 0), | |
1434 | Part1 = Reaper, | |
1435 | }) | |
1436 | local Mesh = AddInstance("SpecialMesh",{ | |
1437 | Parent = Reaper, | |
1438 | MeshId = "rbxassetid://1241662062", | |
1439 | TextureId = "rbxassetid://1008494800", | |
1440 | Scale = Vector3.new(1.05,1.05,1.05), | |
1441 | VertexColor = Vector3.new(0.3, 0, 0.3), | |
1442 | }) | |
1443 | ------------------------------------------------------- | |
1444 | wait(1) | |
1445 | - | plr = game.Players.CerealKiller223 |
1445 | + | plr = game.Players.scripttester0617 |
1446 | char = plr.Character | |
1447 | mouse = plr:GetMouse() | |
1448 | whitecolor = Color3.new(255,255,1) | |
1449 | epicmode = false | |
1450 | normal = true | |
1451 | for i,v in pairs(char:GetChildren()) do | |
1452 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
1453 | v:Destroy() | |
1454 | end | |
1455 | end | |
1456 | local shirt = Instance.new("Shirt",char) | |
1457 | shirt.ShirtTemplate = "rbxassetid://2544612637" | |
1458 | local pants = Instance.new("Pants",char) | |
1459 | pants.PantsTemplate = "rbxassetid://2544611861" | |
1460 | local bdycolors = char["Body Colors"] | |
1461 | bdycolors.HeadColor3 = whitecolor | |
1462 | bdycolors.LeftArmColor3 = whitecolor | |
1463 | bdycolors.LeftLegColor3 = whitecolor | |
1464 | bdycolors.RightArmColor3 = whitecolor | |
1465 | bdycolors.RightLegColor3 = whitecolor | |
1466 | bdycolors.TorsoColor3 = whitecolor | |
1467 | for i,v in pairs(char:GetChildren()) do | |
1468 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
1469 | v:Destroy() | |
1470 | end | |
1471 | end | |
1472 | ||
1473 | ||
1474 | ||
1475 | local BC = Character["Body Colors"] | |
1476 | BC.HeadColor = BrickColor.new("Steel blue") | |
1477 | BC.LeftArmColor = BrickColor.new("Steel blue") | |
1478 | BC.LeftLegColor = BrickColor.new("Steel blue") | |
1479 | BC.RightArmColor = BrickColor.new("Steel blue") | |
1480 | BC.RightLegColor = BrickColor.new("Steel blue") | |
1481 | BC.TorsoColor = BrickColor.new("Steel blue") | |
1482 | ||
1483 | ||
1484 | local righteyebrickcolor = "Institutional white" | |
1485 | local reye = Instance.new("Part", char) | |
1486 | reye.CanCollide = false | |
1487 | reye.BrickColor = BrickColor.new(righteyebrickcolor) | |
1488 | reye.Material = "Neon" | |
1489 | reye.Size = Vector3.new(.25,.35,.15) | |
1490 | weld(reye, char.Head, CFrame.new(0.15,-0.2,0.55), CFrame.new(1,0,0)) | |
1491 | m1 = Instance.new("SpecialMesh", reye) | |
1492 | m1.MeshType = "Sphere" | |
1493 | m1.Scale = Vector3.new(0.9,0.9,0.9) | |
1494 | reye.Locked = true | |
1495 | reye.Name = "re" | |
1496 | ||
1497 | ------------------------------------------------------- | |
1498 | --Start Attacks N Stuff-- | |
1499 | ------------------------------------------------------- | |
1500 | local naeeym2 = Instance.new("BillboardGui",char) | |
1501 | naeeym2.AlwaysOnTop = true | |
1502 | naeeym2.Size = UDim2.new(5,35,2,35) | |
1503 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1504 | naeeym2.Adornee = hed | |
1505 | naeeym2.Name = "Name" | |
1506 | ||
1507 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
1508 | tecks2.BackgroundTransparency = 1 | |
1509 | tecks2.TextScaled = true | |
1510 | tecks2.BorderSizePixel = 0 | |
1511 | tecks2.Text = "Darkness" | |
1512 | tecks2.Font = "Fantasy" | |
1513 | tecks2.TextSize = 30 | |
1514 | tecks2.TextStrokeTransparency = 0 | |
1515 | tecks2.TextColor3 = BrickColor.new('Really black').Color | |
1516 | tecks2.TextStrokeColor3 = BrickColor.new('Blue storm').Color | |
1517 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1518 | tecks2.Parent = naeeym2 | |
1519 | textfag = tecks2 | |
1520 | tecks2.Text = "REEEEEEEEEEEEEE " | |
1521 | wait(2) | |
1522 | tecks2.Text = "DON'T U DARE LEAK DIS OR UR DED BOI" | |
1523 | wait(1) | |
1524 | tecks2.Text = "J҉ E҉ V҉ I҉ L҉" | |
1525 | BTAUNT:Play() | |
1526 | coroutine.resume(coroutine.create(function() | |
1527 | while textfag ~= nil do | |
1528 | swait() | |
1529 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
1530 | textfag.Rotation = math.random(-3,3) | |
1531 | end | |
1532 | end)) | |
1533 | ||
1534 | ||
1535 | ||
1536 | function die() | |
1537 | attack = true | |
1538 | M2.MeshId = "http://www.roblox.com/asset/?id=28140935" | |
1539 | M2.TextureId = "http://www.roblox.com/asset/?id=50252366" | |
1540 | for i = 0, 2.6, 0.1 do | |
1541 | swait() | |
1542 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1543 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3) | |
1544 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
1545 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
1546 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2) | |
1547 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1) | |
1548 | end | |
1549 | Cso("357417055", tors, 10, 1) | |
1550 | CameraEnshaking(2, 15) | |
1551 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 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) | |
1552 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 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) | |
1553 | Effects.Wave.Create(BrickColor.new("Really black"), tors.CFrame * CF(0, -6, 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) | |
1554 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
1555 | if v:FindFirstChild("Head") then | |
1556 | Eviscerate(v) | |
1557 | end | |
1558 | end | |
1559 | for i = 0, 3, 0.1 do | |
1560 | swait() | |
1561 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1562 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3) | |
1563 | RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
1564 | LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15) | |
1565 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3) | |
1566 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1) | |
1567 | end | |
1568 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
1569 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
1570 | attack = false | |
1571 | end | |
1572 | ||
1573 | function dance() | |
1574 | attack = true | |
1575 | hum.WalkSpeed = 0 | |
1576 | CFuncs.Sound.Create("rbxassetid://2545008459", head, 100, 1) | |
1577 | for i = 0, 2, 0.1 do | |
1578 | swait() | |
1579 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
1580 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1581 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1582 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1583 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1584 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1585 | end | |
1586 | for i = 0, 6, 0.1 do | |
1587 | swait() | |
1588 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, .2 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
1589 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 2) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.15) | |
1590 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1591 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -1.2 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1592 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1593 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1594 | end | |
1595 | for i = 0, 2, 0.1 do | |
1596 | swait() | |
1597 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.5 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15) | |
1598 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1599 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1600 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.6 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1601 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(-25 + 2.5 * Sin(sine / 20)), Rad(-55 + 2.5 * Sin(sine / 20))), 0.12) | |
1602 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1603 | end | |
1604 | attack = false | |
1605 | hum.WalkSpeed = 20 | |
1606 | end | |
1607 | ||
1608 | function aaa() | |
1609 | attack = true | |
1610 | hum.WalkSpeed = 0 | |
1611 | for i = 0,20, 0.1 do | |
1612 | swait() | |
1613 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1614 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
1615 | 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(85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(25)), 0.3) | |
1616 | 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(-85), Rad(0)) * angles(Rad(-5), Rad(0), Rad(-25)), 0.3) | |
1617 | RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1) | |
1618 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1) | |
1619 | end | |
1620 | hum.WalkSpeed = 16 | |
1621 | attack = false | |
1622 | end | |
1623 | ||
1624 | function finalChaos() | |
1625 | attack = true | |
1626 | spawn(function() | |
1627 | local p = Instance.new("Part",char) | |
1628 | p.Anchored = true | |
1629 | p.CanCollide = false | |
1630 | p.CFrame = CFrame.new(mouse.Hit.p+Vector3.new(0,100,0)) | |
1631 | local m = Instance.new("SpecialMesh",p) | |
1632 | m.MeshId = "https://roblox.com/asset/?id=443756210" | |
1633 | m.Scale = Vector3.new(0.1,1,.1) | |
1634 | for i=1,30 do | |
1635 | p.CFrame = p.CFrame-Vector3.new(0,3.3333,0) | |
1636 | p.CFrame = p.CFrame * CFrame.Angles(0.5,0,0) | |
1637 | wait() | |
1638 | end | |
1639 | local beam = Instance.new("Part",char) | |
1640 | beam.Anchored = true | |
1641 | beam.CanCollide = false | |
1642 | beam.BrickColor = BrickColor.new("White") | |
1643 | beam.Material = Enum.Material.Neon | |
1644 | beam.Size = Vector3.new(1,1,1) | |
1645 | beam.Position = p.Position+Vector3.new(0,1000,0) | |
1646 | beam.CFrame = beam.CFrame * CFrame.Angles(0,0,89.5354) | |
1647 | local m = Instance.new("SpecialMesh",beam) | |
1648 | m.MeshType = "Cylinder" | |
1649 | m.Scale = Vector3.new(2000,15,15) | |
1650 | damage(6,20,35,p.Position) | |
1651 | p.Transparency = 1 | |
1652 | CFuncs.Sound.Create("rbxassetid://440145223", p, 10, 1) | |
1653 | for i=1,10 do | |
1654 | m.Scale = m.Scale-Vector3.new(0,1,1) | |
1655 | beam.Transparency = i / 10 | |
1656 | wait() | |
1657 | end | |
1658 | p:Destroy() | |
1659 | end) | |
1660 | attack = false | |
1661 | end | |
1662 | ||
1663 | function beam() | |
1664 | attack = true | |
1665 | hum.WalkSpeed = 0 | |
1666 | local Ring1 = Instance.new("Part", char) | |
1667 | Ring1.Anchored = true | |
1668 | Ring1.BrickColor = maincolor | |
1669 | Ring1.CanCollide = false | |
1670 | Ring1.FormFactor = 3 | |
1671 | Ring1.Name = "Ring" | |
1672 | Ring1.Material = "Neon" | |
1673 | Ring1.Size = Vector3.new(1, 0.05, 1) | |
1674 | Ring1.Transparency = 1 | |
1675 | Ring1.TopSurface = 0 | |
1676 | Ring1.BottomSurface = 0 | |
1677 | local Ring1Mesh = Instance.new("SpecialMesh", Ring1) | |
1678 | Ring1Mesh.MeshType = "Brick" | |
1679 | Ring1Mesh.Name = "SizeMesh" | |
1680 | Ring1Mesh.Scale = Vector3.new(0, 1, 0) | |
1681 | local InnerRing1 = Ring1:Clone() | |
1682 | InnerRing1.Parent = char | |
1683 | InnerRing1.Transparency = 0 | |
1684 | InnerRing1.BrickColor = BrickColor.new("New Yeller") | |
1685 | InnerRing1.Size = Vector3.new(1, 1, 1) | |
1686 | local InnerRing1Mesh = InnerRing1.SizeMesh | |
1687 | InnerRing1Mesh.Scale = Vector3.new(0, 0, 0) | |
1688 | InnerRing1Mesh.MeshType = "Sphere" | |
1689 | Ring1:Destroy() | |
1690 | for i = 0, 6, 0.1 do | |
1691 | swait() | |
1692 | --orb.CFrame = Pupil.CFrame | |
1693 | Aura(7, 0.12, "Add", Head.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Sphere") | |
1694 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1695 | neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1696 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1697 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1698 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12) | |
1699 | LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12) | |
1700 | end | |
1701 | InnerRing1.Transparency = 1 | |
1702 | InnerRing1.CFrame = Head.CFrame + root.CFrame.lookVector * 5 | |
1703 | Cso("2545012765", char, 10, 1) | |
1704 | Cso("2606661976", char, 2.3, 1) | |
1705 | local a = IT("Part", char) | |
1706 | a.Name = "Direction" | |
1707 | a.Anchored = true | |
1708 | a.BrickColor = BrickC("Pastel violet") | |
1709 | a.Material = "SmoothPlastic" | |
1710 | a.Transparency = 0 | |
1711 | a.Shape = "Cylinder" | |
1712 | a.CanCollide = false | |
1713 | local a2 = IT("Part", char) | |
1714 | a2.Name = "Direction" | |
1715 | a2.Anchored = true | |
1716 | a2.BrickColor = maincolor | |
1717 | a2.Color = maincolor.Color | |
1718 | a2.Material = "Neon" | |
1719 | a2.Transparency = 0.7 | |
1720 | a2.Shape = "Cylinder" | |
1721 | a2.CanCollide = false | |
1722 | local ba = IT("Part", char) | |
1723 | ba.Name = "HitDirect" | |
1724 | ba.Anchored = true | |
1725 | ba.BrickColor = maincolor | |
1726 | ba.Material = "Neon" | |
1727 | ba.Transparency = 1 | |
1728 | ba.CanCollide = false | |
1729 | local ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
1730 | local ignore = char | |
1731 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1732 | a.BottomSurface = 10 | |
1733 | a.TopSurface = 10 | |
1734 | a2.BottomSurface = 10 | |
1735 | a2.TopSurface = 10 | |
1736 | local distance = (InnerRing1.CFrame.p - position).magnitude | |
1737 | a.Size = Vector3.new(distance, 1, 1) | |
1738 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1739 | a2.Size = Vector3.new(distance, 1, 1) | |
1740 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1741 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
1742 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
1743 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
1744 | game:GetService("Debris"):AddItem(a, 20) | |
1745 | game:GetService("Debris"):AddItem(a2, 20) | |
1746 | game:GetService("Debris"):AddItem(ba, 20) | |
1747 | local msh = Instance.new("SpecialMesh", a) | |
1748 | msh.MeshType = "Brick" | |
1749 | msh.Scale = Vector3.new(1, 5, 5) | |
1750 | local msh2 = Instance.new("SpecialMesh", a2) | |
1751 | msh2.MeshType = "Brick" | |
1752 | msh2.Scale = Vector3.new(1, 7, 7) | |
1753 | for i = 0, 10, 0.1 do | |
1754 | swait() | |
1755 | CameraEnshaking(1, 5) | |
1756 | a2.Color = maincolor.Color | |
1757 | root.CFrame = FaceMouse()[1] | |
1758 | InnerRing1.CFrame = Head.CFrame + root.CFrame.lookVector * 4 | |
1759 | ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000) | |
1760 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
1761 | distance = (InnerRing1.CFrame.p - position).magnitude | |
1762 | a.Size = Vector3.new(distance, 1, 1) | |
1763 | a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1764 | a2.Size = Vector3.new(distance, 1, 1) | |
1765 | a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2) | |
1766 | ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance) | |
1767 | a.CFrame = a.CFrame * angles(0, Rad(90), 0) | |
1768 | a2.CFrame = a2.CFrame * angles(0, Rad(90), 0) | |
1769 | msh.Scale = msh.Scale - Vector3.new(0, 0.05, 0.05) | |
1770 | msh2.Scale = msh2.Scale - Vector3.new(0, 0.03, 0.03) | |
1771 | Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere") | |
1772 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do | |
1773 | if v:FindFirstChild("Head") then | |
1774 | Eviscerate(v) | |
1775 | end | |
1776 | end | |
1777 | end | |
1778 | a:Destroy() | |
1779 | a2:Destroy() | |
1780 | ba:Destroy() | |
1781 | InnerRing1:Destroy() | |
1782 | attack = false | |
1783 | hum.WalkSpeed = 10 | |
1784 | hum.CameraOffset = Vector3.new(0,0,0) | |
1785 | end | |
1786 | ||
1787 | function Call_Upon_The_Eyes() | |
1788 | attack = true | |
1789 | hum.WalkSpeed = 0 | |
1790 | for i = 0, 6, 0.1 do | |
1791 | swait() | |
1792 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1793 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1794 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1795 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1796 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(145), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.12) | |
1797 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1798 | end | |
1799 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
1800 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
1801 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
1802 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
1803 | CameraEnshaking(4, 25) | |
1804 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
1805 | if v:FindFirstChild("Head") then | |
1806 | Eviscerate(v) | |
1807 | end | |
1808 | end | |
1809 | for i = 0, 6, 0.1 do | |
1810 | swait() | |
1811 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1812 | neck.C0 = clerp(neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3) | |
1813 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1814 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.8 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15) | |
1815 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(0), Rad(15 + 2.5 * Sin(sine / 20))), 0.2) | |
1816 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
1817 | end | |
1818 | attack = false | |
1819 | hum.WalkSpeed = 10 | |
1820 | end | |
1821 | ||
1822 | function CHAOS() | |
1823 | attack = true | |
1824 | root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position) | |
1825 | Cso("2545012765", hed, 10, 1) | |
1826 | Effects.Ring.Create(BrickC("Royal purple"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(-1),Rad(0)), 2.5, 2.5, 40, 3, 3, 45, 0.01) | |
1827 | ||
1828 | Effects.Sphere.Create(BrickColor.new("Royal Purple"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04) | |
1829 | Effects.Sphere.Create(BrickColor.new("Really white"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02) | |
1830 | Effects.Sphere.Create(BrickColor.new("Royal Purple"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01) | |
1831 | ||
1832 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1833 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1834 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1835 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1836 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1837 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1838 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1839 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1840 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1841 | PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1842 | PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1843 | PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0) | |
1844 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do | |
1845 | if v:FindFirstChild("Head") then | |
1846 | Eviscerate(v) | |
1847 | end | |
1848 | end | |
1849 | attack = false | |
1850 | end | |
1851 | function Chain2() | |
1852 | if Mouse.Target.Parent ~= char and Mouse.Target.Parent.Parent ~= char and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1853 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1854 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1855 | local HEAD = HUM.Parent:FindFirstChild("Head") | |
1856 | local RIGHTARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightLowerArm") | |
1857 | local LEFTARM = HUM.Parent:FindFirstChild("Left Arm") or HUM.Parent:FindFirstChild("LeftLowerArm") | |
1858 | if HEAD and TORSO and HUM.Health > 0 then | |
1859 | local GYRO = IT("BodyGyro",root) | |
1860 | GYRO.D = 275 | |
1861 | GYRO.P = 20000 | |
1862 | GYRO.MaxTorque = Vector3.new(0,40000,0) | |
1863 | attack = true | |
1864 | hum.WalkSpeed = 0 | |
1865 | local hit,pos,hummie; | |
1866 | local Hook2 = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false) | |
1867 | Hook2.Transparency = 1 | |
1868 | local A2 = NewInstance("Attachment",Hook2) | |
1869 | local B2 = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)}) | |
1870 | 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}) | |
1871 | for i = 0, 2.3, .1 do | |
1872 | swait() | |
1873 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
1874 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1875 | 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) | |
1876 | 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) | |
1877 | 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) | |
1878 | 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) | |
1879 | 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) | |
1880 | end | |
1881 | Cso("169105657", ra, 7, 1.2) | |
1882 | for i = 0, 5, .1 do | |
1883 | if(hit)then break end | |
1884 | swait() | |
1885 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
1886 | Hook2.CFrame = TORSO.CFrame | |
1887 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1888 | 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) | |
1889 | 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) | |
1890 | 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) | |
1891 | 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) | |
1892 | 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) | |
1893 | end | |
1894 | Cso("169105657", ra, 5, .8) | |
1895 | Cso("2545211765", char, 7, 1) | |
1896 | GYRO:remove() | |
1897 | TORSO:BreakJoints() | |
1898 | for i = 0, 6, .1 do | |
1899 | swait() | |
1900 | Hook2.CFrame = Hook2.CFrame:lerp(tors.CFrame * CF(0, 0, -1), .2) | |
1901 | if(hit)then hit.CFrame = Hook2.CFrame; hit.Velocity = Vector3.new() | |
1902 | end | |
1903 | if((Hook2.CFrame.p-tors.CFrame.p).magnitude < 2)then | |
1904 | break | |
1905 | end | |
1906 | Chain2.TextureLength = 4 | |
1907 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1908 | 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) | |
1909 | 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) | |
1910 | 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) | |
1911 | 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) | |
1912 | 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) | |
1913 | end | |
1914 | hum.WalkSpeed = 16 | |
1915 | attack = false | |
1916 | Hook2:Destroy() | |
1917 | end | |
1918 | end | |
1919 | end | |
1920 | ||
1921 | function dejzrXD() | |
1922 | attack = true | |
1923 | hum.WalkSpeed = 20 | |
1924 | for i = 0, 4, 0.1 do | |
1925 | swait() | |
1926 | Cso("2545012765", char, 10, 1) | |
1927 | hum.CameraOffset = Vector3.new(0, -0.1 + 0.1 * Cos(sine / 20), 0) | |
1928 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1929 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1930 | 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(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1931 | 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1932 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(125), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1933 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1934 | end | |
1935 | Magic(5, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere") | |
1936 | Magic(10, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere") | |
1937 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere") | |
1938 | Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere") | |
1939 | CameraEnshaking(4, 5) | |
1940 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 14.5)) do | |
1941 | if v:FindFirstChild("Head") then | |
1942 | Eviscerate(v) | |
1943 | end | |
1944 | end | |
1945 | for i = 0, 2, 0.1 do | |
1946 | swait() | |
1947 | hum.CameraOffset = Vector3.new(0, -0.2 + 0.1 * Cos(sine / 20), 0) | |
1948 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
1949 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(-40)), 0.2) | |
1950 | 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(79), Rad(0)) * angles(Rad(-10), Rad(0), Rad(-10)), 0.2) | |
1951 | 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(-79), Rad(0)) * angles(Rad(-15), Rad(0), Rad(10)), 0.2) | |
1952 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(45), Rad(-7.5 * Sin(sine / 20)), Rad(40)), 0.2) | |
1953 | 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(7.5 * Sin(sine / 20)), Rad(-25)), 0.2) | |
1954 | end | |
1955 | attack = false | |
1956 | Speed = 20 | |
1957 | end | |
1958 | ||
1959 | function specialchaos() | |
1960 | wait(0) | |
1961 | CHOICE = 6 | |
1962 | Cso("2545018472", hed, 10, 1) | |
1963 | local killsky = Instance.new('Sky', game:GetService'Lighting') | |
1964 | killsky.SkyboxBk = "rbxassetid://2579814215" | |
1965 | killsky.SkyboxDn = "rbxassetid://1539341292" | |
1966 | killsky.SkyboxFt = "rbxassetid://2579814215" | |
1967 | killsky.SkyboxLf = "rbxassetid://2579814215" | |
1968 | killsky.SkyboxRt = "rbxassetid://2579814215" | |
1969 | killsky.SkyboxUp = "rbxassetid://1539341292" | |
1970 | --- | |
1971 | killsky.StarCount = 0 | |
1972 | killsky.SunAngularSize = 0 | |
1973 | killsky.MoonAngularSize = 0 | |
1974 | killsky.MoonTextureId = "" | |
1975 | killsky.CelestialBodiesShown = false | |
1976 | if HITFLOOR ~= nil then | |
1977 | ATTACK = false | |
1978 | Rooted = false | |
1979 | local RINGSPIN = true | |
1980 | local CONSTRUCTING = true | |
1981 | local RING = CreatePart(3, Effects, "Neon", 0, 10, "Royal purple", "Ring", VT(0,0,0)) | |
1982 | RING.Color = C3(0,0,0) | |
1983 | MakeForm(RING,"Cyl") | |
1984 | RING.CFrame = CF(HITPOS) | |
1985 | coroutine.resume(coroutine.create(function() | |
1986 | repeat | |
1987 | Swait() | |
1988 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1989 | until CONSTRUCTING == false | |
1990 | repeat | |
1991 | Swait() | |
1992 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1993 | until RINGSPIN == false | |
1994 | for i = 1, 25 do | |
1995 | Swait() | |
1996 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1997 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1998 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1999 | RING.Transparency = RING.Transparency + 1/25 | |
2000 | end | |
2001 | RING:remove() | |
2002 | end)) | |
2003 | for i = 1, 15 do | |
2004 | Swait() | |
2005 | RING.Size = RING.Size + VT(0,0,0) | |
2006 | RING.Transparency = RING.Transparency - 1/15 | |
2007 | end | |
2008 | end | |
2009 | hum.WalkSpeed = 20 | |
2010 | attack = false | |
2011 | end | |
2012 | function icando() | |
2013 | attack = true | |
2014 | hum.WalkSpeed = 0 | |
2015 | TEST:Remove() | |
2016 | TEST:Play() | |
2017 | repeat | |
2018 | for i = 0,4,0.1 do | |
2019 | swait() | |
2020 | TEST.Parent = tors | |
2021 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2022 | 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) | |
2023 | 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) | |
2024 | 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) | |
2025 | 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) | |
2026 | 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) | |
2027 | end | |
2028 | until TEST.Playing == false | |
2029 | TEST:Stop() | |
2030 | TEST:Play() | |
2031 | TEST:Remove() | |
2032 | print('I CAN DO ANYTHING') | |
2033 | attack = false | |
2034 | hum.WalkSpeed = 20 | |
2035 | end | |
2036 | ||
2037 | function finalChaos2() | |
2038 | attack = true | |
2039 | M2.MeshId = "http://www.roblox.com/asset/?id=28140935" | |
2040 | M2.TextureId = "http://www.roblox.com/asset/?id=50252366" | |
2041 | M2.Scale = Vector3.new(5, 5, 5) | |
2042 | Cso("2545018472", hed, 10, 1) | |
2043 | for i = 0, 15, 0.1 do | |
2044 | swait() | |
2045 | hum.CameraOffset = Vector3.new(0, 8, 0) | |
2046 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2047 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2048 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(-20)), 0.2) | |
2049 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-16.5), Rad(0), Rad(20)), 0.2) | |
2050 | RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(180), Rad(0), Rad(15)), 0.2) | |
2051 | 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(-30), Rad(-90)), 0.2) | |
2052 | end | |
2053 | Cso("483458132", char, 10, .7) | |
2054 | Cso("483458132", char, 10, 1) | |
2055 | CameraEnshaking(6, 65) | |
2056 | Effects.Wave.Create(BrickColor.new("Royal Purple"), 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) | |
2057 | Effects.Wave.Create(BrickColor.new("Really 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) | |
2058 | Effects.Wave.Create(BrickColor.new("Royal Purple"), 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) | |
2059 | Effects.Ring.Create(BrickColor.new("Really 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) | |
2060 | Effects.Sphere.Create(BrickColor.new("Royal Purple"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04) | |
2061 | Effects.Sphere.Create(BrickColor.new("Really white"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02) | |
2062 | Effects.Sphere.Create(BrickColor.new("Royal Purple"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01) | |
2063 | Magic(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, BrickColor.new("Royal Purple"), "Sphere") | |
2064 | Magic(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, BrickColor.new("Royal Purple"), "Sphere") | |
2065 | Magic(1, "Add", root.CFrame, Vector3.new(1, 100000, 1), 0.5, BrickColor.new("Really white"), "Sphere") | |
2066 | Magic(1, "Add", root.CFrame, Vector3.new(1, 1, 1), 0.75, BrickColor.new("Really white"), "Sphere") | |
2067 | for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 99999999999.5)) do | |
2068 | if v:FindFirstChild("Head") then | |
2069 | Eviscerate(v) | |
2070 | end | |
2071 | end | |
2072 | for i = 0, 15, 0.1 do | |
2073 | swait() | |
2074 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2075 | tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(45 - 7.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.2) | |
2076 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-45)), 0.2) | |
2077 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(45)), 0.2) | |
2078 | RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-.6), Rad(-45)), 0.2) | |
2079 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(-325), Rad(-6), Rad(45)), 0.2) | |
2080 | end | |
2081 | M2.Scale = Vector3.new(1, 1, 1) | |
2082 | M2.MeshId = "http://www.roblox.com/asset/?id=0" | |
2083 | M2.TextureId = "http://www.roblox.com/asset/?id=0" | |
2084 | attack = false | |
2085 | end | |
2086 | ||
2087 | function DRAG_THEM_TO_HELL() | |
2088 | if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2089 | local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2090 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2091 | local HEAD = HUM.Parent:FindFirstChild("Head") | |
2092 | if HEAD and TORSO and HUM.Health > 0 then | |
2093 | local GYRO = IT("BodyGyro",root) | |
2094 | GYRO.D = 275 | |
2095 | GYRO.P = 20000 | |
2096 | GYRO.MaxTorque = Vector3.new(0,40000,0) | |
2097 | attack = true | |
2098 | hum.WalkSpeed = 0 | |
2099 | local hit,pos,hummie; | |
2100 | local Hook = Part(EffectModel, Color3.new(),Enum.Material.Neon,Vector3.new(.05,.05,.05),root.CFrame,true,false) | |
2101 | Hook.Transparency = 1 | |
2102 | local A = NewInstance("Attachment",Hook) | |
2103 | local B = NewInstance("Attachment",la,{Position = Vector3.new(0,-ra.Size.Y/2,0)}) | |
2104 | 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}) | |
2105 | local POS = mouse.Hit.p | |
2106 | local CHAINS = false | |
2107 | local CHAINLINKS = {} | |
2108 | local A = IT("Attachment",la) | |
2109 | A.Position = Vector3.new(1,-1,0)*Player_Size | |
2110 | A.Orientation = Vector3.new(-90, -89.982, 0) | |
2111 | local B = IT("Attachment",la) | |
2112 | B.Position = Vector3.new(-1,-1,0)*Player_Size | |
2113 | B.Orientation = Vector3.new(-90, 89.988, 0) | |
2114 | local C = IT("Attachment",la) | |
2115 | C.Position = Vector3.new(0.5,-1.3,0)*Player_Size | |
2116 | C.Orientation = Vector3.new(-90, -89.982, 0) | |
2117 | local D = IT("Attachment",la) | |
2118 | D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size | |
2119 | D.Orientation = Vector3.new(-90, 89.988, 0) | |
2120 | local LIGHT = IT("Attachment",la) | |
2121 | LIGHT.Position = Vector3.new(0,-1,0)*Player_Size | |
2122 | local LIGHT2 = IT("PointLight",LIGHT) | |
2123 | LIGHT2.Range = 7 | |
2124 | LIGHT2.Brightness = 5 | |
2125 | LIGHT2.Color = Color3.new(0,0,0) | |
2126 | for i = 1, 2 do | |
2127 | local TWIST = -2 | |
2128 | local START = A | |
2129 | local END = B | |
2130 | if i == 1 then | |
2131 | START = B | |
2132 | END = A | |
2133 | end | |
2134 | local ChainLink = IT("Beam",tors) | |
2135 | ChainLink.Texture = "rbxassetid://73042633" | |
2136 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138)) | |
2137 | ChainLink.TextureSpeed = 1 | |
2138 | ChainLink.Width0 = 1 | |
2139 | ChainLink.Width1 = 1 | |
2140 | ChainLink.TextureLength = 2.5 | |
2141 | ChainLink.Attachment0 = START | |
2142 | ChainLink.Attachment1 = END | |
2143 | ChainLink.CurveSize0 = TWIST | |
2144 | ChainLink.CurveSize1 = TWIST | |
2145 | --ChainLink.FaceCamera = true | |
2146 | ChainLink.Segments = 45 | |
2147 | ChainLink.Transparency = NumberSequence.new(0.25) | |
2148 | table.insert(CHAINLINKS,ChainLink) | |
2149 | end | |
2150 | for i = 1, 2 do | |
2151 | local TWIST = -1 | |
2152 | local START = C | |
2153 | local END = D | |
2154 | if i == 1 then | |
2155 | START = D | |
2156 | END = C | |
2157 | end | |
2158 | local ChainLink = IT("Beam",tors) | |
2159 | ChainLink.Texture = "rbxassetid://73042633" | |
2160 | ChainLink.Color = ColorSequence.new(Color3.fromRGB(138,138,138)) | |
2161 | ChainLink.TextureSpeed = 1 | |
2162 | ChainLink.Width0 = 1 | |
2163 | ChainLink.Width1 = 1 | |
2164 | ChainLink.TextureLength = 5 | |
2165 | ChainLink.Attachment0 = START | |
2166 | ChainLink.Attachment1 = END | |
2167 | ChainLink.CurveSize0 = TWIST | |
2168 | ChainLink.CurveSize1 = TWIST | |
2169 | --ChainLink.FaceCamera = true | |
2170 | ChainLink.Segments = 25 | |
2171 | ChainLink.LightEmission = 0.5 | |
2172 | ChainLink.Transparency = NumberSequence.new(0.25) | |
2173 | table.insert(CHAINLINKS,ChainLink) | |
2174 | end | |
2175 | for i = 0, 2.3, .1 do | |
2176 | swait() | |
2177 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
2178 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2179 | 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) | |
2180 | 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) | |
2181 | 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) | |
2182 | 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) | |
2183 | 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) | |
2184 | end | |
2185 | Cso("169105657", ra, 7, 1.2) | |
2186 | for i = 0, 4, .1 do | |
2187 | if(hit)then break end | |
2188 | swait() | |
2189 | GYRO.cframe = CF(root.Position,TORSO.Position) | |
2190 | Hook.CFrame = HEAD.CFrame | |
2191 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2192 | 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) | |
2193 | 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) | |
2194 | 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) | |
2195 | 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) | |
2196 | 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) | |
2197 | end | |
2198 | for _,v in next, getRegion(Hook.Position,1,{char}) do | |
2199 | if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then | |
2200 | hit = GetTorso(v.Parent); | |
2201 | hummie = v.Parent:FindFirstChildOfClass'Humanoid'; | |
2202 | break; | |
2203 | end | |
2204 | end | |
2205 | Cso("169105657", ra, 5, .8) | |
2206 | Cso("131228548", tors, 2, 1.1) | |
2207 | GYRO:remove() | |
2208 | for i = 0, 3, .1 do | |
2209 | swait() | |
2210 | HUM.PlatformStand = true | |
2211 | Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2) | |
2212 | if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new() | |
2213 | end | |
2214 | if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then | |
2215 | break | |
2216 | end | |
2217 | Chain.TextureLength = 4 | |
2218 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2219 | 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) | |
2220 | 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) | |
2221 | 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) | |
2222 | 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) | |
2223 | 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) | |
2224 | end | |
2225 | hum.WalkSpeed = 16 | |
2226 | attack = false | |
2227 | Hook:Destroy() | |
2228 | A:remove() | |
2229 | B:remove() | |
2230 | C:remove() | |
2231 | D:remove() | |
2232 | end | |
2233 | end | |
2234 | end | |
2235 | ||
2236 | ------------------------------------------------------- | |
2237 | --End Attacks N Stuff-- | |
2238 | ------------------------------------------------------- | |
2239 | mouse.KeyDown:connect(function(key) | |
2240 | if attack == false then | |
2241 | if key == "t" then | |
2242 | dance() | |
2243 | elseif key == 'y' then | |
2244 | aaa() | |
2245 | elseif key == "p" then | |
2246 | finalChaos() | |
2247 | elseif key == "z" then | |
2248 | beam() | |
2249 | elseif key == "x" then | |
2250 | Call_Upon_The_Eyes() | |
2251 | elseif key == "v" then | |
2252 | dejzrXD() | |
2253 | elseif key == "b" then | |
2254 | specialchaos() | |
2255 | elseif key == "n" then | |
2256 | CHAOS() | |
2257 | elseif key == "f" then | |
2258 | icando() | |
2259 | elseif key == "h" then | |
2260 | finalChaos2() | |
2261 | elseif key == "g" then | |
2262 | Chain2() | |
2263 | elseif key == "c" then | |
2264 | DRAG_THEM_TO_HELL() | |
2265 | end | |
2266 | end | |
2267 | end) | |
2268 | ||
2269 | mouse.Button1Down:connect(function(key) | |
2270 | if attack == false then | |
2271 | die() | |
2272 | end | |
2273 | end) | |
2274 | ||
2275 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
2276 | local part = Instance.new("Part") | |
2277 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(0,0,0) | |
2278 | part.Material = material or Enum.Material.SmoothPlastic | |
2279 | part.TopSurface,part.BottomSurface=10,10 | |
2280 | part.Size = size or Vector3.new(1,1,1) | |
2281 | part.CFrame = cframe or CF(0,0,0) | |
2282 | part.Anchored = anchored or true | |
2283 | part.CanCollide = cancollide or false | |
2284 | part.Parent = parent or char | |
2285 | return part | |
2286 | end | |
2287 | ||
2288 | NewInstance = function(instance,parent,properties) | |
2289 | local inst = Instance.new(instance) | |
2290 | inst.Parent = parent | |
2291 | if(properties)then | |
2292 | for i,v in next, properties do | |
2293 | pcall(function() inst[i] = v end) | |
2294 | end | |
2295 | end | |
2296 | return inst; | |
2297 | end | |
2298 | ------------------------------------------------------- | |
2299 | --Start Damage Function-- | |
2300 | ------------------------------------------------------- | |
2301 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) --Thanks, Star Glitcher! | |
2302 | local type = type | |
2303 | local rng = Instance.new("Part", char) | |
2304 | rng.Anchored = true | |
2305 | rng.BrickColor = color | |
2306 | rng.CanCollide = false | |
2307 | rng.FormFactor = 3 | |
2308 | rng.Name = "Ring" | |
2309 | rng.Material = "Neon" | |
2310 | rng.Size = Vector3.new(1, 1, 1) | |
2311 | rng.Transparency = 0 | |
2312 | rng.TopSurface = 0 | |
2313 | rng.BottomSurface = 0 | |
2314 | rng.CFrame = pos | |
2315 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2316 | local rngm = Instance.new("SpecialMesh", rng) | |
2317 | rngm.MeshType = "Brick" | |
2318 | if rainbowmode == true then | |
2319 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2320 | end | |
2321 | local scaler2 = 1 | |
2322 | local speeder = FastSpeed/10 | |
2323 | if type == "Add" then | |
2324 | scaler2 = 1*value | |
2325 | elseif type == "Divide" then | |
2326 | scaler2 = 1/value | |
2327 | end | |
2328 | coroutine.resume(coroutine.create(function() | |
2329 | for i = 0,10/bonuspeed,0.1 do | |
2330 | swait() | |
2331 | if type == "Add" then | |
2332 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2333 | elseif type == "Divide" then | |
2334 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2335 | end | |
2336 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2337 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2338 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2339 | end | |
2340 | rng:Destroy() | |
2341 | end)) | |
2342 | end | |
2343 | ||
2344 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
2345 | if hit.Parent == nil then | |
2346 | return | |
2347 | end | |
2348 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
2349 | for _, v in pairs(hit.Parent:children()) do | |
2350 | if v:IsA("Humanoid") then | |
2351 | h = v | |
2352 | end | |
2353 | end | |
2354 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
2355 | ||
2356 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
2357 | end | |
2358 | ||
2359 | if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
2360 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
2361 | if hit.Parent.DebounceHit.Value == true then | |
2362 | return | |
2363 | end | |
2364 | end | |
2365 | if insta == true then | |
2366 | hit.Parent:FindFirstChild("Head"):BreakJoints() | |
2367 | end | |
2368 | local c = Create("ObjectValue"){ | |
2369 | Name = "creator", | |
2370 | - | Value = game:service("Players").CerealKiller223, |
2370 | + | Value = game:service("Players").scripttester0617, |
2371 | Parent = h, | |
2372 | } | |
2373 | game:GetService("Debris"):AddItem(c, .5) | |
2374 | if HitSound ~= nil and HitPitch ~= nil then | |
2375 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
2376 | end | |
2377 | local Damage = math.random(minim, maxim) | |
2378 | local blocked = false | |
2379 | local block = hit.Parent:findFirstChild("Block") | |
2380 | if block ~= nil then | |
2381 | if block.className == "IntValue" then | |
2382 | if block.Value > 0 then | |
2383 | blocked = true | |
2384 | block.Value = block.Value - 1 | |
2385 | print(block.Value) | |
2386 | end | |
2387 | end | |
2388 | end | |
2389 | if blocked == false then | |
2390 | h.Health = h.Health - Damage | |
2391 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
2392 | else | |
2393 | h.Health = h.Health - (Damage / 2) | |
2394 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color) | |
2395 | end | |
2396 | if Type == "Knockdown" then | |
2397 | local hum = hit.Parent.Humanoid | |
2398 | hum.PlatformStand = true | |
2399 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2400 | swait(1) | |
2401 | HHumanoid.PlatformStand = false | |
2402 | end), hum) | |
2403 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
2404 | local bodvol = Create("BodyVelocity"){ | |
2405 | velocity = angle * knockback, | |
2406 | P = 5000, | |
2407 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2408 | Parent = hit, | |
2409 | } | |
2410 | local rl = Create("BodyAngularVelocity"){ | |
2411 | P = 3000, | |
2412 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
2413 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
2414 | Parent = hit, | |
2415 | } | |
2416 | game:GetService("Debris"):AddItem(bodvol, .5) | |
2417 | game:GetService("Debris"):AddItem(rl, .5) | |
2418 | elseif Type == "Normal" then | |
2419 | local vp = Create("BodyVelocity"){ | |
2420 | P = 500, | |
2421 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
2422 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
2423 | } | |
2424 | if knockback > 0 then | |
2425 | vp.Parent = hit.Parent.Torso | |
2426 | end | |
2427 | game:GetService("Debris"):AddItem(vp, .5) | |
2428 | elseif Type == "Up" then | |
2429 | local bodyVelocity = Create("BodyVelocity"){ | |
2430 | velocity = Vector3.new(0, 20, 0), | |
2431 | P = 5000, | |
2432 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2433 | Parent = hit, | |
2434 | } | |
2435 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
2436 | elseif Type == "DarkUp" then | |
2437 | coroutine.resume(coroutine.create(function() | |
2438 | for i = 0, 1, 0.1 do | |
2439 | swait() | |
2440 | Effects.Block.Create(BrickColor.new("Royal purple"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
2441 | end | |
2442 | end)) | |
2443 | local bodyVelocity = Create("BodyVelocity"){ | |
2444 | velocity = Vector3.new(0, 20, 0), | |
2445 | P = 5000, | |
2446 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
2447 | Parent = hit, | |
2448 | } | |
2449 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
2450 | elseif Type == "Snare" then | |
2451 | local bp = Create("BodyPosition"){ | |
2452 | P = 2000, | |
2453 | D = 100, | |
2454 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2455 | position = hit.Parent.Torso.Position, | |
2456 | Parent = hit.Parent.Torso, | |
2457 | } | |
2458 | game:GetService("Debris"):AddItem(bp, 1) | |
2459 | elseif Type == "Freeze" then | |
2460 | local BodPos = Create("BodyPosition"){ | |
2461 | P = 50000, | |
2462 | D = 1000, | |
2463 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
2464 | position = hit.Parent.Torso.Position, | |
2465 | Parent = hit.Parent.Torso, | |
2466 | } | |
2467 | local BodGy = Create("BodyGyro") { | |
2468 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
2469 | P = 20e+003, | |
2470 | Parent = hit.Parent.Torso, | |
2471 | cframe = hit.Parent.Torso.CFrame, | |
2472 | } | |
2473 | hit.Parent.Torso.Anchored = true | |
2474 | coroutine.resume(coroutine.create(function(Part) | |
2475 | swait(1.5) | |
2476 | Part.Anchored = false | |
2477 | end), hit.Parent.Torso) | |
2478 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2479 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2480 | end | |
2481 | local debounce = Create("BoolValue"){ | |
2482 | Name = "DebounceHit", | |
2483 | Parent = hit.Parent, | |
2484 | Value = true, | |
2485 | } | |
2486 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2487 | c = Create("ObjectValue"){ | |
2488 | Name = "creator", | |
2489 | Value = Player, | |
2490 | Parent = h, | |
2491 | } | |
2492 | game:GetService("Debris"):AddItem(c, .5) | |
2493 | end | |
2494 | end | |
2495 | ||
2496 | function damage(range,mindam,maxdam,pos) | |
2497 | for i,v in ipairs(workspace:GetChildren()) do | |
2498 | if v:IsA("Model") then | |
2499 | if v.Name ~= Player.Name then | |
2500 | if v:FindFirstChildOfClass("Humanoid") then | |
2501 | if v:FindFirstChild("Head") then | |
2502 | if (v:FindFirstChild("Head").Position - pos).magnitude < 10 then | |
2503 | if v:FindFirstChildOfClass("Humanoid").Health > 5000 then v:FindFirstChildOfClass("Humanoid").Health = 0 else | |
2504 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - math.random(mindam,maxdam) | |
2505 | end | |
2506 | end | |
2507 | end | |
2508 | end | |
2509 | end | |
2510 | end | |
2511 | end | |
2512 | end | |
2513 | ------------------------------------------------------- | |
2514 | --End Damage Function-- | |
2515 | ------------------------------------------------------- | |
2516 | ||
2517 | ------------------------------------------------------- | |
2518 | --Start Animations-- | |
2519 | ------------------------------------------------------- | |
2520 | print("By Makhail07") | |
2521 | while true do | |
2522 | swait() | |
2523 | sine = sine + change | |
2524 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2525 | local velderp = root.Velocity.y | |
2526 | hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char) | |
2527 | if equipped == true or equipped == false then | |
2528 | if attack == false then | |
2529 | idle = idle + 1 | |
2530 | else | |
2531 | idle = 0 | |
2532 | end | |
2533 | if 1 < root.Velocity.y and hitfloor == nil then | |
2534 | Anim = "Jump" | |
2535 | if attack == false then | |
2536 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2537 | 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) | |
2538 | 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) | |
2539 | 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) | |
2540 | 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) | |
2541 | 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) | |
2542 | end | |
2543 | elseif -1 > root.Velocity.y and hitfloor == nil then | |
2544 | Anim = "Fall" | |
2545 | if attack == false then | |
2546 | 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) | |
2547 | 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) | |
2548 | 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) | |
2549 | 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) | |
2550 | 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) | |
2551 | 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) | |
2552 | end | |
2553 | elseif torvel < 1 and hitfloor ~= nil then | |
2554 | Anim = "Idle" | |
2555 | change = 1 | |
2556 | if attack == false then | |
2557 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17) | |
2558 | 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) | |
2559 | RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 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) | |
2560 | LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 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) | |
2561 | RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(20), Rad(-.6), Rad(43 + 4.5 * Sin(sine / 12))), 0.1) | |
2562 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2563 | end | |
2564 | elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then | |
2565 | Anim = "Walk" | |
2566 | change = 1 | |
2567 | if attack == false then | |
2568 | rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(3 * Cos(sine / 7))), 0.15) | |
2569 | tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(6 - 2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
2570 | RH.C0 = clerp(RH.C0, CF(1, -0.8 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2571 | LH.C0 = clerp(LH.C0, CF(-1, -0.8 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 3 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3) | |
2572 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1) | |
2573 | LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12) | |
2574 | end | |
2575 | elseif torvel >= 25 and hitfloor ~= nil then | |
2576 | Anim = "Sprint" | |
2577 | change = 1.35 | |
2578 | if attack == false then | |
2579 | 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) | |
2580 | 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) | |
2581 | 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) | |
2582 | 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) | |
2583 | 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) | |
2584 | end | |
2585 | end | |
2586 | end | |
2587 | if 0 < #Effects then | |
2588 | for e = 1, #Effects do | |
2589 | if Effects[e] ~= nil then | |
2590 | local Thing = Effects[e] | |
2591 | if Thing ~= nil then | |
2592 | local Part = Thing[1] | |
2593 | local Mode = Thing[2] | |
2594 | local Delay = Thing[3] | |
2595 | local IncX = Thing[4] | |
2596 | local IncY = Thing[5] | |
2597 | local IncZ = Thing[6] | |
2598 | if 1 >= Thing[1].Transparency then | |
2599 | if Thing[2] == "Block1" then | |
2600 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2601 | local Mesh = Thing[1].Mesh | |
2602 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2603 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2604 | elseif Thing[2] == "Block2" then | |
2605 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
2606 | local Mesh = Thing[7] | |
2607 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2608 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2609 | elseif Thing[2] == "Block3" then | |
2610 | 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) | |
2611 | local Mesh = Thing[7] | |
2612 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2613 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2614 | elseif Thing[2] == "Cylinder" then | |
2615 | local Mesh = Thing[1].Mesh | |
2616 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2617 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2618 | elseif Thing[2] == "Blood" then | |
2619 | local Mesh = Thing[7] | |
2620 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
2621 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2622 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2623 | elseif Thing[2] == "Elec" then | |
2624 | local Mesh = Thing[1].Mesh | |
2625 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2626 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2627 | elseif Thing[2] == "Disappear" then | |
2628 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2629 | elseif Thing[2] == "Shatter" then | |
2630 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2631 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2632 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2633 | Thing[6] = Thing[6] + Thing[5] | |
2634 | end | |
2635 | else | |
2636 | Part.Parent = nil | |
2637 | table.remove(Effects, e) | |
2638 | end | |
2639 | end | |
2640 | end | |
2641 | end | |
2642 | end | |
2643 | end | |
2644 | ------------------------------------------------------- | |
2645 | --End Animations And Script-- | |
2646 | ------------------------------------------------------ |