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