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