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