SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") | |
141 | ||
142 | local cR=255 | |
143 | local cG=0 | |
144 | local cB=0 | |
145 | local flg5=1 local omgidk=1 | |
146 | local add=7.5 | |
147 | game:GetService("RunService"):BindToRenderStep("Ghost",1,function() | |
148 | if omgidk>10000 then omgidk=0 end | |
149 | omgidk=omgidk+1 | |
150 | if cR>=255 then flg5=1 end | |
151 | if cG>=255 then flg5=2 end | |
152 | if cB>=255 then flg5=3 end | |
153 | if flg5==1 then cR=cR-add cG=cG+add end | |
154 | if flg5==2 then cG=cG-add cB=cB+add end | |
155 | if flg5==3 then cB=cB-add cR=cR+add end | |
156 | color = Color3.fromRGB(cR,cG,cB) | |
157 | end) | |
158 | ||
159 | --//====================================================\\-- | |
160 | --|| CREATED BY SHACKLUSTER | |
161 | --\\====================================================//-- | |
162 | ||
163 | print("------------------------------------------------") | |
164 | ||
165 | print("Script created by Shackluster") | |
166 | print("Edit by 1x1x1x1x1x1x1x0x0x2") | |
167 | print("Script.name = What you glove.") | |
168 | ||
169 | print("------------------------------------------------") | |
170 | wait(0.2) | |
171 | ||
172 | ||
173 | ||
174 | Player = game:GetService("Players").LocalPlayer | |
175 | PlayerGui = Player.PlayerGui | |
176 | Cam = workspace.CurrentCamera | |
177 | Backpack = Player.Backpack | |
178 | Character = Player.Character | |
179 | Humanoid = Character.Humanoid | |
180 | Mouse = Player:GetMouse() | |
181 | RootPart = Character["HumanoidRootPart"] | |
182 | Torso = Character["Torso"] | |
183 | Head = Character["Head"] | |
184 | RightArm = Character["Right Arm"] | |
185 | LeftArm = Character["Left Arm"] | |
186 | RightLeg = Character["Right Leg"] | |
187 | LeftLeg = Character["Left Leg"] | |
188 | RootJoint = RootPart["RootJoint"] | |
189 | Neck = Torso["Neck"] | |
190 | RightShoulder = Torso["Right Shoulder"] | |
191 | LeftShoulder = Torso["Left Shoulder"] | |
192 | RightHip = Torso["Right Hip"] | |
193 | LeftHip = Torso["Left Hip"] | |
194 | local sick = Instance.new("Sound",Character) | |
195 | sick.SoundId = "rbxassetid://165704299" | |
196 | sick.Looped = true | |
197 | sick.Pitch = 1 | |
198 | sick.Volume = 1 | |
199 | sick:Play() | |
200 | ||
201 | IT = Instance.new | |
202 | CF = CFrame.new | |
203 | VT = Vector3.new | |
204 | RAD = math.rad | |
205 | C3 = Color3.new | |
206 | UD2 = UDim2.new | |
207 | BRICKC = BrickColor.new | |
208 | ANGLES = CFrame.Angles | |
209 | EULER = CFrame.fromEulerAnglesXYZ | |
210 | COS = math.cos | |
211 | ACOS = math.acos | |
212 | SIN = math.sin | |
213 | ASIN = math.asin | |
214 | ABS = math.abs | |
215 | MRANDOM = math.random | |
216 | FLOOR = math.floor | |
217 | ||
218 | yee = Instance.new("ForceField", Character) | |
219 | yee.Visible = false | |
220 | ||
221 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
222 | local NEWMESH = IT(MESH) | |
223 | if MESH == "SpecialMesh" then | |
224 | NEWMESH.MeshType = MESHTYPE | |
225 | if MESHID ~= "nil" and MESHID ~= "" then | |
226 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
227 | end | |
228 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
229 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
230 | end | |
231 | end | |
232 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
233 | NEWMESH.Scale = SCALE | |
234 | NEWMESH.Parent = PARENT | |
235 | return NEWMESH | |
236 | end | |
237 | ||
238 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
239 | local NEWPART = IT("Part") | |
240 | NEWPART.formFactor = FORMFACTOR | |
241 | NEWPART.Reflectance = REFLECTANCE | |
242 | NEWPART.Transparency = TRANSPARENCY | |
243 | NEWPART.CanCollide = false | |
244 | NEWPART.Locked = true | |
245 | NEWPART.Anchored = true | |
246 | if ANCHOR == false then | |
247 | NEWPART.Anchored = false | |
248 | end | |
249 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
250 | NEWPART.Name = NAME | |
251 | NEWPART.Size = SIZE | |
252 | NEWPART.Position = Torso.Position | |
253 | NEWPART.Material = MATERIAL | |
254 | NEWPART:BreakJoints() | |
255 | NEWPART.Parent = PARENT | |
256 | return NEWPART | |
257 | end | |
258 | ||
259 | --//=================================\\ | |
260 | --|| CUSTOMIZATION | |
261 | --\\=================================// | |
262 | ||
263 | Player_Size = 1 --Size of the player. | |
264 | Animation_Speed = 3 | |
265 | Animation_Speed2 = 0.8 | |
266 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
267 | ||
268 | local Speed = 20 | |
269 | local Effects2 = {} | |
270 | ||
271 | --//=================================\\ | |
272 | --|| END OF CUSTOMIZATION | |
273 | --\\=================================// | |
274 | ||
275 | local function weldBetween(a, b) | |
276 | local weldd = Instance.new("ManualWeld") | |
277 | weldd.Part0 = a | |
278 | weldd.Part1 = b | |
279 | weldd.C0 = CFrame.new() | |
280 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
281 | weldd.Parent = a | |
282 | return weldd | |
283 | end | |
284 | ||
285 | --//=================================\\ | |
286 | --|| USEFUL VALUES | |
287 | --\\=================================// | |
288 | ||
289 | local CO1 = 0 | |
290 | local CO2 = 0 | |
291 | local CO3 = 0 | |
292 | local CO4 = 0 | |
293 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
294 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
295 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
296 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
297 | local CHANGEDEFENSE = 0 | |
298 | local CHANGEDAMAGE = 0 | |
299 | local CHANGEMOVEMENT = 0 | |
300 | local ANIM = "Idle" | |
301 | local ATTACK = false | |
302 | local EQUIPPED = false | |
303 | local HOLD = false | |
304 | local COMBO = 1 | |
305 | local Rooted = false | |
306 | local SINE = 0 | |
307 | local KEYHOLD = false | |
308 | local BLCF = nil | |
309 | local SCFR = nil | |
310 | local STAGGERHITANIM = false | |
311 | local STAGGERANIM = false | |
312 | local STUNANIM = false | |
313 | local CRITCHANCENUMBER = 0 | |
314 | local IDLENUMBER = 0 | |
315 | local DONUMBER = 0 | |
316 | local HANDIDLE = false | |
317 | local CHANGE = 2 / Animation_Speed | |
318 | local WALKINGANIM = false | |
319 | local WALK = 0 | |
320 | local VALUE1 = false | |
321 | local VALUE2 = false | |
322 | local DISABLEJUMPING = false | |
323 | local HASBEENBLOCKED = false | |
324 | local STUNDELAYNUMBER = 0 | |
325 | local MANADELAYNUMBER = 0 | |
326 | local SECONDARYMANADELAYNUMBER = 0 | |
327 | local ROBLOXIDLEANIMATION = IT("Animation") | |
328 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
329 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
330 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
331 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
332 | WEAPONGUI.Name = "Weapon GUI" | |
333 | local Weapon = IT("Model") | |
334 | Weapon.Name = "Adds" | |
335 | local HITFLOOR = nil | |
336 | local Effects = IT("Folder", Weapon) | |
337 | Effects.Name = "Effects" | |
338 | local ANIMATOR = Humanoid.Animator | |
339 | local ANIMATE = Character.Animate | |
340 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
341 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
342 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
343 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
344 | local UNANCHOR = true | |
345 | local HURTSOUND = "1080625252" | |
346 | local DEATHSOUNDS = {"340963282", "340963317"} | |
347 | ||
348 | local SKILLTEXTCOLOR = C3(239/255, 184/255, 56/255) | |
349 | local CHOSENBRICK = "Gold" | |
350 | local CHOSENBRICK1 = "White" | |
351 | local CHOSENBRICK2 = "Gold" | |
352 | ||
353 | --//=================================\\ | |
354 | --\\=================================// | |
355 | ||
356 | ||
357 | --//=================================\\ | |
358 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
359 | --\\=================================// | |
360 | ||
361 | ArtificialHB = Instance.new("BindableEvent", script) | |
362 | ArtificialHB.Name = "ArtificialHB" | |
363 | ||
364 | script:WaitForChild("ArtificialHB") | |
365 | ||
366 | frame = Frame_Speed | |
367 | tf = 0 | |
368 | allowframeloss = false | |
369 | tossremainder = false | |
370 | lastframe = tick() | |
371 | script.ArtificialHB:Fire() | |
372 | ||
373 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
374 | tf = tf + s | |
375 | if tf >= frame then | |
376 | if allowframeloss then | |
377 | script.ArtificialHB:Fire() | |
378 | lastframe = tick() | |
379 | else | |
380 | for i = 1, math.floor(tf / frame) do | |
381 | script.ArtificialHB:Fire() | |
382 | end | |
383 | lastframe = tick() | |
384 | end | |
385 | if tossremainder then | |
386 | tf = 0 | |
387 | else | |
388 | tf = tf - frame * math.floor(tf / frame) | |
389 | end | |
390 | end | |
391 | end) | |
392 | ||
393 | --//=================================\\ | |
394 | --\\=================================// | |
395 | ||
396 | ||
397 | ||
398 | ||
399 | ||
400 | --//=================================\\ | |
401 | --|| SOME FUNCTIONS | |
402 | --\\=================================// | |
403 | ||
404 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
405 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
406 | end | |
407 | ||
408 | function PositiveAngle(NUMBER) | |
409 | if NUMBER >= 0 then | |
410 | NUMBER = 0 | |
411 | end | |
412 | return NUMBER | |
413 | end | |
414 | ||
415 | function NegativeAngle(NUMBER) | |
416 | if NUMBER <= 0 then | |
417 | NUMBER = 0 | |
418 | end | |
419 | return NUMBER | |
420 | end | |
421 | ||
422 | function Swait(NUMBER) | |
423 | if NUMBER == 0 or NUMBER == nil then | |
424 | ArtificialHB.Event:wait() | |
425 | else | |
426 | for i = 1, NUMBER do | |
427 | ArtificialHB.Event:wait() | |
428 | end | |
429 | end | |
430 | end | |
431 | ||
432 | function QuaternionFromCFrame(cf) | |
433 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
434 | local trace = m00 + m11 + m22 | |
435 | if trace > 0 then | |
436 | local s = math.sqrt(1 + trace) | |
437 | local recip = 0.5 / s | |
438 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
439 | else | |
440 | local i = 0 | |
441 | if m11 > m00 then | |
442 | i = 1 | |
443 | end | |
444 | if m22 > (i == 0 and m00 or m11) then | |
445 | i = 2 | |
446 | end | |
447 | if i == 0 then | |
448 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
449 | local recip = 0.5 / s | |
450 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
451 | elseif i == 1 then | |
452 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
453 | local recip = 0.5 / s | |
454 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
455 | elseif i == 2 then | |
456 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
457 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
458 | end | |
459 | end | |
460 | end | |
461 | ||
462 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
463 | local xs, ys, zs = x + x, y + y, z + z | |
464 | local wx, wy, wz = w * xs, w * ys, w * zs | |
465 | local xx = x * xs | |
466 | local xy = x * ys | |
467 | local xz = x * zs | |
468 | local yy = y * ys | |
469 | local yz = y * zs | |
470 | local zz = z * zs | |
471 | 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)) | |
472 | end | |
473 | ||
474 | function QuaternionSlerp(a, b, t) | |
475 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
476 | local startInterp, finishInterp; | |
477 | if cosTheta >= 0.0001 then | |
478 | if (1 - cosTheta) > 0.0001 then | |
479 | local theta = ACOS(cosTheta) | |
480 | local invSinTheta = 1 / SIN(theta) | |
481 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
482 | finishInterp = SIN(t * theta) * invSinTheta | |
483 | else | |
484 | startInterp = 1 - t | |
485 | finishInterp = t | |
486 | end | |
487 | else | |
488 | if (1 + cosTheta) > 0.0001 then | |
489 | local theta = ACOS(-cosTheta) | |
490 | local invSinTheta = 1 / SIN(theta) | |
491 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
492 | finishInterp = SIN(t * theta) * invSinTheta | |
493 | else | |
494 | startInterp = t - 1 | |
495 | finishInterp = t | |
496 | end | |
497 | end | |
498 | 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 | |
499 | end | |
500 | ||
501 | function Clerp(a, b, t) | |
502 | local qa = {QuaternionFromCFrame(a)} | |
503 | local qb = {QuaternionFromCFrame(b)} | |
504 | local ax, ay, az = a.x, a.y, a.z | |
505 | local bx, by, bz = b.x, b.y, b.z | |
506 | local _t = 1 - t | |
507 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
508 | end | |
509 | ||
510 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
511 | local frame = IT("Frame") | |
512 | frame.BackgroundTransparency = TRANSPARENCY | |
513 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
514 | frame.Position = POSITION | |
515 | frame.Size = SIZE | |
516 | frame.BackgroundColor3 = COLOR | |
517 | frame.BorderColor3 = BORDERCOLOR | |
518 | frame.Name = NAME | |
519 | frame.Parent = PARENT | |
520 | return frame | |
521 | end | |
522 | ||
523 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
524 | local label = IT("TextLabel") | |
525 | label.BackgroundTransparency = 1 | |
526 | label.Size = UD2(1, 0, 1, 0) | |
527 | label.Position = UD2(0, 0, 0, 0) | |
528 | label.TextColor3 = TEXTCOLOR | |
529 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
530 | label.TextTransparency = TRANSPARENCY | |
531 | label.FontSize = TEXTFONTSIZE | |
532 | label.Font = TEXTFONT | |
533 | label.BorderSizePixel = BORDERSIZEPIXEL | |
534 | label.TextScaled = false | |
535 | label.Text = TEXT | |
536 | label.Name = NAME | |
537 | label.Parent = PARENT | |
538 | return label | |
539 | end | |
540 | ||
541 | function NoOutlines(PART) | |
542 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
543 | end | |
544 | ||
545 | ||
546 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
547 | local NEWWELD = IT(TYPE) | |
548 | NEWWELD.Part0 = PART0 | |
549 | NEWWELD.Part1 = PART1 | |
550 | NEWWELD.C0 = C0 | |
551 | NEWWELD.C1 = C1 | |
552 | NEWWELD.Parent = PARENT | |
553 | return NEWWELD | |
554 | end | |
555 | ||
556 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
557 | local NEWSOUND = nil | |
558 | coroutine.resume(coroutine.create(function() | |
559 | NEWSOUND = IT("Sound", PARENT) | |
560 | NEWSOUND.Volume = VOLUME | |
561 | NEWSOUND.Pitch = PITCH | |
562 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
563 | Swait() | |
564 | NEWSOUND:play() | |
565 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
566 | end)) | |
567 | return NEWSOUND | |
568 | end | |
569 | ||
570 | function CFrameFromTopBack(at, top, back) | |
571 | local right = top:Cross(back) | |
572 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
573 | end | |
574 | ||
575 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
576 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
577 | local mesh = IT("SpecialMesh",wave) | |
578 | mesh.MeshType = "FileMesh" | |
579 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
580 | mesh.Scale = SIZE | |
581 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
582 | wave.CFrame = CFRAME | |
583 | coroutine.resume(coroutine.create(function(PART) | |
584 | for i = 1, WAIT do | |
585 | Swait() | |
586 | mesh.Scale = mesh.Scale + GROW | |
587 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
588 | if DOESROT == true then | |
589 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
590 | end | |
591 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
592 | if wave.Transparency > 0.99 then | |
593 | wave:remove() | |
594 | end | |
595 | end | |
596 | end)) | |
597 | end | |
598 | ||
599 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
600 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
601 | local mesh = IT("SpecialMesh",wave) | |
602 | mesh.MeshType = "FileMesh" | |
603 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
604 | mesh.Scale = SIZE | |
605 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
606 | wave.CFrame = CFRAME | |
607 | coroutine.resume(coroutine.create(function(PART) | |
608 | for i = 1, WAIT do | |
609 | Swait() | |
610 | mesh.Scale = mesh.Scale + GROW | |
611 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
612 | if DOESROT == true then | |
613 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
614 | end | |
615 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
616 | if wave.Transparency > 0.99 then | |
617 | wave:remove() | |
618 | end | |
619 | end | |
620 | end)) | |
621 | end | |
622 | ||
623 | local EyeSizes={ | |
624 | NumberSequenceKeypoint.new(0,1,0), | |
625 | NumberSequenceKeypoint.new(1,0,0) | |
626 | } | |
627 | local EyeTrans={ | |
628 | NumberSequenceKeypoint.new(0,0.8,0), | |
629 | NumberSequenceKeypoint.new(1,1,0) | |
630 | } | |
631 | ||
632 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
633 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
634 | local mesh = IT("SpecialMesh",wave) | |
635 | mesh.MeshType = "FileMesh" | |
636 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
637 | mesh.Scale = SIZE | |
638 | wave.CFrame = CFRAME | |
639 | coroutine.resume(coroutine.create(function(PART) | |
640 | for i = 1, WAIT do | |
641 | Swait() | |
642 | mesh.Scale = mesh.Scale + GROW | |
643 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
644 | if DOESROT == true then | |
645 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
646 | end | |
647 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
648 | if wave.Transparency > 0.99 then | |
649 | wave:remove() | |
650 | end | |
651 | end | |
652 | end)) | |
653 | end | |
654 | ||
655 | ||
656 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
657 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
658 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
659 | wave.CFrame = CFRAME | |
660 | coroutine.resume(coroutine.create(function(PART) | |
661 | for i = 1, WAIT do | |
662 | Swait() | |
663 | mesh.Scale = mesh.Scale * GROW | |
664 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
665 | if wave.Transparency > 0.99 then | |
666 | wave:remove() | |
667 | end | |
668 | end | |
669 | end)) | |
670 | end | |
671 | ||
672 | function CreateWave1(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
673 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
674 | local mesh = IT("SpecialMesh",wave) | |
675 | mesh.MeshType = "FileMesh" | |
676 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
677 | mesh.Scale = VT(size,size,size) | |
678 | mesh.Offset = VT(0,0,-size/8) | |
679 | wave.CFrame = cframe | |
680 | coroutine.resume(coroutine.create(function(PART) | |
681 | for i = 1, waitt do | |
682 | Swait() | |
683 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
684 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
685 | if doesrotate == true then | |
686 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
687 | end | |
688 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
689 | if wave.Transparency > 0.99 then | |
690 | wave:remove() | |
691 | end | |
692 | end | |
693 | end)) | |
694 | end | |
695 | ||
696 | function CreateSwirl1(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
697 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
698 | local mesh = IT("SpecialMesh",wave) | |
699 | mesh.MeshType = "FileMesh" | |
700 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
701 | mesh.Scale = VT(size,size,size) | |
702 | wave.CFrame = cframe | |
703 | coroutine.resume(coroutine.create(function(PART) | |
704 | for i = 1, waitt do | |
705 | Swait() | |
706 | mesh.Scale = mesh.Scale + VT(size/5,size/10,size/5) | |
707 | if doesrotate == true then | |
708 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
709 | end | |
710 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
711 | if wave.Transparency > 0.99 then | |
712 | wave:remove() | |
713 | end | |
714 | end | |
715 | end)) | |
716 | end | |
717 | ||
718 | function CreateTornado1(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
719 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
720 | local mesh = IT("SpecialMesh",wave) | |
721 | mesh.MeshType = "FileMesh" | |
722 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
723 | mesh.Scale = VT(size,size,size) | |
724 | wave.CFrame = cframe | |
725 | coroutine.resume(coroutine.create(function(PART) | |
726 | for i = 1, waitt do | |
727 | Swait() | |
728 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
729 | if doesrotate == true then | |
730 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
731 | end | |
732 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
733 | if wave.Transparency > 0.99 then | |
734 | wave:remove() | |
735 | end | |
736 | end | |
737 | end)) | |
738 | end | |
739 | ||
740 | function CreateRing1(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color) | |
741 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0), true) | |
742 | local mesh = IT("SpecialMesh",wave) | |
743 | mesh.MeshType = "FileMesh" | |
744 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
745 | mesh.Scale = VT(size,size,size) | |
746 | mesh.Offset = VT(0,0,0) | |
747 | wave.CFrame = cframe | |
748 | coroutine.resume(coroutine.create(function(PART) | |
749 | for i = 1, waitt do | |
750 | Swait() | |
751 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
752 | if doesrotate == true then | |
753 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
754 | end | |
755 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
756 | if wave.Transparency > 0.99 then | |
757 | wave:remove() | |
758 | end | |
759 | end | |
760 | end)) | |
761 | end | |
762 | ||
763 | function MagicBlock1(size,waitt,cframe,color) | |
764 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size), true) | |
765 | local mesh = IT("BlockMesh",wave) | |
766 | wave.CFrame = cframe | |
767 | coroutine.resume(coroutine.create(function(PART) | |
768 | for i = 1, waitt do | |
769 | Swait() | |
770 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
771 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
772 | wave.Transparency = wave.Transparency + (1/waitt) | |
773 | if wave.Transparency > 0.99 then | |
774 | wave:remove() | |
775 | end | |
776 | end | |
777 | end)) | |
778 | end | |
779 | ||
780 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
781 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
782 | local mesh = IT("SpecialMesh",wave) | |
783 | mesh.MeshType = "Sphere" | |
784 | mesh.Scale = SIZE | |
785 | mesh.Offset = VT(0,0,0) | |
786 | wave.CFrame = CFRAME | |
787 | coroutine.resume(coroutine.create(function(PART) | |
788 | for i = 1, WAIT do | |
789 | Swait() | |
790 | mesh.Scale = mesh.Scale + GROW | |
791 | wave.Transparency = wave.Transparency + (1/WAIT) | |
792 | if wave.Transparency > 0.99 then | |
793 | wave:remove() | |
794 | end | |
795 | end | |
796 | end)) | |
797 | end | |
798 | ||
799 | function MakeForm(PART,TYPE) | |
800 | if TYPE == "Cyl" then | |
801 | local MSH = IT("CylinderMesh",PART) | |
802 | elseif TYPE == "Ball" then | |
803 | local MSH = IT("SpecialMesh",PART) | |
804 | MSH.MeshType = "Sphere" | |
805 | elseif TYPE == "Wedge" then | |
806 | local MSH = IT("SpecialMesh",PART) | |
807 | MSH.MeshType = "Wedge" | |
808 | end | |
809 | end | |
810 | ||
811 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
812 | if FLOOR ~= nil then | |
813 | coroutine.resume(coroutine.create(function() | |
814 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
815 | PART.CFrame = CF(POSITION) | |
816 | for i = 1, 45 do | |
817 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
818 | RingPiece.Material = FLOOR.Material | |
819 | RingPiece.Color = FLOOR.Color | |
820 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
821 | Debris:AddItem(RingPiece,SWAIT/100) | |
822 | end | |
823 | PART:remove() | |
824 | end)) | |
825 | end | |
826 | end | |
827 | ||
828 | function CheckTableForString(Table, String) | |
829 | for i, v in pairs(Table) do | |
830 | if string.find(string.lower(String), string.lower(v)) then | |
831 | return true | |
832 | end | |
833 | end | |
834 | return false | |
835 | end | |
836 | ||
837 | function CheckIntangible(Hit) | |
838 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
839 | if Hit and Hit.Parent then | |
840 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
841 | return true | |
842 | end | |
843 | end | |
844 | return false | |
845 | end | |
846 | ||
847 | Debris = game:GetService("Debris") | |
848 | ||
849 | local S = IT("Sound") | |
850 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
851 | local NEWSOUND = nil | |
852 | coroutine.resume(coroutine.create(function() | |
853 | NEWSOUND = S:Clone() | |
854 | NEWSOUND.Parent = PARENT | |
855 | NEWSOUND.Volume = VOLUME | |
856 | NEWSOUND.Pitch = PITCH | |
857 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
858 | NEWSOUND:play() | |
859 | if DOESLOOP == true then | |
860 | NEWSOUND.Looped = true | |
861 | else | |
862 | repeat wait(1) until NEWSOUND.Playing == false | |
863 | NEWSOUND:remove() | |
864 | end | |
865 | end)) | |
866 | return NEWSOUND | |
867 | end | |
868 | ||
869 | Player = owner | |
870 | Character = Player.Character | |
871 | PlayerGui = Player.PlayerGui | |
872 | Backpack = Player.Backpack | |
873 | Torso = Character.Torso | |
874 | Head = Character.Head | |
875 | Humanoid = Character.Humanoid | |
876 | RootPart = Character.HumanoidRootPart | |
877 | RootJoint = RootPart.RootJoint | |
878 | LeftArm = Character["Left Arm"] | |
879 | LeftLeg = Character["Left Leg"] | |
880 | RightArm = Character["Right Arm"] | |
881 | RightLeg = Character["Right Leg"] | |
882 | LS = Torso["Left Shoulder"] | |
883 | LH = Torso["Left Hip"] | |
884 | RS = Torso["Right Shoulder"] | |
885 | RH = Torso["Right Hip"] | |
886 | Humanoid.MaxHealth = math.huge | |
887 | ||
888 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
889 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
890 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
891 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
892 | if RayHit and CheckIntangible(RayHit) then | |
893 | if DelayIfHit then | |
894 | wait() | |
895 | end | |
896 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
897 | end | |
898 | return RayHit, RayPos, RayNormal | |
899 | end | |
900 | ||
901 | function CreateNeonCircle(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH) | |
902 | local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false) | |
903 | for i = 1, 45 do | |
904 | local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false) | |
905 | local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0)) | |
906 | end | |
907 | local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
908 | coroutine.resume(coroutine.create(function() | |
909 | if DOESSPIN == true then | |
910 | while true do | |
911 | wait() | |
912 | PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1) | |
913 | end | |
914 | end | |
915 | end)) | |
916 | end | |
917 | ||
918 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
919 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
920 | local mesh = IT("SpecialMesh",wave) | |
921 | mesh.MeshType = "FileMesh" | |
922 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
923 | mesh.Scale = SIZE | |
924 | mesh.Offset = VT(0,0,0) | |
925 | wave.CFrame = CFRAME | |
926 | coroutine.resume(coroutine.create(function(PART) | |
927 | for i = 1, WAIT do | |
928 | Swait() | |
929 | mesh.Scale = mesh.Scale + GROW | |
930 | if DOESROT == true then | |
931 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
932 | end | |
933 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
934 | if wave.Transparency > 0.99 then | |
935 | wave:remove() | |
936 | end | |
937 | end | |
938 | end)) | |
939 | end | |
940 | ||
941 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
942 | function WACKYEFFECT(Table) | |
943 | local TYPE = (Table.EffectType or "Sphere") | |
944 | local SIZE = (Table.Size or VT(1,1,1)) | |
945 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
946 | local TRANSPARENCY = (Table.Transparency or 0) | |
947 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
948 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
949 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
950 | local ROTATION1 = (Table.RotationX or 0) | |
951 | local ROTATION2 = (Table.RotationY or 0) | |
952 | local ROTATION3 = (Table.RotationZ or 0) | |
953 | local MATERIAL = (Table.Material or "Neon") | |
954 | local COLOR = (Table.Color or C3(1,1,1)) | |
955 | local TIME = (Table.Time or 45) | |
956 | local SOUNDID = (Table.SoundID or nil) | |
957 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
958 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
959 | coroutine.resume(coroutine.create(function() | |
960 | local PLAYSSOUND = false | |
961 | local SOUND = nil | |
962 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
963 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
964 | PLAYSSOUND = true | |
965 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
966 | end | |
967 | EFFECT.Color = COLOR | |
968 | local MSH = nil | |
969 | if TYPE == "Sphere" then | |
970 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
971 | elseif TYPE == "Block" then | |
972 | MSH = IT("BlockMesh",EFFECT) | |
973 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
974 | elseif TYPE == "Wave" then | |
975 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
976 | elseif TYPE == "Ring" then | |
977 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
978 | elseif TYPE == "Slash" then | |
979 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
980 | elseif TYPE == "Round Slash" then | |
981 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
982 | elseif TYPE == "Swirl" then | |
983 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
984 | elseif TYPE == "Skull" then | |
985 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
986 | elseif TYPE == "Crystal" then | |
987 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
988 | end | |
989 | if MSH ~= nil then | |
990 | local MOVESPEED = nil | |
991 | if MOVEDIRECTION ~= nil then | |
992 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
993 | end | |
994 | local GROWTH = SIZE - ENDSIZE | |
995 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
996 | if TYPE == "Block" then | |
997 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
998 | else | |
999 | EFFECT.CFrame = CFRAME | |
1000 | end | |
1001 | for LOOP = 1, TIME+1 do | |
1002 | Swait() | |
1003 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1004 | if TYPE == "Wave" then | |
1005 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1006 | end | |
1007 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1008 | if TYPE == "Block" then | |
1009 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1010 | else | |
1011 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1012 | end | |
1013 | if MOVEDIRECTION ~= nil then | |
1014 | local ORI = EFFECT.Orientation | |
1015 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1016 | EFFECT.Orientation = ORI | |
1017 | end | |
1018 | end | |
1019 | if PLAYSSOUND == false then | |
1020 | EFFECT:remove() | |
1021 | else | |
1022 | SOUND.Stopped:Connect(function() | |
1023 | EFFECT:remove() | |
1024 | end) | |
1025 | end | |
1026 | else | |
1027 | if PLAYSSOUND == false then | |
1028 | EFFECT:remove() | |
1029 | else | |
1030 | repeat Swait() until SOUND.Playing == false | |
1031 | EFFECT:remove() | |
1032 | end | |
1033 | end | |
1034 | end)) | |
1035 | end | |
1036 | ||
1037 | local asd = Instance.new("ParticleEmitter") | |
1038 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
1039 | asd.LightEmission = .1 | |
1040 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1041 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
1042 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1043 | asd.Transparency = bbb | |
1044 | asd.Size = aaa | |
1045 | asd.ZOffset = .9 | |
1046 | asd.Acceleration = Vector3.new(0, -15, 0) | |
1047 | asd.LockedToPart = false | |
1048 | asd.EmissionDirection = "Back" | |
1049 | asd.Lifetime = NumberRange.new(1, 2) | |
1050 | asd.Rotation = NumberRange.new(-100, 100) | |
1051 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1052 | asd.Speed = NumberRange.new(10) | |
1053 | asd.Enabled = false | |
1054 | asd.VelocitySpread = 999 | |
1055 | ||
1056 | local PE=Instance.new("ParticleEmitter",art) | |
1057 | PE.LightEmission=.8 | |
1058 | PE.Color = ColorSequence.new(BRICKC("Really red").Color) | |
1059 | PE.Size=NumberSequence.new(EyeSizes) | |
1060 | PE.Transparency=NumberSequence.new(EyeTrans) | |
1061 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
1062 | PE.Rotation=NumberRange.new(0,360) | |
1063 | PE.Rate=999 | |
1064 | PE.VelocitySpread = 10000 | |
1065 | PE.Acceleration = Vector3.new(0,0,0) | |
1066 | PE.Drag = 5 | |
1067 | PE.Speed = NumberRange.new(0,0,0) | |
1068 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
1069 | PE.ZOffset = -1.5 | |
1070 | PE.Name = "PE" | |
1071 | PE.Enabled = false | |
1072 | ||
1073 | local P=Instance.new("ParticleEmitter",art) | |
1074 | P.LightEmission=.8 | |
1075 | P.Color = ColorSequence.new(BRICKC("Pink").Color) | |
1076 | P.Size=NumberSequence.new(EyeSizes) | |
1077 | P.Transparency=NumberSequence.new(EyeTrans) | |
1078 | P.Lifetime=NumberRange.new(0.35,1.5) | |
1079 | P.Rotation=NumberRange.new(0,360) | |
1080 | P.Rate=999 | |
1081 | P.VelocitySpread = 10000 | |
1082 | P.Acceleration = Vector3.new(0,0,0) | |
1083 | P.Drag = 5 | |
1084 | P.Speed = NumberRange.new(0,0,0) | |
1085 | P.Texture="http://www.roblox.com/asset/?id=1351966707" | |
1086 | P.ZOffset = -1.5 | |
1087 | P.Name = "P" | |
1088 | P.Enabled = false | |
1089 | ||
1090 | function particles(art) | |
1091 | local PARTICLES = PE:Clone() | |
1092 | PARTICLES.Parent = art | |
1093 | end | |
1094 | ||
1095 | function particles1(art) | |
1096 | local PARTICLES1 = P:Clone() | |
1097 | PARTICLES1.Parent = art | |
1098 | end | |
1099 | ||
1100 | function getbloody(victim,amount) | |
1101 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1102 | PART.CFrame = victim.CFrame | |
1103 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1104 | Debris:AddItem(PART,5) | |
1105 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1106 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1107 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1108 | local prtcl = asd:Clone() | |
1109 | prtcl.Parent = PART | |
1110 | prtcl:Emit(amount*10) | |
1111 | end | |
1112 | ||
1113 | local Particle = IT("ParticleEmitter",nil) | |
1114 | Particle.Enabled = false | |
1115 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
1116 | Particle.LightEmission = 0.5 | |
1117 | Particle.Rate = 150 | |
1118 | Particle.ZOffset = 1 | |
1119 | Particle.Rotation = NumberRange.new(-180, 180) | |
1120 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1121 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1122 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
1123 | ||
1124 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1125 | function ParticleEmitter(Table) | |
1126 | local PRTCL = Particle:Clone() | |
1127 | local Speed = Table.Speed or 5 | |
1128 | local Drag = Table.Drag or 0 | |
1129 | local Size1 = Table.Size1 or 1 | |
1130 | local Size2 = Table.Size2 or 5 | |
1131 | local Lifetime1 = Table.Lifetime1 or 1 | |
1132 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1133 | local Parent = Table.Parent or Torso | |
1134 | local Emit = Table.Emit or 100 | |
1135 | local Offset = Table.Offset or 360 | |
1136 | local Acel = Table.Acel or VT(0,0,0) | |
1137 | local Enabled = Table.Enabled or false | |
1138 | PRTCL.Parent = Parent | |
1139 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1140 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1141 | PRTCL.Speed = NumberRange.new(Speed) | |
1142 | PRTCL.VelocitySpread = Offset | |
1143 | PRTCL.Drag = Drag | |
1144 | PRTCL.Acceleration = Acel | |
1145 | if Enabled == false then | |
1146 | PRTCL:Emit(Emit) | |
1147 | Debris:AddItem(PRTCL,Lifetime2) | |
1148 | else | |
1149 | PRTCL.Enabled = true | |
1150 | end | |
1151 | return PRTCL | |
1152 | end | |
1153 | ||
1154 | function Zap(Table) | |
1155 | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color | |
1156 | local Duration = Table.Duration or 2 | |
1157 | local Offset = Table.Offset or 2 | |
1158 | local Individualize = Table.Individualize or false | |
1159 | local MaxRange = Table.MaxRange or 200 | |
1160 | local SegmentLength = Table.SegmentLength or 5 | |
1161 | local Transparency = Table.Transparency or 0 | |
1162 | local Ignore = Table.Ignore or {} | |
1163 | local SIZE = Table.SIZE or 0.3 | |
1164 | if not (StartPos and TargetPos) or not Character then | |
1165 | return | |
1166 | end | |
1167 | local LightningModel = IT("Folder", Effects) | |
1168 | LightningModel.Name = "ZAPP" | |
1169 | for i, v in pairs({Character, LightningModel}) do | |
1170 | table.insert(Ignore, v) | |
1171 | end | |
1172 | local LastPos = StartPos | |
1173 | local Direction = CFrame.new(StartPos, TargetPos).lookVector | |
1174 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) | |
1175 | local RayLength = (StartPos - RayPos).Magnitude | |
1176 | local Struck = false | |
1177 | local TotalSegments = math.ceil(RayLength / SegmentLength) | |
1178 | Direction = CFrame.new(StartPos, RayPos).lookVector | |
1179 | local LightningBolt = IT("Model", Effects) | |
1180 | LightningBolt.Name = "Lightning" | |
1181 | if not Individualize then | |
1182 | table.insert(LightningBolts, LightningBolt) | |
1183 | end | |
1184 | LastBolt = LightningBolt | |
1185 | Debris:AddItem(LightningBolt, Duration) | |
1186 | LightningBolt.Parent = LightningModel | |
1187 | for i = 1, TotalSegments do | |
1188 | if not Struck then | |
1189 | local Entropy = Vector3.new(math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset, math.random() * Offset * 2.5 - Offset) | |
1190 | local NewPos = StartPos + Direction * (RayLength * (i / TotalSegments)) + Entropy | |
1191 | local SegmentVec = NewPos - LastPos | |
1192 | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false) | |
1193 | local RayVec = LastPos - RayPos | |
1194 | local LightningPart = BaseLightning:Clone() | |
1195 | LightningPart.BrickColor = BrickColor.new(Color) | |
1196 | LightningPart.Transparency = Transparency | |
1197 | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) | |
1198 | LightningPart.CFrame = CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2)) | |
1199 | table.insert(Effects2, { | |
1200 | LightningPart, | |
1201 | "Disappear", | |
1202 | 0.025, | |
1203 | 1, | |
1204 | 1, | |
1205 | 1, | |
1206 | 2 | |
1207 | }) | |
1208 | local CylinderMesh = IT("CylinderMesh", LightningPart) | |
1209 | local OrigCF = LightningPart.CFrame | |
1210 | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) | |
1211 | LightningPart.CFrame = OrigCF * CFrame.Angles(math.pi / 2, 0, 0) | |
1212 | LightningPart.Parent = LightningBolt | |
1213 | LastPos = NewPos | |
1214 | end | |
1215 | end | |
1216 | return { | |
1217 | RayHit = RayHit, | |
1218 | RayPos = RayPos, | |
1219 | RayNormal = RayNormal, | |
1220 | LightningModel = LightningModel | |
1221 | } | |
1222 | end | |
1223 | ||
1224 | function MagicSphere2(size,waitt,cframe,color) | |
1225 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1), true) | |
1226 | local mesh = IT("SpecialMesh",wave) | |
1227 | mesh.MeshType = "Sphere" | |
1228 | mesh.Scale = VT(size,size,size) | |
1229 | mesh.Offset = VT(0,0,0) | |
1230 | wave.CFrame = cframe | |
1231 | coroutine.resume(coroutine.create(function(PART) | |
1232 | for i = 1, waitt do | |
1233 | Swait() | |
1234 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
1235 | wave.Transparency = wave.Transparency - (1/waitt) | |
1236 | end | |
1237 | wave:remove() | |
1238 | end)) | |
1239 | end | |
1240 | ||
1241 | function re(ATTACHPART, POSITION, SIZE, DOESSPIN, COLOR, MATERIAL, THICKNESS, WIDTH) | |
1242 | local CirclePart = IT("Model",Effects) | |
1243 | CirclePart.Name = "re" | |
1244 | local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0, 0, 0), false) | |
1245 | for i = 1, 45 do | |
1246 | local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS, WIDTH, SIZE * 0.65), false) | |
1247 | local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i * 8), RAD(0)), CF(0, 0, 0) * CF(SIZE * 4, 0, 0)) | |
1248 | end | |
1249 | local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1250 | coroutine.resume(coroutine.create(function() | |
1251 | if DOESSPIN == true then | |
1252 | while true do | |
1253 | wait() | |
1254 | PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE * 2), RAD(0)), 1) | |
1255 | end | |
1256 | end | |
1257 | end)) | |
1258 | end | |
1259 | ||
1260 | ||
1261 | function turnto(position) | |
1262 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1263 | end | |
1264 | ||
1265 | --//=================================\\ | |
1266 | --|| WEAPON CREATION | |
1267 | --\\=================================// | |
1268 | ||
1269 | function createaddon(position,size) | |
1270 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false) | |
1271 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1272 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "CGA brown", "Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false) | |
1273 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1274 | end | |
1275 | ||
1276 | local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "CGA brown", "Neon Gauntlet Part", VT(1.025*Player_Size,2.025*Player_Size,1.025*Player_Size),false) | |
1277 | local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1278 | FIST.CanCollide = true | |
1279 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,1.05*Player_Size,1.05*Player_Size),false) | |
1280 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1281 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.06*Player_Size,0.2*Player_Size,1.06*Player_Size),false) | |
1282 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1283 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.55*Player_Size,1.05*Player_Size),false) | |
1284 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.75 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1285 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.25*Player_Size,1.05*Player_Size),false) | |
1286 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.15 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
1287 | MakeForm(part,"Wedge") | |
1288 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.05*Player_Size,0.25*Player_Size,1.05*Player_Size),false) | |
1289 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1290 | MakeForm(part,"Wedge") | |
1291 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.035*Player_Size,0.3*Player_Size,1.035*Player_Size),false) | |
1292 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1293 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.035*Player_Size,0.3*Player_Size,1.035*Player_Size),false) | |
1294 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1295 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(1.1*Player_Size,1.1*Player_Size,1.1*Player_Size),false) | |
1296 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1297 | MakeForm(part,"Wedge") | |
1298 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Maroon", "Gauntlet Part", VT(1.15*Player_Size,1.15*Player_Size,1.15*Player_Size),false) | |
1299 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.05 * Player_Size, -0.505 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1300 | MakeForm(part,"Wedge") | |
1301 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(0.2*Player_Size,0.7*Player_Size,0.7*Player_Size),false) | |
1302 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.28 * Player_Size, -0.77 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1303 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(0.2*Player_Size,0.7*Player_Size,0.7*Player_Size),false) | |
1304 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.28 * Player_Size, -0.77 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1305 | local part = CreatePart(3, Weapon, "Granite", 0, 0, "Deep orange", "Gauntlet Part", VT(0.2*Player_Size,0.7*Player_Size,0.7*Player_Size),false) | |
1306 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0.28 * Player_Size, -0.77 * Player_Size, 0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1307 | createaddon(0.4,0.4) | |
1308 | createaddon(0.5,0.3) | |
1309 | createaddon(0.6,0.2) | |
1310 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "CGA brown", "Neon Gauntlet Part", VT(0.3*Player_Size,1.1*Player_Size,0.3*Player_Size),false) | |
1311 | local weld = CreateWeldOrSnapOrMotor("Weld", part, RightArm, part, CF(0 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1312 | ||
1313 | for _, c in pairs(Weapon:GetChildren()) do | |
1314 | if c.ClassName == "Part" then | |
1315 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1316 | end | |
1317 | end | |
1318 | ||
1319 | Weapon.Parent = Character | |
1320 | ||
1321 | Humanoid.Died:connect(function() | |
1322 | ATTACK = true | |
1323 | end) | |
1324 | ||
1325 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1326 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1327 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1328 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1329 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.15, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1330 | ||
1331 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] laber", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
1332 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[Z] laber", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
1333 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] laber", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 3") | |
1334 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] laber", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text4") | |
1335 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[U] Karma mode...", SKILLTEXTCOLOR, 6, "SciFi", 0, 2, 1, "Text5") | |
1336 | ||
1337 | --//=================================\\ | |
1338 | --|| DAMAGE FUNCTIONS | |
1339 | --\\=================================// | |
1340 | ||
1341 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1342 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1343 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1344 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1345 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1346 | BODYPOSITION.P = 2000 | |
1347 | BODYPOSITION.D = 100 | |
1348 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1349 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1350 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1351 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1352 | BILLBOARDGUI.Adornee = STATPART | |
1353 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1354 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1355 | BILLBOARDGUI.AlwaysOnTop = false | |
1356 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1357 | TEXTLABEL.BackgroundTransparency = 1 | |
1358 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1359 | TEXTLABEL.Text = TEXT | |
1360 | TEXTLABEL.Font = "SciFi" | |
1361 | TEXTLABEL.FontSize="Size42" | |
1362 | TEXTLABEL.TextColor3 = COLOR | |
1363 | TEXTLABEL.TextStrokeTransparency = 1 | |
1364 | TEXTLABEL.TextScaled = true | |
1365 | TEXTLABEL.TextWrapped = true | |
1366 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1367 | if LABELTYPE == "Normal" then | |
1368 | for i = 1, 30 do | |
1369 | Swait() | |
1370 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
1371 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1372 | end | |
1373 | elseif LABELTYPE == "Debuff" then | |
1374 | for i = 1, 30 do | |
1375 | Swait() | |
1376 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
1377 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1378 | end | |
1379 | elseif LABELTYPE == "Shock" then | |
1380 | local ORIGIN = STATPART.Position | |
1381 | for i = 1, 30 do | |
1382 | Swait() | |
1383 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
1384 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1385 | end | |
1386 | end | |
1387 | THEPART.Parent = nil | |
1388 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1389 | end | |
1390 | ||
1391 | local Particle = IT("ParticleEmitter",nil) | |
1392 | Particle.Enabled = false | |
1393 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1394 | Particle.LightEmission = 2 | |
1395 | Particle.Rate = 200 | |
1396 | Particle.ZOffset = 2 | |
1397 | Particle.Rotation = NumberRange.new(-180, 180) | |
1398 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1399 | Particle.Texture = "http://www.roblox.com/asset/?id=1647687279" | |
1400 | Particle.Color = ColorSequence.new(Color3.fromRGB(1,1,1),Color3.fromRGB(1,1,1)) | |
1401 | ||
1402 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1403 | function ParticleEmitter(Table) | |
1404 | local PRTCL = Particle:Clone() | |
1405 | local Speed = Table.Speed or 5 | |
1406 | local Drag = Table.Drag or 0 | |
1407 | local Size1 = Table.Size1 or 1 | |
1408 | local Size2 = Table.Size2 or 5 | |
1409 | local Lifetime1 = Table.Lifetime1 or 1 | |
1410 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1411 | local Parent = Table.Parent or Torso | |
1412 | local Emit = Table.Emit or 100 | |
1413 | local Offset = Table.Offset or 360 | |
1414 | local Acel = Table.Acel or VT(0,0,0) | |
1415 | local Enabled = Table.Enabled or false | |
1416 | PRTCL.Parent = Parent | |
1417 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1418 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1419 | PRTCL.Speed = NumberRange.new(Speed) | |
1420 | PRTCL.VelocitySpread = Offset | |
1421 | PRTCL.Drag = Drag | |
1422 | PRTCL.Acceleration = Acel | |
1423 | if Enabled == false then | |
1424 | PRTCL:Emit(Emit) | |
1425 | Debris:AddItem(PRTCL,Lifetime2) | |
1426 | else | |
1427 | PRTCL.Enabled = true | |
1428 | end | |
1429 | return PRTCL | |
1430 | end | |
1431 | ||
1432 | local TAUNT = false | |
1433 | ||
1434 | --//=================================\\ | |
1435 | --|| DAMAGING | |
1436 | --\\=================================// | |
1437 | ||
1438 | function killnearest(position,range,maxstrength,direction) | |
1439 | for i,v in ipairs(workspace:GetChildren()) do | |
1440 | local body = v:GetChildren() | |
1441 | for part = 1, #body do | |
1442 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1443 | if(body[part].Position - position).Magnitude < range then | |
1444 | if v.ClassName == "Model" then | |
1445 | --v:BreakJoints() | |
1446 | end | |
1447 | local POS = position | |
1448 | coroutine.resume(coroutine.create(function() | |
1449 | body[part].Anchored = true | |
1450 | body[part].Parent = Effects | |
1451 | body[part].CanCollide = true | |
1452 | local SIZE = body[part].Size | |
1453 | body[part].Material = "Neon" | |
1454 | CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10) | |
1455 | for i = 1, 75 do | |
1456 | Swait() | |
1457 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1458 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1459 | end | |
1460 | coroutine.resume(coroutine.create(function() | |
1461 | while true do | |
1462 | Swait() | |
1463 | body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1464 | body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1465 | end | |
1466 | end)) | |
1467 | body[part].Anchored = false | |
1468 | body[part].Velocity = direction.lookVector*maxstrength | |
1469 | end)) | |
1470 | end | |
1471 | end | |
1472 | end | |
1473 | if v.ClassName == "Part" then | |
1474 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1475 | local POS = position | |
1476 | coroutine.resume(coroutine.create(function() | |
1477 | v.Anchored = true | |
1478 | v.Parent = Effects | |
1479 | local SIZE = v.Size | |
1480 | v.Material = "Neon" | |
1481 | CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10) | |
1482 | for i = 1, 75 do | |
1483 | Swait() | |
1484 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1485 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1486 | end | |
1487 | coroutine.resume(coroutine.create(function() | |
1488 | while true do | |
1489 | Swait() | |
1490 | v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100) | |
1491 | v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2)) | |
1492 | end | |
1493 | end)) | |
1494 | v.Anchored = false | |
1495 | v.Velocity = direction.lookVector*maxstrength | |
1496 | end)) | |
1497 | end | |
1498 | end | |
1499 | end | |
1500 | end | |
1501 | ||
1502 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
1503 | local dmg = math.huge | |
1504 | for i,v in ipairs(workspace:GetChildren()) do | |
1505 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1506 | local body = v:GetChildren() | |
1507 | for part = 1, #body do | |
1508 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1509 | if(body[part].Position - position).Magnitude < radius then | |
1510 | if v.ClassName == "Model" then | |
1511 | if v:FindFirstChild("Humanoid") then | |
1512 | if v.Humanoid.Health ~= 0 then | |
1513 | if CanBeDodgedByJumping == true then | |
1514 | if body[part].Position.Y < position.Y+5 then | |
1515 | if math.random(1,100) < critrate+1 then | |
1516 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1517 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1518 | else | |
1519 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1520 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1521 | end | |
1522 | local defence = Instance.new("BoolValue",v) | |
1523 | defence.Name = ("HitBy"..Player.Name) | |
1524 | game:GetService("Debris"):AddItem(defence, 0.25) | |
1525 | end | |
1526 | else | |
1527 | if beserk == true then | |
1528 | v.Humanoid.Health = 0 | |
1529 | end | |
1530 | if math.random(1,100) < critrate+1 then | |
1531 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1532 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1533 | else | |
1534 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1535 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1536 | end | |
1537 | local defence = Instance.new("BoolValue",v) | |
1538 | defence.Name = ("HitBy"..Player.Name) | |
1539 | game:GetService("Debris"):AddItem(defence, 0.25) | |
1540 | end | |
1541 | end | |
1542 | end | |
1543 | end | |
1544 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1545 | end | |
1546 | end | |
1547 | end | |
1548 | if v.ClassName == "Part" then | |
1549 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1550 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1551 | end | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | end | |
1556 | ||
1557 | function SpawnSoul(Humanoid) | |
1558 | coroutine.resume(coroutine.create(function() | |
1559 | local TORSO = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso") | |
1560 | local SOULMODEL = IT("Model",Effects) | |
1561 | SOULMODEL.Name = Humanoid.Parent.Name.."'s Soul" | |
1562 | local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "White", "Head", VT(0.5,0.5,0.5)) | |
1563 | SOUL.CFrame = CF(TORSO.Position) | |
1564 | local A1 = IT("Attachment",SOUL) | |
1565 | A1.Position = Vector3.new(0, 0.25, 0) | |
1566 | local A2 = IT("Attachment",SOUL) | |
1567 | A2.Position = Vector3.new(0, -0.25, 0) | |
1568 | local Trail = IT("Trail",SOUL) | |
1569 | Trail.LightEmission = 0.3 | |
1570 | Trail.FaceCamera = true | |
1571 | Trail.Texture = "rbxassetid://945758042" | |
1572 | Trail.Attachment0 = A1 | |
1573 | Trail.Attachment1 = A2 | |
1574 | Trail.Lifetime = 0.5 | |
1575 | Trail.MinLength = 0 | |
1576 | Trail.Transparency = NumberSequence.new(0) | |
1577 | Trail.Color = ColorSequence.new(SOUL.Color) | |
1578 | MakeForm(SOUL,"Ball") | |
1579 | local DISTANCE = nil | |
1580 | local HUM = IT("Humanoid",SOULMODEL) | |
1581 | repeat | |
1582 | Swait() | |
1583 | SOUL.CFrame = CF(SOUL.Position,Torso.Position)*CF(0,0,-0.2) | |
1584 | DISTANCE = (SOUL.Position - Torso.Position).Magnitude | |
1585 | until DISTANCE < 0.4 | |
1586 | WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2}) | |
1587 | SOUL.Transparency = 1 | |
1588 | A1.Parent = Torso | |
1589 | A2.Parent = Torso | |
1590 | Trail.Parent = Torso | |
1591 | Debris:AddItem(SOULMODEL,10) | |
1592 | SOULWELL = SOULWELL + 1 | |
1593 | for i = 1, 100 do | |
1594 | Swait() | |
1595 | Trail.Transparency = NumberSequence.new(i/100) | |
1596 | end | |
1597 | A1:remove() | |
1598 | A2:remove() | |
1599 | Trail:remove() | |
1600 | end)) | |
1601 | end | |
1602 | ||
1603 | function new_mode() | |
1604 | ATTACK = true | |
1605 | Rooted = false | |
1606 | TAUNT = true | |
1607 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1608 | Swait() | |
1609 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1610 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1611 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1612 | end | |
1613 | for i=0, 3, 0.1 / Animation_Speed do | |
1614 | Swait() | |
1615 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1616 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1617 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(170), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1618 | end | |
1619 | CreateSound(363808674, Torso, 10, 1.3) | |
1620 | for i=0, 1, 0.1 / Animation_Speed do | |
1621 | Swait() | |
1622 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5), RAD(0), RAD(120)), 3 / Animation_Speed) | |
1623 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 3/ Animation_Speed) | |
1624 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(230), RAD(0), RAD(35)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1625 | end | |
1626 | CreateSound(649634100, Torso, 10, 0.8) | |
1627 | for i=0, 0.01, 0.1 / Animation_Speed do | |
1628 | Swait() | |
1629 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1630 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
1631 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
1632 | end | |
1633 | ATTACK = false | |
1634 | Rooted = false | |
1635 | TAUNT = false | |
1636 | end | |
1637 | ||
1638 | function Shatter(Part) | |
1639 | if Part.Transparency == 0 then | |
1640 | local SOUNDPART = CreatePart(3, Effects, "Glass", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
1641 | Debris:AddItem(SOUNDPART,5) | |
1642 | CreateSound("626807593", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
1643 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
1644 | local SIZESET = SIZE/4 | |
1645 | local XOffset = Part.Size.X*1.5/SIZESET | |
1646 | local YOffset = Part.Size.Y*1.5/SIZESET | |
1647 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
1648 | for x = 1, math.ceil(XOffset) do | |
1649 | for y = 1, math.ceil(YOffset) do | |
1650 | for z = 1, math.ceil(ZOffset) do | |
1651 | local SHARD = CreatePart(3, Effects, "Glass", 0, 0.15, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
1652 | SHARD.CanCollide = true | |
1653 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-Part.Size.X/4),(Part.Size.Y/2-Part.Size.Y/4),(Part.Size.Z/2-Part.Size.Z/4)) | |
1654 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
1655 | Debris:AddItem(SHARD,MRANDOM(10,25)/10) | |
1656 | for _, c in pairs(Part:GetChildren()) do | |
1657 | if c.ClassName == "ParticleEmitter" or c.ClassName == "PointLight" or c.ClassName == "Fire" then | |
1658 | c:Clone().Parent = SHARD | |
1659 | end | |
1660 | end | |
1661 | end | |
1662 | end | |
1663 | end | |
1664 | end | |
1665 | Part:remove() | |
1666 | end | |
1667 | ||
1668 | function createfireball(size,explosionsize,pos,velocity) | |
1669 | local FIREBALLCOLORS = {"yeller", "yeller", "yeller"} | |
1670 | local FIREBALLHITSOUNDS = {"522282998", "527535379", "304448425"} | |
1671 | local FIREBALL = IT("Part",Effects) | |
1672 | FIREBALL.Shape = "Ball" | |
1673 | FIREBALL.Size = VT(size,size,size) | |
1674 | FIREBALL.Material = "Neon" | |
1675 | FIREBALL.CFrame = CF(pos) | |
1676 | FIREBALL.Transparency = 1 | |
1677 | local bv = Instance.new("BodyVelocity") | |
1678 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1679 | bv.velocity = velocity | |
1680 | bv.Parent = FIREBALL | |
1681 | bv.Name = "MOVE" | |
1682 | local HIT = false | |
1683 | local harm = FIREBALL.Touched:Connect(function(hit) | |
1684 | if HIT == false and hit.Parent.ClassName ~= "Accessory" and hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Parent ~= FIREBALL.Parent then | |
1685 | HIT = true | |
1686 | coroutine.resume(coroutine.create(function() | |
1687 | FIREBALL.Anchored = true | |
1688 | FIREBALL.CanCollide = false | |
1689 | CreateSound(FIREBALLHITSOUNDS[MRANDOM(1, #FIREBALLHITSOUNDS)], FIREBALL, 3, 1) | |
1690 | AoEDamage(FIREBALL.Position,explosionsize*2,35,45,25,false,3,2,false,true) | |
1691 | for i = 1, 2 do | |
1692 | MagicBlock1(explosionsize/3/i,25,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1693 | ||
1694 | MagicBlock1(explosionsize/1/i,25,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1695 | end | |
1696 | Swait(250) | |
1697 | FIREBALL:remove() | |
1698 | end)) | |
1699 | end | |
1700 | end) | |
1701 | coroutine.resume(coroutine.create(function() | |
1702 | repeat | |
1703 | Swait() | |
1704 | MagicBlock2(size,25,FIREBALL.CFrame,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1705 | until HIT == true | |
1706 | end)) | |
1707 | return FIREBALL | |
1708 | end | |
1709 | ||
1710 | function CreateWave3(inair,size,doesrotate,rotatedirection,waitt,part,offset,color) | |
1711 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
1712 | local mesh = IT("SpecialMesh",wave) | |
1713 | mesh.MeshType = "FileMesh" | |
1714 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1715 | mesh.Scale = VT(size,size,size) | |
1716 | mesh.Offset = VT(0,0,-size/8) | |
1717 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
1718 | coroutine.resume(coroutine.create(function(PART) | |
1719 | for i = 1, waitt do | |
1720 | Swait() | |
1721 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
1722 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1723 | if doesrotate == true then | |
1724 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1725 | end | |
1726 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
1727 | if wave.Transparency > 0.99 then | |
1728 | wave:remove() | |
1729 | end | |
1730 | end | |
1731 | end)) | |
1732 | end | |
1733 | ||
1734 | function Erupt(cframe,size) | |
1735 | coroutine.resume(coroutine.create(function() | |
1736 | local FIREBALLCOLORS = {"Deep orange", "Deep orange", "Deep orange"} | |
1737 | local FIREPILLARHITSOUNDS = {"171378971", "646619365", "472579737", "144140670"} | |
1738 | for i = 1, 5 do | |
1739 | CreateSwirl(0,i,true,-0.5,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1740 | Swait(15) | |
1741 | end | |
1742 | AoEDamage(cframe.p,size,35,45,25,false,3,2,false,true) | |
1743 | local brick = IT("Part",Effects) | |
1744 | brick.CanCollide = false | |
1745 | brick.Anchored = true | |
1746 | brick.Size = VT(0,0,0) | |
1747 | brick.Transparency = 1 | |
1748 | brick.Name = "POS" | |
1749 | brick.CFrame = cframe | |
1750 | game:GetService("Debris"):AddItem(brick, 5) | |
1751 | AoEDamage(brick.Position,size*2,35,45,25,false,3,2,false,true) | |
1752 | CreateSound(FIREPILLARHITSOUNDS[MRANDOM(1, #FIREPILLARHITSOUNDS)], brick, 3, 1) | |
1753 | MagicSphere1(size,25,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1754 | MagicSphere1(size/2,35,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1755 | MagicSphere1(size/3,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1756 | MagicSphere2(size*5,25,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1757 | CreateSwirl1(0,size,true,0.5,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1758 | CreateSwirl1(0,size,true,0.35,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1759 | CreateSwirl1(0,size,true,0.1,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1760 | CreateSwirl1(0,size,true,-0.5,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1761 | CreateSwirl1(0,size,true,-0.35,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1762 | CreateSwirl1(0,size,true,-0.1,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1763 | MagicBlock1(size/6,45,cframe,FIREBALLCOLORS[MRANDOM(1, #FIREBALLCOLORS)]) | |
1764 | end)) | |
1765 | end | |
1766 | ||
1767 | function killnearest1(position,range,maxstrength) | |
1768 | for i,v in ipairs(workspace:GetChildren()) do | |
1769 | local body = v:GetChildren() | |
1770 | for part = 1, #body do | |
1771 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1772 | if(body[part].Position - position).Magnitude < range then | |
1773 | if v.ClassName == "Model" then | |
1774 | v:BreakJoints() | |
1775 | end | |
1776 | table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1777 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1778 | end | |
1779 | end | |
1780 | end | |
1781 | if v.ClassName == "Part" then | |
1782 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1783 | table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1784 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1785 | end | |
1786 | end | |
1787 | end | |
1788 | end | |
1789 | ||
1790 | function KillChildren(v) | |
1791 | v:BreakJoints() | |
1792 | for _, c in pairs(v:GetChildren()) do | |
1793 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
1794 | if c.Transparency < 1 then | |
1795 | if c:FindFirstChildOfClass("Decal") then | |
1796 | c:FindFirstChildOfClass("Decal"):remove() | |
1797 | end | |
1798 | particles(c) | |
1799 | c.PE.Enabled = true | |
1800 | c.Parent = Effects | |
1801 | c.CanCollide = false | |
1802 | c.Material = "Neon" | |
1803 | c.Color = C3(1,0,0) | |
1804 | c.Transparency = 0.5 | |
1805 | local grav = Instance.new("BodyPosition",c) | |
1806 | grav.P = 20000 | |
1807 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1808 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1809 | grav.Name = "GravityForce" | |
1810 | coroutine.resume(coroutine.create(function() | |
1811 | for i = 1, 50 do | |
1812 | Swait() | |
1813 | c.Transparency = c.Transparency + 0.01 | |
1814 | end | |
1815 | c.PE.Enabled = false | |
1816 | Debris:AddItem(c,2) | |
1817 | end)) | |
1818 | end | |
1819 | end | |
1820 | end | |
1821 | end | |
1822 | ||
1823 | function KillChildren1(v) | |
1824 | v:BreakJoints() | |
1825 | for _, c in pairs(v:GetChildren()) do | |
1826 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
1827 | if c.Transparency < 1 then | |
1828 | if c:FindFirstChildOfClass("Decal") then | |
1829 | c:FindFirstChildOfClass("Decal"):remove() | |
1830 | end | |
1831 | particles1(c) | |
1832 | c.P.Enabled = true | |
1833 | c.Parent = Effects | |
1834 | c.CanCollide = false | |
1835 | c.Material = "Neon" | |
1836 | c.Color = C3(0.5,0,0.5) | |
1837 | c.Transparency = 0.5 | |
1838 | local grav = Instance.new("BodyPosition",c) | |
1839 | grav.P = 20000 | |
1840 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1841 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1842 | grav.Name = "GravityForce" | |
1843 | coroutine.resume(coroutine.create(function() | |
1844 | for i = 1, 50 do | |
1845 | Swait() | |
1846 | c.Transparency = c.Transparency + 0.01 | |
1847 | end | |
1848 | c.P.Enabled = false | |
1849 | Debris:AddItem(c,2) | |
1850 | end)) | |
1851 | end | |
1852 | end | |
1853 | end | |
1854 | end | |
1855 | ||
1856 | function killnearest2(position,range) | |
1857 | for i,v in ipairs(workspace:GetChildren()) do | |
1858 | local body = v:GetChildren() | |
1859 | for part = 1, #body do | |
1860 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1861 | if(body[part].Position - position).Magnitude < range then | |
1862 | if v.ClassName == "Model" then | |
1863 | KillChildren(v) | |
1864 | end | |
1865 | end | |
1866 | end | |
1867 | end | |
1868 | end | |
1869 | end | |
1870 | ||
1871 | function killnearest3(position,range) | |
1872 | for i,v in ipairs(workspace:GetChildren()) do | |
1873 | local body = v:GetChildren() | |
1874 | for part = 1, #body do | |
1875 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1876 | if(body[part].Position - position).Magnitude < range then | |
1877 | if v.ClassName == "Model" then | |
1878 | KillChildren1(v) | |
1879 | end | |
1880 | end | |
1881 | end | |
1882 | end | |
1883 | end | |
1884 | end | |
1885 | ||
1886 | function CreateDebreeRing1(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
1887 | if FLOOR ~= nil then | |
1888 | coroutine.resume(coroutine.create(function() | |
1889 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
1890 | PART.CFrame = CF(POSITION) | |
1891 | for i = 1, 45 do | |
1892 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
1893 | RingPiece.Material = FLOOR.Material | |
1894 | RingPiece.Color = FLOOR.Color | |
1895 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1896 | Debris:AddItem(RingPiece,SWAIT) | |
1897 | end | |
1898 | PART:remove() | |
1899 | end)) | |
1900 | end | |
1901 | end | |
1902 | ||
1903 | function CreateFlyingDebree1(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
1904 | if FLOOR ~= nil then | |
1905 | for i = 1, AMOUNT do | |
1906 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
1907 | DEBREE.Material = FLOOR.Material | |
1908 | DEBREE.Color = FLOOR.Color | |
1909 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
1910 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
1911 | coroutine.resume(coroutine.create(function() | |
1912 | Swait(15) | |
1913 | DEBREE.Parent = workspace | |
1914 | DEBREE.CanCollide = true | |
1915 | Debris:AddItem(DEBREE,SWAIT) | |
1916 | end)) | |
1917 | end | |
1918 | end | |
1919 | end | |
1920 | ||
1921 | function ApplyDamage1(Humanoid,Damage,CritRate,CritMultiplier,DoesOneShot) | |
1922 | coroutine.resume(coroutine.create(function() | |
1923 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1924 | defence.Name = ("HitBy"..Player.Name) | |
1925 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1926 | Damage = Damage * DAMAGEMULTIPLIER | |
1927 | if Humanoid.Health ~= 0 then | |
1928 | local CritChance = MRANDOM(1,100) | |
1929 | if CritChance < CritRate + 1 then | |
1930 | Damage = Damage*CritMultiplier | |
1931 | end | |
1932 | if Damage > Humanoid.Health then | |
1933 | Damage = math.ceil(Humanoid.Health) | |
1934 | if Damage == 0 then | |
1935 | Damage = 0.1 | |
1936 | end | |
1937 | end | |
1938 | if DoesOneShot == false then | |
1939 | for _, c in pairs(Humanoid.Parent:GetChildren()) do | |
1940 | if c.Name ~= "HumanoidRootPart" and c.Name ~= "Torso" and c.Name ~= "Head" and c.Name ~= "UpperTorso" and c.Name ~= "LowerTorso" then | |
1941 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1942 | if MRANDOM(1,20) == 1 then | |
1943 | Shatter(c) | |
1944 | end | |
1945 | end | |
1946 | end | |
1947 | end | |
1948 | Humanoid.Health = Humanoid.Health - Damage | |
1949 | if Humanoid.Parent:FindFirstChild("Head") then | |
1950 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1) | |
1951 | if CritChance < CritRate + 1 then | |
1952 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0)) | |
1953 | else | |
1954 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1955 | end | |
1956 | end | |
1957 | elseif DoesOneShot == true then | |
1958 | --print("["..Humanoid.Parent.Name.."]: One shot!? Really!?!?") | |
1959 | Humanoid.Parent:BreakJoints() | |
1960 | if Humanoid.Parent:FindFirstChild("Head") then | |
1961 | StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "INF", C3(1, 0, 0)) | |
1962 | end | |
1963 | for _, c in pairs(Humanoid.Parent:GetChildren()) do | |
1964 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1965 | Shatter(c) | |
1966 | end | |
1967 | end | |
1968 | end | |
1969 | if Humanoid.Health == 0 then | |
1970 | --print("["..Humanoid.Parent.Name.."]: It's like stepping on glass, but worse!") | |
1971 | SpawnSoul(Humanoid) | |
1972 | for _, c in pairs(Humanoid.Parent:GetChildren()) do | |
1973 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
1974 | Shatter(c) | |
1975 | end | |
1976 | end | |
1977 | end | |
1978 | end | |
1979 | end)) | |
1980 | end | |
1981 | ||
1982 | function AoEDamage1(position,radius,min,max,maxstrength,critrate,critmultiplier,BESERK) | |
1983 | local dmg = math.random(10000,100000) | |
1984 | for i,v in ipairs(workspace:GetChildren()) do | |
1985 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1986 | local body = v:GetChildren() | |
1987 | for part = 1, #body do | |
1988 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1989 | if(body[part].Position - position).Magnitude < radius then | |
1990 | if v.ClassName == "Model" then | |
1991 | if v:FindFirstChildOfClass("Humanoid") then | |
1992 | ApplyDamage1(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier,BESERK) | |
1993 | local bv = Instance.new("BodyVelocity") | |
1994 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1995 | bv.velocity = CF(position,body[part].Position).lookVector*maxstrength | |
1996 | bv.Parent = body[part] | |
1997 | Debris:AddItem(bv,0.2) | |
1998 | end | |
1999 | end | |
2000 | end | |
2001 | end | |
2002 | end | |
2003 | end | |
2004 | if v:FindFirstChild("HitBy"..Player.Name) then | |
2005 | v:FindFirstChild("HitBy"..Player.Name):remove() | |
2006 | end | |
2007 | end | |
2008 | end | |
2009 | ||
2010 | local HANDFOLDER = IT("Folder",Weapon) | |
2011 | HANDFOLDER.Name = "Hands" | |
2012 | ||
2013 | --//=================================\\ | |
2014 | --|| ATTACK FUNCTIONS AND STUFF | |
2015 | --\\=================================// | |
2016 | ||
2017 | function AttackTemplate() | |
2018 | ATTACK = true | |
2019 | Rooted = false | |
2020 | for i=0, 1, 0.1 / Animation_Speed do | |
2021 | Swait() | |
2022 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2023 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.1 / Animation_Speed) | |
2024 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
2025 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
2026 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2027 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2028 | end | |
2029 | ATTACK = false | |
2030 | Rooted = false | |
2031 | end | |
2032 | ||
2033 | function turnto(pos) | |
2034 | RootPart.CFrame = CF(RootPart.Position,VT(pos.X,RootPart.Position.Y,pos.Z)) | |
2035 | end | |
2036 | ||
2037 | function Fire() | |
2038 | ATTACK = true | |
2039 | Rooted = true | |
2040 | CreateSound("169445572", RightArm, 2, 1.6) | |
2041 | for i=0, 5, 0.1 / Animation_Speed2 do | |
2042 | Swait() | |
2043 | turnto(Mouse.Hit.p) | |
2044 | MagicSphere(0.8,15,RightArm.CFrame * CF(0,-1.5,0),"CGA brown") | |
2045 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2) | |
2046 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2) | |
2047 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
2048 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
2049 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
2050 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
2051 | end | |
2052 | local aimpos = Mouse.Hit.p | |
2053 | createfireball(4,8,RightArm.CFrame * CF(0,-5,0).p,CF(RightArm.CFrame * CF(0,-5,0).p,aimpos).lookVector*100) | |
2054 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
2055 | Swait() | |
2056 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.4 / Animation_Speed2) | |
2057 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.2 / Animation_Speed2) | |
2058 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
2059 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
2060 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
2061 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
2062 | end | |
2063 | ATTACK = false | |
2064 | Rooted = false | |
2065 | end | |
2066 | ||
2067 | function PinkPunch() | |
2068 | ATTACK = true | |
2069 | Rooted = false | |
2070 | local SPEED = Speed | |
2071 | Speed = 8 | |
2072 | CreateSound("136007472", RightArm, 10, 1.1) | |
2073 | for i=0, 3, 0.1 / Animation_Speed do | |
2074 | Swait() | |
2075 | turnto(Mouse.Hit.p) | |
2076 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Pink",VT(-1/15,-1/15,-1/15)) | |
2077 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Pink",VT(-2/15,-2/15,-2/15)) | |
2078 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
2079 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
2080 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2081 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2082 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed) | |
2083 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed) | |
2084 | end | |
2085 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2086 | Swait() | |
2087 | turnto(Mouse.Hit.p) | |
2088 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
2089 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2090 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2091 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2092 | RightHip.C0 = Clerp(RightHip.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)), 1 / Animation_Speed) | |
2093 | LeftHip.C0 = Clerp(LeftHip.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)), 1 / Animation_Speed) | |
2094 | end | |
2095 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Pink", "Punch", VT(50,50,50),false) | |
2096 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
2097 | PART.Shape = "Ball" | |
2098 | local bv = Instance.new("BodyVelocity") | |
2099 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2100 | bv.velocity = RootPart.CFrame.lookVector*600 | |
2101 | bv.Parent = PART | |
2102 | bv.Name = "PROJECTILEVELOCITY" | |
2103 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Pink",VT(2.5,0.2,2.5)) | |
2104 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Pink",VT(3,0.2,3)) | |
2105 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Pink",VT(2,0.6,2)) | |
2106 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Pink",VT(2.2,0.6,2.2)) | |
2107 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
2108 | coroutine.resume(coroutine.create(function() | |
2109 | for i = 1, 10 do | |
2110 | Swait() | |
2111 | PART.Transparency = PART.Transparency + 0.2/10 | |
2112 | PART.Size = PART.Size + VT(5,5,5) | |
2113 | killnearest3(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
2114 | end | |
2115 | PART:Destroy() | |
2116 | end)) | |
2117 | for i=0, 1, 0.1 / Animation_Speed do | |
2118 | Swait() | |
2119 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
2120 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
2121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2123 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2124 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2125 | end | |
2126 | Speed = SPEED | |
2127 | ATTACK = false | |
2128 | Rooted = false | |
2129 | end | |
2130 | ||
2131 | function GoldenPunch() | |
2132 | ATTACK = true | |
2133 | Rooted = false | |
2134 | local SPEED = Speed | |
2135 | Speed = 8 | |
2136 | CreateSound("169445572", RightArm, 10, 1.1) | |
2137 | for i=0, 4, 0.1 / Animation_Speed do | |
2138 | Swait() | |
2139 | turnto(Mouse.Hit.p) | |
2140 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15)) | |
2141 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15)) | |
2142 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
2143 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
2144 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2145 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2146 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed) | |
2147 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed) | |
2148 | end | |
2149 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2150 | Swait() | |
2151 | turnto(Mouse.Hit.p) | |
2152 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
2153 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2154 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2155 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2156 | RightHip.C0 = Clerp(RightHip.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)), 1 / Animation_Speed) | |
2157 | LeftHip.C0 = Clerp(LeftHip.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)), 1 / Animation_Speed) | |
2158 | end | |
2159 | local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "Gold", "Punch", VT(50,50,50),false) | |
2160 | PART.CFrame = RootPart.CFrame * CF(0,0,-25) | |
2161 | PART.Shape = "Ball" | |
2162 | local bv = Instance.new("BodyVelocity") | |
2163 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2164 | bv.velocity = RootPart.CFrame.lookVector*600 | |
2165 | bv.Parent = PART | |
2166 | bv.Name = "PROJECTILEVELOCITY" | |
2167 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2.5,0.2,2.5)) | |
2168 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(3,0.2,3)) | |
2169 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(2,0.6,2)) | |
2170 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(2.2,0.6,2.2)) | |
2171 | CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10) | |
2172 | coroutine.resume(coroutine.create(function() | |
2173 | for i = 1, 10 do | |
2174 | Swait() | |
2175 | PART.Transparency = PART.Transparency + 0.2/10 | |
2176 | PART.Size = PART.Size + VT(5,5,5) | |
2177 | killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame) | |
2178 | end | |
2179 | PART:Destroy() | |
2180 | end)) | |
2181 | for i=0, 1, 0.1 / Animation_Speed do | |
2182 | Swait() | |
2183 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
2184 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
2185 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2186 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2187 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2188 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2189 | end | |
2190 | Speed = SPEED | |
2191 | ATTACK = false | |
2192 | Rooted = false | |
2193 | end | |
2194 | ||
2195 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
2196 | coroutine.resume(coroutine.create(function() | |
2197 | local METEOR = IT("Model",Effects) | |
2198 | METEOR.Name = "Meteorite" | |
2199 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2200 | METEOR.PrimaryPart = CENTER | |
2201 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
2202 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2203 | for i = 1, 15 do | |
2204 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) | |
2205 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
2206 | end | |
2207 | if ISDEBREE ~= true then | |
2208 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2209 | else | |
2210 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2211 | end | |
2212 | local IMPACT = false | |
2213 | CreateSound(463593339, CENTER, 10, 0.6) | |
2214 | if SIZE >= 3.5 then | |
2215 | for i = 1, MRANDOM(3,7) do | |
2216 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
2217 | end | |
2218 | end | |
2219 | for i = 1, 200 do | |
2220 | Swait() | |
2221 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
2222 | if HITFLOOR == nil then | |
2223 | local ORI = CENTER.Orientation | |
2224 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
2225 | else | |
2226 | if HITFLOOR.Anchored == true then | |
2227 | CreateDebreeRing1(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
2228 | CreateFlyingDebree1(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
2229 | end | |
2230 | IMPACT = true | |
2231 | break | |
2232 | end | |
2233 | end | |
2234 | if IMPACT == true then | |
2235 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2236 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
2237 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
2238 | killnearest2(CENTER.Position,30*SIZE) | |
2239 | end | |
2240 | METEOR:remove() | |
2241 | end)) | |
2242 | end | |
2243 | ||
2244 | function Q() | |
2245 | ATTACK = true | |
2246 | Rooted = false | |
2247 | CreateSound(1368573150, RightArm, 3, 1.5) | |
2248 | for i=0, 0.6, 0.1 / Animation_Speed do | |
2249 | Swait() | |
2250 | WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2252 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2253 | end | |
2254 | local POWER1 = 0 | |
2255 | repeat | |
2256 | Swait() | |
2257 | WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2258 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2259 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2260 | POWER1 = POWER1 + 10 | |
2261 | if POWER1 >= 100 then | |
2262 | POWER1 = 100 | |
2263 | end | |
2264 | until KEYHOLD == false | |
2265 | if POWER1 < 1 then | |
2266 | SpawnMeteor(Mouse.Hit.p/2) | |
2267 | else | |
2268 | if POWER1 < 100 then | |
2269 | POWER1 = 100 | |
2270 | end | |
2271 | SpawnMeteor(Mouse.Hit.p,POWER1/59) | |
2272 | end | |
2273 | ATTACK = false | |
2274 | Rooted = false | |
2275 | end | |
2276 | ||
2277 | function Mach20() | |
2278 | local ORIGIN = RootPart.Position | |
2279 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
2280 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
2281 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Pearl") | |
2282 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
2283 | SOUNDPART.CFrame = RootPart.CFrame | |
2284 | Debris:AddItem(SOUNDPART,5) | |
2285 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
2286 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z)) | |
2287 | Swait() | |
2288 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4)) | |
2289 | CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6)) | |
2290 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Pearl") | |
2291 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "Sound", VT(0,0,0)) | |
2292 | SOUNDPART.CFrame = RootPart.CFrame | |
2293 | Debris:AddItem(SOUNDPART,5) | |
2294 | CreateSound("1295446488", SOUNDPART, 2, 1) | |
2295 | if MRANDOM(1,8) == 1 then | |
2296 | ATTACK = true | |
2297 | Rooted = true | |
2298 | local FRUITSTABLE = { | |
2299 | {MeshId = "16190555", TextureId = "16190577", Color = "Really red"}, | |
2300 | {MeshId = "119574562", TextureId = "64374853", Color = "New Yeller"}, | |
2301 | {MeshId = "24394186", TextureId = "24394178", Color = "Brown"} | |
2302 | } | |
2303 | local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)] | |
2304 | local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false) | |
2305 | CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0)) | |
2306 | FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0) | |
2307 | weldBetween(RightArm,FRUITMODEL) | |
2308 | for i=0, 4, 0.1 / Animation_Speed do | |
2309 | Swait() | |
2310 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2311 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2312 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2313 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2314 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2315 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2316 | end | |
2317 | CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10) | |
2318 | FRUITMODEL:remove() | |
2319 | for i = 1, 15 do | |
2320 | Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15) | |
2321 | end | |
2322 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2323 | Swait() | |
2324 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2325 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2326 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2327 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2328 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2329 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2330 | end | |
2331 | ATTACK = false | |
2332 | Rooted = false | |
2333 | end | |
2334 | end | |
2335 | ||
2336 | function ImplosionCollision() | |
2337 | ATTACK = true | |
2338 | Rooted = true | |
2339 | CreateSound("169445572", RightArm, 10, 0.8) | |
2340 | for i=0, 8, 0.1 / Animation_Speed do | |
2341 | Swait() | |
2342 | turnto(Mouse.Hit.p) | |
2343 | CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Gold",VT(0.2,0,0.2)) | |
2344 | Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1.1) | |
2345 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"New Yeller",VT(0.001,0.001,1),0) | |
2346 | MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"Gold",VT(0.001,0.001,2),0) | |
2347 | MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Deep orange",VT(-1/15,-1/15,-1/15)) | |
2348 | MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"Gold",VT(-2/15,-2/15,-2/15)) | |
2349 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed) | |
2350 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed) | |
2351 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2352 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2353 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed) | |
2354 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed) | |
2355 | end | |
2356 | for i=0, 0.15, 0.1 / Animation_Speed do | |
2357 | Swait() | |
2358 | turnto(Mouse.Hit.p) | |
2359 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed) | |
2360 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2361 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2362 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2363 | RightHip.C0 = Clerp(RightHip.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)), 1 / Animation_Speed) | |
2364 | LeftHip.C0 = Clerp(LeftHip.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)), 1 / Animation_Speed) | |
2365 | end | |
2366 | MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Gold",VT(-0.04,-0.04,-0.04)) | |
2367 | MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035)) | |
2368 | coroutine.resume(coroutine.create(function() | |
2369 | Swait(100) | |
2370 | for i = 1, 5 do | |
2371 | MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"Gold",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i)))) | |
2372 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4.5*i,0.2,4.5*i)) | |
2373 | CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5*i,0.2,5*i)) | |
2374 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"Gold",VT(4*i,0.6,4*i)) | |
2375 | CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"Gold",VT(5.2*i,0.6,5.2*i)) | |
2376 | end | |
2377 | killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame) | |
2378 | for i = 1, 5 do | |
2379 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
2380 | CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10) | |
2381 | end | |
2382 | coroutine.resume(coroutine.create(function() | |
2383 | for i = 1, 50 do | |
2384 | Swait() | |
2385 | for i = 1, 1 do | |
2386 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5) | |
2387 | end | |
2388 | for i = 1, 2 do | |
2389 | Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Gold", 1 + MRANDOM(1,30)/3) | |
2390 | end | |
2391 | end | |
2392 | end)) | |
2393 | end)) | |
2394 | for i=0, 4, 0.1 / Animation_Speed do | |
2395 | Swait() | |
2396 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed) | |
2397 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed) | |
2398 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2399 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2400 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2401 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed) | |
2402 | end | |
2403 | ATTACK = false | |
2404 | Rooted = false | |
2405 | end | |
2406 | ||
2407 | function W() | |
2408 | ATTACK = true | |
2409 | Rooted = true | |
2410 | UNANCHOR = false | |
2411 | RootPart.Anchored = true | |
2412 | MagicSphere(VT(0,0,0),15,Torso.CFrame,"Really red",VT(2,2,2)) | |
2413 | MagicSphere(VT(0,0,0),15,Torso.CFrame,"Really red",VT(2,2,2)) | |
2414 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2415 | Swait() | |
2416 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2417 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
2418 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2419 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2420 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2421 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2422 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2423 | end | |
2424 | for i = 1, 10 do | |
2425 | Swait() | |
2426 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2427 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
2428 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
2429 | if c.ClassName == "Part" then | |
2430 | c.Transparency = c.Transparency + 0.1 | |
2431 | end | |
2432 | end | |
2433 | end | |
2434 | for i=0, 1, 0.1 / Animation_Speed do | |
2435 | Swait() | |
2436 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2437 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
2438 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -25) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2439 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2440 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2441 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2442 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2443 | end | |
2444 | local ORIGIN = RootPart.Position | |
2445 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),ORIGIN) | |
2446 | for i=0, 1, 0.1 / Animation_Speed do | |
2447 | Swait() | |
2448 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2449 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Maroon",VT(0.5,0,0.5)) | |
2450 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2451 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2452 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2453 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2454 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2455 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2456 | end | |
2457 | UNANCHOR = true | |
2458 | RootPart.Anchored = false | |
2459 | for i = 1, 10 do | |
2460 | Swait() | |
2461 | CreateRing(VT(0,0,0),false,0,15,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(1,1,0)) | |
2462 | MagicSphere(VT(0,0.2,0),15,CF(RootPart.Position-VT(0,3,0)),"Really red",VT(0.5,0,0.5)) | |
2463 | for _, c in pairs(HANDFOLDER:GetChildren()) do | |
2464 | if c.ClassName == "Part" then | |
2465 | c.Transparency = c.Transparency - 0.1 | |
2466 | end | |
2467 | end | |
2468 | end | |
2469 | ATTACK = false | |
2470 | Rooted = false | |
2471 | end | |
2472 | ||
2473 | function t() | |
2474 | ATTACK = true | |
2475 | --Rooted = true | |
2476 | for i=0, 2, 0.1 / Animation_Speed do | |
2477 | Swait() | |
2478 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2479 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2480 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2481 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2482 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed) | |
2483 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed) | |
2484 | end | |
2485 | local winz = CreateSound("958211048", Head, 50, 1) | |
2486 | local loop = 0 | |
2487 | repeat | |
2488 | Swait() | |
2489 | loop = loop + 1 | |
2490 | if loop == 25 then | |
2491 | loop = 0 | |
2492 | Humanoid.Jump = true | |
2493 | end | |
2494 | until winz.Playing == false | |
2495 | ATTACK = false | |
2496 | --Rooted = false | |
2497 | end | |
2498 | ||
2499 | local asd = Instance.new("ParticleEmitter") | |
2500 | asd.Color = ColorSequence.new(Color3.new(0, 0, 0)) | |
2501 | asd.LightEmission = .1 | |
2502 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
2503 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 4),NumberSequenceKeypoint.new(1, 8)}) | |
2504 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
2505 | asd.Transparency = bbb | |
2506 | asd.Size = aaa | |
2507 | asd.ZOffset = .9 | |
2508 | asd.Acceleration = Vector3.new(0, 0, 0) | |
2509 | asd.LockedToPart = false | |
2510 | asd.EmissionDirection = "Back" | |
2511 | asd.Lifetime = NumberRange.new(1, 2) | |
2512 | asd.Rotation = NumberRange.new(-100, 100) | |
2513 | asd.RotSpeed = NumberRange.new(-100, 100) | |
2514 | asd.Speed = NumberRange.new(6) | |
2515 | asd.Enabled = false | |
2516 | asd.Drag = 3 | |
2517 | asd.VelocitySpread = 10000 | |
2518 | ||
2519 | function poofcloud(pos,amount) | |
2520 | local prt = CreatePart(3, Effects, "Neon", 0, 1, "Royal purple", "Poof", VT(0,0,0)) | |
2521 | prt.Anchored = true | |
2522 | prt.CFrame = CF(pos) | |
2523 | local prtcl = asd:Clone() | |
2524 | prtcl.Parent = prt | |
2525 | prtcl:Emit(amount) | |
2526 | CreateSound("966888080", prt, 6, (math.random(12,16)/10)) | |
2527 | coroutine.resume(coroutine.create(function() | |
2528 | wait(3) | |
2529 | prt:remove() | |
2530 | end)) | |
2531 | end | |
2532 | ||
2533 | local naeeym2 = Instance.new("BillboardGui",Character) | |
2534 | naeeym2.AlwaysOnTop = true | |
2535 | naeeym2.Size = UDim2.new(5,35,2,35) | |
2536 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
2537 | naeeym2.Adornee = Character.Head | |
2538 | naeeym2.Name = "Name" | |
2539 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
2540 | tecks2.BackgroundTransparency = 1 | |
2541 | tecks2.TextScaled = true | |
2542 | tecks2.BorderSizePixel = 0 | |
2543 | tecks2.Text = "Laber" | |
2544 | tecks2.Font = "Antique" | |
2545 | tecks2.TextSize = 30 | |
2546 | tecks2.TextStrokeTransparency = 0 | |
2547 | tecks2.TextColor3 = Color3.new(1,1,1) | |
2548 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
2549 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
2550 | tecks2.Parent = naeeym2 | |
2551 | ||
2552 | function ghost() | |
2553 | tecks2.TextTransparency = 1 | |
2554 | poofcloud(Torso.Position,50) | |
2555 | g = Character:GetChildren() | |
2556 | for i = 1, #g do | |
2557 | if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then | |
2558 | g[i].Transparency = 1 | |
2559 | Head.face.Transparency = 1 | |
2560 | elseif g[i].ClassName == "Accessory" then | |
2561 | g[i].Handle.Transparency = 1 | |
2562 | end | |
2563 | end | |
2564 | g = Weapon:GetChildren() | |
2565 | for i = 1, #g do | |
2566 | if g[i].ClassName == "Part" then | |
2567 | g[i].Transparency = 1 | |
2568 | end | |
2569 | end | |
2570 | end | |
2571 | ||
2572 | function Trail(Part) | |
2573 | local TRAIL = Part:Clone() | |
2574 | TRAIL.CanCollide = false | |
2575 | TRAIL.Anchored = true | |
2576 | TRAIL.Parent = Effects | |
2577 | TRAIL.Name = "Trail" | |
2578 | local TRANS = Part.Transparency | |
2579 | coroutine.resume(coroutine.create(function() | |
2580 | for i = 1, 20 do | |
2581 | Swait() | |
2582 | TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20) | |
2583 | end | |
2584 | TRAIL:remove() | |
2585 | end)) | |
2586 | end | |
2587 | ||
2588 | function noghost() | |
2589 | tecks2.TextTransparency = 0 | |
2590 | poofcloud(Torso.Position,50) | |
2591 | g = Character:GetChildren() | |
2592 | for i = 1, #g do | |
2593 | if g[i].ClassName == "Part" and g[i].Name ~= "HumanoidRootPart" then | |
2594 | g[i].Transparency = 0 | |
2595 | Head.face.Transparency = 0 | |
2596 | elseif g[i].ClassName == "Accessory" then | |
2597 | g[i].Handle.Transparency = 0 | |
2598 | end | |
2599 | end | |
2600 | g = Weapon:GetChildren() | |
2601 | for i = 1, #g do | |
2602 | if g[i].ClassName == "Part" then | |
2603 | g[i].Transparency = 0 | |
2604 | end | |
2605 | end | |
2606 | end | |
2607 | ||
2608 | local SHIELD = false | |
2609 | ||
2610 | function shield() | |
2611 | if SHIELD == false then | |
2612 | SHIELD = true | |
2613 | coroutine.resume(coroutine.create(function() | |
2614 | local woa = IT("Part",Effects) | |
2615 | woa.Size = VT(5,12,0) | |
2616 | woa.CFrame = RootPart.CFrame * CF(0,3,-7) | |
2617 | woa.Anchored = true | |
2618 | local mesh = IT("SpecialMesh",woa) | |
2619 | mesh.MeshType = "FileMesh" | |
2620 | mesh.MeshId = "rbxassetid://1044207043" | |
2621 | mesh.TextureId = "rbxassetid://1044207051" | |
2622 | mesh.Scale = VT(3,3,3) | |
2623 | CreateSound("638062404", woa, 50, 1) | |
2624 | local woosh = woa.Touched:Connect(function(hit) | |
2625 | if hit.Parent.ClassName == "Model" then | |
2626 | hit.Parent:BreakJoints() | |
2627 | CreateSound("978878312", hit, 2, 1) | |
2628 | elseif hit.ClassName == "Part" and hit.Anchored == false then | |
2629 | hit:remove() | |
2630 | end | |
2631 | end) | |
2632 | repeat | |
2633 | Swait() | |
2634 | woa.CFrame = RootPart.CFrame * CF(0,3,-7) | |
2635 | until SHIELD == false | |
2636 | woosh:disconnect() | |
2637 | CreateSound("638062404", woa, 50, 1) | |
2638 | woa.Anchored = false | |
2639 | local bv = Instance.new("BodyVelocity") | |
2640 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2641 | bv.velocity = RootPart.CFrame.lookVector*150 | |
2642 | bv.Parent = woa | |
2643 | bv.Name = "DASH" | |
2644 | local paw = woa.Touched:Connect(function(hit) | |
2645 | if hit.Parent.ClassName == "Model" then | |
2646 | woa:remove() | |
2647 | hit.Parent:BreakJoints() | |
2648 | CreateSound("978878312", hit, 2, 1) | |
2649 | end | |
2650 | end) | |
2651 | end)) | |
2652 | elseif SHIELD == true then | |
2653 | SHIELD = false | |
2654 | end | |
2655 | end | |
2656 | ||
2657 | function dab() | |
2658 | ATTACK = true | |
2659 | Rooted = true | |
2660 | local lookatmydab = CreateSound("420701460", Head, 50, 1) | |
2661 | sick.Volume = 10 | |
2662 | for i=0, 1, 0.1 / Animation_Speed do | |
2663 | killnearest1(RootPart.Position,25,150) | |
2664 | Swait() | |
2665 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2666 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2667 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(15), RAD(-35), RAD(-100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*4) | |
2668 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*4) | |
2669 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2670 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed*4) | |
2671 | end | |
2672 | repeat | |
2673 | killnearest1(RootPart.Position,25,150) | |
2674 | Swait() | |
2675 | until lookatmydab.Playing == false | |
2676 | sick.Volume = 1 | |
2677 | ATTACK = false | |
2678 | Rooted = false | |
2679 | end | |
2680 | ||
2681 | function go() | |
2682 | ATTACK = true | |
2683 | Rooted = true | |
2684 | local target = nil | |
2685 | local targettorso = nil | |
2686 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2687 | target = Mouse.Target.Parent.Humanoid | |
2688 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2689 | end | |
2690 | if target ~= nil then | |
2691 | targettorso.Anchored = true | |
2692 | for i=0, 1, 0.1 / Animation_Speed do | |
2693 | Swait() | |
2694 | RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0) | |
2695 | targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0) | |
2696 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2697 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2698 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2699 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2700 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2701 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(-15), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2702 | end | |
2703 | local omae = CreateSound("940337206", Head, 50, 1) | |
2704 | repeat | |
2705 | Swait() | |
2706 | RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0) | |
2707 | if target then | |
2708 | targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0) | |
2709 | end | |
2710 | until omae.Playing == false | |
2711 | if target then | |
2712 | local nani = CreateSound("948494432", targettorso, 50, 1) | |
2713 | repeat | |
2714 | Swait() | |
2715 | RootPart.CFrame = CFrame.new(RootPart.Position,targettorso.Position) * CFrame.new(0, 0, 0) | |
2716 | if target then | |
2717 | targettorso.CFrame = CFrame.new(targettorso.Position,RootPart.Position) * CFrame.new(0, 0, 0) | |
2718 | end | |
2719 | until nani.Playing == false | |
2720 | target.Parent:BreakJoints() | |
2721 | targettorso.Anchored = false | |
2722 | local boom = Instance.new("Explosion",workspace) | |
2723 | boom.Position = targettorso.Position | |
2724 | CreateSound("691216625", targettorso, 50, 1) | |
2725 | end | |
2726 | end | |
2727 | Rooted = false | |
2728 | ATTACK = false | |
2729 | end | |
2730 | ||
2731 | function yo() | |
2732 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2733 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2734 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2735 | if TORSO and HUM.Health > 0 then | |
2736 | ATTACK = true | |
2737 | Rooted = false | |
2738 | local GYRO = IT("BodyGyro",RootPart) | |
2739 | GYRO.D = 275 | |
2740 | GYRO.P = 20000 | |
2741 | GYRO.MaxTorque = VT(0,40000,0) | |
2742 | for i=0, 0.8, 0.1 / Animation_Speed do | |
2743 | Swait() | |
2744 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
2745 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2746 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2747 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2748 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2749 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2750 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2751 | end | |
2752 | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) | |
2753 | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
2754 | local grav = Instance.new("BodyPosition",TORSO) | |
2755 | grav.D = 1500 | |
2756 | grav.P = 20000 | |
2757 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
2758 | grav.position = TORSO.Position+VT(0,15,0) | |
2759 | Debris:AddItem(grav,10) | |
2760 | Debris:AddItem(MAGIC,10) | |
2761 | CreateSound(429459101, Torso, 7, 1, false) | |
2762 | CreateSound(429459101, TORSO, 7, 1, false) | |
2763 | for i=0, 1, 0.1 / Animation_Speed do | |
2764 | Swait() | |
2765 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2766 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2767 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2768 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(125), RAD(45), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2769 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2770 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2771 | end | |
2772 | GYRO:remove() | |
2773 | ATTACK = false | |
2774 | Rooted = false | |
2775 | end | |
2776 | end | |
2777 | end | |
2778 | ||
2779 | function ro() | |
2780 | ATTACK = true | |
2781 | Rooted = true | |
2782 | local ROAR = CreateSound("199978176", Head, 10, 1) | |
2783 | Swait() | |
2784 | repeat | |
2785 | Swait() | |
2786 | ROAR.Parent = Head | |
2787 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2788 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2789 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2790 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2791 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2792 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2793 | until ROAR.Playing == false | |
2794 | ATTACK = false | |
2795 | Rooted = false | |
2796 | end | |
2797 | ||
2798 | function bl() | |
2799 | local HASSTARTED = false | |
2800 | local target = nil | |
2801 | local targettorso = nil | |
2802 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then | |
2803 | if Mouse.Target.Parent.Humanoid.PlatformStand == false then | |
2804 | target = Mouse.Target.Parent.Humanoid | |
2805 | targettorso = Mouse.Target.Parent:FindFirstChild("Torso") or Mouse.Target.Parent:FindFirstChild("UpperTorso") | |
2806 | end | |
2807 | end | |
2808 | if target ~= nil then | |
2809 | CreateSound("305685800", Head, 10, 1) | |
2810 | targettorso.Anchored = true | |
2811 | HASSTARTED = true | |
2812 | ATTACK = true | |
2813 | Rooted = true | |
2814 | RootPart.CFrame = targettorso.CFrame * CF(0,0,2) | |
2815 | coroutine.resume(coroutine.create(function() | |
2816 | Swait(10*100) | |
2817 | if HASSTARTED == true then | |
2818 | ATTACK = false | |
2819 | Rooted = false | |
2820 | UNANCHOR = true | |
2821 | end | |
2822 | end)) | |
2823 | UNANCHOR = false | |
2824 | RootPart.Anchored = true | |
2825 | coroutine.resume(coroutine.create(function() | |
2826 | for i=0, 3, 0.1 / Animation_Speed do | |
2827 | Swait() | |
2828 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.05 / Animation_Speed) | |
2829 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.05 / Animation_Speed) | |
2830 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.05 / Animation_Speed) | |
2831 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.05 / Animation_Speed) | |
2832 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
2833 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.05 / Animation_Speed) | |
2834 | end | |
2835 | for i=0, 3, 0.1 / Animation_Speed do | |
2836 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(85)), 0.5 / Animation_Speed) | |
2837 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-85)), 0.5 / Animation_Speed) | |
2838 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2839 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2840 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2841 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2842 | end | |
2843 | getbloody(targettorso,25) | |
2844 | Swait(5) | |
2845 | targettorso:remove() | |
2846 | Swait(15) | |
2847 | ATTACK = false | |
2848 | Rooted = false | |
2849 | HASSTARTED = false | |
2850 | UNANCHOR = true | |
2851 | end)) | |
2852 | end | |
2853 | end | |
2854 | ||
2855 | function low() | |
2856 | ATTACK = true | |
2857 | Rooted = true | |
2858 | for i=0, 2, 0.1 / Animation_Speed do | |
2859 | Swait() | |
2860 | MagicSphere(VT(0.2,0.2,0.2),15,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Black",VT(0.001,0.001,0.5),0.5) | |
2861 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2862 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2863 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2864 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2865 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2866 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2867 | end | |
2868 | CreateSound("3264923", Torso, 10, 3) | |
2869 | coroutine.resume(coroutine.create(function() | |
2870 | local FRAME = Torso.CFrame | |
2871 | MagicSphere(VT(3,3,3),450,FRAME,"Black",VT(-3/550,-3/550,-3/550),0) | |
2872 | for i = 1, 450 do | |
2873 | Swait() | |
2874 | MagicSphere(VT(0.2,0.2,0.2),15,CF(FRAME*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,FRAME.p),"Black",VT(0.001,0.001,2.5),0.5) | |
2875 | AoEDamage(FRAME.p,1,1500,1000000,-5,false,12,3,false) | |
2876 | end | |
2877 | MagicSphere(VT(6,6,6),70,FRAME,"Black",VT(1,1,1),0) | |
2878 | MagicSphere(VT(5,5,5),70,FRAME,"Black",VT(1,1,1),0.5) | |
2879 | AoEDamage(FRAME.p,55,1500,1000000,-5,false,2,30,false) | |
2880 | end)) | |
2881 | ATTACK = false | |
2882 | Rooted = false | |
2883 | end | |
2884 | ||
2885 | ||
2886 | local Decal = IT("Decal") | |
2887 | function MagicRing() | |
2888 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) | |
2889 | O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2890 | local decal = Decal:Clone() | |
2891 | decal.Parent = O1 | |
2892 | decal.Face = "Top" | |
2893 | decal.Texture = "http://www.roblox.com/asset/?id=917750924" | |
2894 | local decal2 = Decal:Clone() | |
2895 | decal2.Parent = O1 | |
2896 | decal2.Face = "Bottom" | |
2897 | decal2.Texture = "http://www.roblox.com/asset/?id=917750924" | |
2898 | return O1 | |
2899 | end | |
2900 | ||
2901 | local LEVEL = 1 | |
2902 | ||
2903 | function I() | |
2904 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 25, Character) | |
2905 | if HITFLOOR ~= nil then | |
2906 | do | |
2907 | local POWER = LEVEL | |
2908 | ATTACK = true | |
2909 | Rooted = true | |
2910 | local CENTER = MagicRing() | |
2911 | CENTER.CFrame = CF(HITPOS + VT(0, 0.1, 0)) | |
2912 | CreateSound("424777055", CENTER, 10, 1) | |
2913 | local RAIN = {} | |
2914 | for i = 1, 55 do | |
2915 | Swait() | |
2916 | CENTER.Size = CENTER.Size + VT(POWER, 0, POWER) / 3 | |
2917 | CENTER.CFrame = CENTER.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
2918 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, -0.2 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2919 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(5 + 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2920 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.15 + 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2921 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.15 + 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2922 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2923 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2924 | end | |
2925 | local MAXDIST = 15 | |
2926 | local DIRECTION = CF(RootPart.Position, VT(Mouse.Hit.p.X, HITPOS.Y, Mouse.Hit.p.Z)).lookVector | |
2927 | local HITFLOOR2, HITPOS2 = Raycast(RootPart.Position, DIRECTION, MAXDIST, Character) | |
2928 | local HITFLOOR3, HITPOS3 = Raycast(HITPOS2, CF(HITPOS2 + VT(0, 1, 0), HITPOS2 + VT(0, -1, 0)).lookVector, MAXDIST, Character) | |
2929 | local ORB = CreatePart(3, Effects, "Neon", 0, 1, "Gold", "ORB", VT(4, 4, 4)) | |
2930 | MakeForm(ORB, "Ball") | |
2931 | CreateSound("201858045", ORB, 10, 0.5) | |
2932 | for i = 0, 1, 0.1 / Animation_Speed do | |
2933 | Swait() | |
2934 | ORB.CFrame = RootPart.CFrame * CF(0, 10 + POWER * 3, 0) | |
2935 | ORB.Transparency = 0 | |
2936 | ORB.Size = ORB.Size + VT(POWER, POWER, POWER) / 7 | |
2937 | local POS = HITPOS + VT(MRANDOM(-CENTER.Size.X / 3, CENTER.Size.X / 3), 0, MRANDOM(-CENTER.Size.X / 3, CENTER.Size.X / 3)) | |
2938 | local RANGE = (POS - RootPart.CFrame * CF(0, 10 + POWER * 3, 0).p).Magnitude | |
2939 | local ZAPTABLE = Zap({ | |
2940 | StartPosition = POS, | |
2941 | TargetPosition = ORB.Position, | |
2942 | Character = workspace, | |
2943 | Color = "Gold", | |
2944 | Individual = true, | |
2945 | MaxRange = RANGE, | |
2946 | SegmentLength = POWER * 2, | |
2947 | Offset = 1 | |
2948 | }) | |
2949 | Debris:AddItem(ZAPTABLE.LightningModel, 0.1) | |
2950 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2951 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2952 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2953 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.15 + 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(45 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2954 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2955 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2956 | end | |
2957 | coroutine.resume(coroutine.create(function() | |
2958 | ORB.CFrame = CF(ORB.Position, HITPOS3) | |
2959 | local IMPACT = false | |
2960 | for i = 1, 400 do | |
2961 | Swait() | |
2962 | ORB.CFrame = ORB.CFrame * CF(0, 0, -1) | |
2963 | local HIT = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X / 2.2, Character) | |
2964 | if HIT ~= nil then | |
2965 | IMPACT = true | |
2966 | break | |
2967 | end | |
2968 | end | |
2969 | if IMPACT == true then | |
2970 | ORB.Transparency = 1 | |
2971 | local FRONT = ORB.CFrame * CF(0, 0, -1).p | |
2972 | ORB.CFrame = CF(ORB.Position, VT(FRONT.X, ORB.Position.Y, FRONT.Z)) | |
2973 | for i = 1, 35 do | |
2974 | if MRANDOM(1, 5) == 1 then | |
2975 | local POS = CF(ORB.Position) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) * CF(0, 0, -POWER * 15).p | |
2976 | local ZAPTABLE = Zap({ | |
2977 | SIZE = POWER, | |
2978 | StartPosition = ORB.Position, | |
2979 | TargetPosition = POS, | |
2980 | Character = workspace, | |
2981 | Color = "Gold", | |
2982 | Individual = true, | |
2983 | MaxRange = POWER * 35, | |
2984 | SegmentLength = POWER * 5, | |
2985 | Offset = 3 | |
2986 | }) | |
2987 | Debris:AddItem(ZAPTABLE.LightningModel, 0.1) | |
2988 | end | |
2989 | ORB.CFrame = ORB.CFrame * CF(0, 0, -ORB.Size.X / 1.5) | |
2990 | MagicSphere(ORB.Size * 1.1, 25, ORB.CFrame, BRICKC("Gold").Color, -ORB.Size / 35) | |
2991 | CreateWave(VT(ORB.Size.X, 1, ORB.Size.Z) * 5, 35, CF(ORB.Position - VT(0, ORB.Size.Y / 3, 0)) * ANGLES(RAD(0), RAD(i * 5), RAD(0)), true, 5, "Gold", -VT(ORB.Size.X / 24, 0, ORB.Size.Z / 24)) | |
2992 | killnearest(ORB.Position, ORB.Size.X * 2, 500) | |
2993 | Swait() | |
2994 | end | |
2995 | else | |
2996 | ORB:remove() | |
2997 | end | |
2998 | end)) | |
2999 | ATTACK = false | |
3000 | Rooted = false | |
3001 | coroutine.resume(coroutine.create(function() | |
3002 | for i = 1, 55 do | |
3003 | Swait() | |
3004 | CENTER.Size = CENTER.Size - VT(POWER, 0, POWER) | |
3005 | CENTER.CFrame = CENTER.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) | |
3006 | end | |
3007 | CENTER:remove() | |
3008 | end)) | |
3009 | end | |
3010 | end | |
3011 | end | |
3012 | ||
3013 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
3014 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
3015 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
3016 | local dmg = math.huge | |
3017 | if humanoid.Health > 0 then | |
3018 | if beserk == true then | |
3019 | humanoid.Health = 0 | |
3020 | else | |
3021 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
3022 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
3023 | if math.random(1,100) < critrate+1 then | |
3024 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
3025 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
3026 | else | |
3027 | humanoid.Health = humanoid.Health - dmg | |
3028 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
3029 | end | |
3030 | local defence = Instance.new("BoolValue",hit.Parent) | |
3031 | defence.Name = ("HitBy"..Player.Name) | |
3032 | game:GetService("Debris"):AddItem(defence, 0.25) | |
3033 | end | |
3034 | end | |
3035 | end | |
3036 | end | |
3037 | ||
3038 | function Attack1() | |
3039 | ATTACK = true | |
3040 | for i=0, 1, 0.1 / Animation_Speed2 do | |
3041 | Swait() | |
3042 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.4 / Animation_Speed2) | |
3043 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(75)), 0.15 / Animation_Speed2) | |
3044 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3045 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
3046 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
3047 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
3048 | end | |
3049 | local harm = FIST.Touched:Connect(function(hit) | |
3050 | dealdamage(hit,1500,1800,0,false,0,0) | |
3051 | end) | |
3052 | CreateSound("596439421", RightArm, 1, MRANDOM(7, 12) / 10) | |
3053 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3054 | Swait() | |
3055 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 0.4 / Animation_Speed2) | |
3056 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2) | |
3057 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3058 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
3059 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
3060 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
3061 | end | |
3062 | harm:disconnect() | |
3063 | ATTACK = false | |
3064 | end | |
3065 | ||
3066 | function Bomb() | |
3067 | ATTACK = true | |
3068 | Rooted = false | |
3069 | local GYRO = IT("BodyGyro",RootPart) | |
3070 | GYRO.D = 100 | |
3071 | GYRO.P = 2000 | |
3072 | GYRO.MaxTorque = VT(0,4000000,0) | |
3073 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
3074 | local BOMB = CreatePart(3, Effects, "Neon", 0, 1, "Pink", "Anime_Bomb", VT(0,0,0)) | |
3075 | for i=0, 2, 0.1 / Animation_Speed do | |
3076 | BOMB.CFrame = RootPart.CFrame*CF(0,5,0) | |
3077 | Swait() | |
3078 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,2,0), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = BOMB.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(0.1,0,0.1), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil}) | |
3079 | WACKYEFFECT({Time = 100, EffectType = "Block", Size = VT(2,2,2), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil}) | |
3080 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
3081 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3082 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3083 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3084 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3085 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3086 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(160), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3087 | end | |
3088 | GYRO:remove() | |
3089 | coroutine.resume(coroutine.create(function() | |
3090 | BOMB.CFrame = CF(BOMB.Position,Mouse.Hit.p) | |
3091 | local IMPACT = false | |
3092 | for i = 1,150 do | |
3093 | Swait() | |
3094 | if MRANDOM(1,5) == 1 then | |
3095 | WACKYEFFECT({Time = 50, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(1.8,1.8,1.8), Transparency = 0.8, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.CFrame*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, RotationX = MRANDOM(-25,25)/15, RotationY = MRANDOM(-25,25)/15, RotationZ = MRANDOM(-25,25)/15, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3096 | end | |
3097 | WACKYEFFECT({Time = 10, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil}) | |
3098 | BOMB.CFrame = BOMB.CFrame*CF(0,0,-1) | |
3099 | local HIT = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2, Character) | |
3100 | if HIT ~= nil then | |
3101 | IMPACT = true | |
3102 | break | |
3103 | end | |
3104 | end | |
3105 | if IMPACT == true then | |
3106 | killnearest3(BOMB.Position,5,2,2,VALUE1) | |
3107 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3108 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3109 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
3110 | else | |
3111 | BOMB:remove() | |
3112 | end | |
3113 | end)) | |
3114 | ATTACK = false | |
3115 | Rooted = false | |
3116 | end | |
3117 | ||
3118 | function kiss() | |
3119 | ATTACK = true | |
3120 | Rooted = false | |
3121 | local HASGRABBED = false | |
3122 | local GRABTARGET = nil | |
3123 | local TORS = nil | |
3124 | local WELD = nil | |
3125 | for i=0, 1, 0.1 / Animation_Speed do | |
3126 | Swait() | |
3127 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3128 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3129 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3130 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3131 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3132 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3133 | end | |
3134 | local GRAB1 = RightArm.Touched:Connect(function(hit) | |
3135 | if hit.Parent:FindFirstChild("Humanoid") then | |
3136 | if hit.Parent.Humanoid.Health ~= 0 then | |
3137 | UNANCHOR = false | |
3138 | RootPart.Anchored = true | |
3139 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
3140 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
3141 | WELD = weldBetween(RootPart,TORS) | |
3142 | HASGRABBED = true | |
3143 | Rooted = true | |
3144 | end | |
3145 | end | |
3146 | end) | |
3147 | local GRAB2 = LeftArm.Touched:Connect(function(hit) | |
3148 | if hit.Parent:FindFirstChild("Humanoid") then | |
3149 | if hit.Parent.Humanoid.Health ~= 0 then | |
3150 | UNANCHOR = false | |
3151 | RootPart.Anchored = true | |
3152 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
3153 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
3154 | WELD = weldBetween(RootPart,TORS) | |
3155 | HASGRABBED = true | |
3156 | Rooted = true | |
3157 | end | |
3158 | end | |
3159 | end) | |
3160 | for i=0, 1, 0.1 / Animation_Speed do | |
3161 | Swait() | |
3162 | if HASGRABBED == true then | |
3163 | break | |
3164 | end | |
3165 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3166 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3167 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3168 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3169 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3170 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3171 | end | |
3172 | GRAB1:disconnect() | |
3173 | GRAB2:disconnect() | |
3174 | if HASGRABBED == true then | |
3175 | TORS.Anchored = false | |
3176 | GRABTARGET = TORS.Parent | |
3177 | HED = GRABTARGET:FindFirstChild("Head") | |
3178 | for i=0, 2, 0.1 / Animation_Speed do | |
3179 | Swait() | |
3180 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3181 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3182 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3183 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3184 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3185 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3186 | end | |
3187 | local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Carnation pink", "Heart", VT(1,1,1), false) | |
3188 | local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0)) | |
3189 | CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
3190 | local ECH = 0 | |
3191 | CreateSound("247269322", Head, 10, 0.8) | |
3192 | for i=0, 8, 0.1 / Animation_Speed do | |
3193 | Swait() | |
3194 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3195 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed) | |
3196 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
3197 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3198 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3199 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
3200 | end | |
3201 | WELD:remove() | |
3202 | killnearest3(heart.Position,heart.Size.Y/2+2,2,RootPart.CFrame) | |
3203 | end | |
3204 | UNANCHOR = true | |
3205 | ATTACK = false | |
3206 | Rooted = false | |
3207 | end | |
3208 | ||
3209 | function jump() | |
3210 | Speed = 0 | |
3211 | ATTACK = true | |
3212 | --Rooted = true | |
3213 | for i=0, 2, 0.1 / Animation_Speed do | |
3214 | Swait() | |
3215 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1.2 * Player_Size) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3216 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3217 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3218 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3219 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3220 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3221 | end | |
3222 | CreateSound("2767090", Torso, 5, MRANDOM(7, 12) / 10) | |
3223 | CreateWave3(0,3.5,true,0.2,150,RootPart,-2,"Black") | |
3224 | CreateWave3(0,5,true,-0.2,150,RootPart,-2,"Black") | |
3225 | local bv = Instance.new("BodyVelocity") | |
3226 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3227 | bv.velocity = Vector3.new(0,300,0) | |
3228 | bv.Parent = Torso | |
3229 | bv.Name = "DASH" | |
3230 | ATTACK = false | |
3231 | --Rooted = false | |
3232 | game:GetService("Debris"):AddItem(bv, 0.5) | |
3233 | coroutine.resume(coroutine.create(function() | |
3234 | Swait(50) | |
3235 | HASJUMPED = false | |
3236 | Speed = 20 | |
3237 | end)) | |
3238 | end | |
3239 | ||
3240 | function Attack2() | |
3241 | ATTACK = true | |
3242 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3243 | Swait() | |
3244 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2) | |
3245 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2) | |
3246 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3247 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
3248 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
3249 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
3250 | end | |
3251 | local harm = FIST.Touched:Connect(function(hit) | |
3252 | dealdamage(hit,500,8000,0,false,0,0) | |
3253 | end) | |
3254 | CreateSound("596439421", RightArm, 1, MRANDOM(7, 12) / 10) | |
3255 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3256 | Swait() | |
3257 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.4 / Animation_Speed2) | |
3258 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.2 / Animation_Speed2) | |
3259 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3260 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
3261 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
3262 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
3263 | end | |
3264 | harm:disconnect() | |
3265 | ATTACK = false | |
3266 | Speed = 20 | |
3267 | end | |
3268 | ||
3269 | function Attack3() | |
3270 | ATTACK = true | |
3271 | for i=0, 1, 0.1 / Animation_Speed2 do | |
3272 | Swait() | |
3273 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.4 / Animation_Speed2) | |
3274 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(75)), 0.15 / Animation_Speed2) | |
3275 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(100)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3276 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
3277 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
3278 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
3279 | end | |
3280 | local harm = FIST.Touched:Connect(function(hit) | |
3281 | dealdamage(hit,854852652564,9999999999999999999999,0,false,0,0) | |
3282 | end) | |
3283 | CreateSound("596439421", RightArm, 1, MRANDOM(7, 12) / 10) | |
3284 | for i=0, 1.5, 0.1 / Animation_Speed2 do | |
3285 | Swait() | |
3286 | MagicSphere2(2,15,RightArm.CFrame * CF(0,1.2,0),"CHOSENBRICK") | |
3287 | RootPart.CFrame = RootPart.CFrame * CF(0,0,-0.3) | |
3288 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed2) | |
3289 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed2) | |
3290 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
3291 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
3292 | RightHip.C0 = Clerp(RightHip.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)), 0.15 / Animation_Speed2) | |
3293 | LeftHip.C0 = Clerp(LeftHip.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)), 0.15 / Animation_Speed2) | |
3294 | end | |
3295 | harm:disconnect() | |
3296 | ATTACK = false | |
3297 | end | |
3298 | ||
3299 | function swait(num) | |
3300 | if num == 0 or num == nil then | |
3301 | ArtificialHB.Event:wait() | |
3302 | else | |
3303 | for i = 0, num do | |
3304 | ArtificialHB.Event:wait() | |
3305 | end | |
3306 | end | |
3307 | end | |
3308 | ||
3309 | function chatfunc(text) | |
3310 | local chat = coroutine.wrap(function() | |
3311 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
3312 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
3313 | end | |
3314 | local Bill = Instance.new("BillboardGui",Character) | |
3315 | Bill.Size = UDim2.new(0,100,0,40) | |
3316 | Bill.StudsOffset = Vector3.new(0,3,0) | |
3317 | Bill.Adornee = Character.Head | |
3318 | Bill.Name = "TalkingBillBoard" | |
3319 | local Hehe = Instance.new("TextLabel",Bill) | |
3320 | Hehe.BackgroundTransparency = 1 | |
3321 | Hehe.BorderSizePixel = 0 | |
3322 | Hehe.Text = "" | |
3323 | Hehe.Font = "Garamond" | |
3324 | Hehe.TextSize = 40 | |
3325 | Hehe.TextStrokeTransparency = 0 | |
3326 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
3327 | coroutine.resume(coroutine.create(function() | |
3328 | while Hehe ~= nil do | |
3329 | swait() | |
3330 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
3331 | Hehe.Rotation = math.random(-5,5) | |
3332 | Hehe.TextColor3 = BRICKC(CHOSENBRICK1).Color | |
3333 | Hehe.TextStrokeColor3 = BRICKC(CHOSENBRICK2).Color | |
3334 | end | |
3335 | end)) | |
3336 | for i = 1,string.len(text),1 do | |
3337 | swait() | |
3338 | Hehe.Text = string.sub(text,1,i) | |
3339 | end | |
3340 | swait(90)--Re[math.random(1, 93)] | |
3341 | for i = 0, 1, .025 do | |
3342 | swait() | |
3343 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
3344 | Hehe.TextStrokeTransparency = i | |
3345 | Hehe.TextTransparency = i | |
3346 | end | |
3347 | Bill:Destroy() | |
3348 | end) | |
3349 | chat() | |
3350 | end | |
3351 | ||
3352 | function onChatted(msg) | |
3353 | chatfunc(msg) | |
3354 | end | |
3355 | ||
3356 | Player.Chatted:connect(onChatted) | |
3357 | ||
3358 | --//=================================\\ | |
3359 | --|| ASSIGN THINGS TO KEYS | |
3360 | --\\=================================// | |
3361 | ||
3362 | function MouseDown(Mouse) | |
3363 | if ATTACK == false then | |
3364 | if COMBO == 1 then | |
3365 | COMBO = "HALT" | |
3366 | Attack1() | |
3367 | COMBO = 2 | |
3368 | elseif COMBO == 2 then | |
3369 | COMBO = "HALT" | |
3370 | Attack2() | |
3371 | COMBO = 3 | |
3372 | elseif COMBO == 3 then | |
3373 | COMBO = "HALT" | |
3374 | Attack3() | |
3375 | COMBO = 1 | |
3376 | end | |
3377 | end | |
3378 | end | |
3379 | ||
3380 | function MouseUp(Mouse) | |
3381 | HOLD = false | |
3382 | end | |
3383 | ||
3384 | function KeyDown(Key) | |
3385 | KEYHOLD = true | |
3386 | if Key == "q" and ATTACK == false then | |
3387 | if CHOSENBRICK == "Gold" then | |
3388 | GoldenPunch() | |
3389 | elseif CHOSENBRICK == "New Yeller" then | |
3390 | ||
3391 | elseif CHOSENBRICK == "Really red" then | |
3392 | Q() | |
3393 | elseif CHOSENBRICK == "Really blue" then | |
3394 | shield() | |
3395 | elseif CHOSENBRICK == "Pink" then | |
3396 | kiss() | |
3397 | elseif CHOSENBRICK == "Black" then | |
3398 | jump() | |
3399 | elseif CHOSENBRICK == "Deep orange" then | |
3400 | ||
3401 | elseif CHOSENBRICK == "RAINBOW" then | |
3402 | ||
3403 | end | |
3404 | end | |
3405 | ||
3406 | if Key == "z" and ATTACK == false then | |
3407 | if CHOSENBRICK == "Gold" then | |
3408 | CHOSENBRICK = "Really red" | |
3409 | elseif CHOSENBRICK == "Really red" then | |
3410 | CHOSENBRICK = "Really blue" | |
3411 | elseif CHOSENBRICK == "Really blue" then | |
3412 | CHOSENBRICK = "Pink" | |
3413 | elseif CHOSENBRICK == "Pink" then | |
3414 | CHOSENBRICK = "Black" | |
3415 | elseif CHOSENBRICK == "Black" then | |
3416 | CHOSENBRICK = "Deep orange" | |
3417 | elseif CHOSENBRICK == "Deep orange" then | |
3418 | CHOSENBRICK = "RAINBOW" | |
3419 | elseif CHOSENBRICK == "RAINBOW" then | |
3420 | CHOSENBRICK = "Gold" | |
3421 | ||
3422 | end | |
3423 | end | |
3424 | ||
3425 | if Key == "u" and ATTACK == false then | |
3426 | if CHOSENBRICK == "Gold" then | |
3427 | new_mode() | |
3428 | CHOSENBRICK = "New Yeller" | |
3429 | elseif CHOSENBRICK == "Really red" then | |
3430 | new_mode() | |
3431 | CHOSENBRICK = "New Yeller" | |
3432 | elseif CHOSENBRICK == "Really blue" then | |
3433 | new_mode() | |
3434 | CHOSENBRICK = "New Yeller" | |
3435 | elseif CHOSENBRICK == "Pink" then | |
3436 | new_mode() | |
3437 | CHOSENBRICK = "New Yeller" | |
3438 | elseif CHOSENBRICK == "Black" then | |
3439 | new_mode() | |
3440 | CHOSENBRICK = "New Yeller" | |
3441 | elseif CHOSENBRICK == "RAINBOW" then | |
3442 | new_mode() | |
3443 | CHOSENBRICK = "New Yeller" | |
3444 | elseif CHOSENBRICK == "New Yeller" then | |
3445 | new_mode() | |
3446 | CHOSENBRICK = "Gold" | |
3447 | ||
3448 | end | |
3449 | end | |
3450 | ||
3451 | ||
3452 | if Key == "c" and ATTACK == false then | |
3453 | if CHOSENBRICK == "Gold" then | |
3454 | Mach20() | |
3455 | elseif CHOSENBRICK == "New Yeller" then | |
3456 | ||
3457 | elseif CHOSENBRICK == "Really red" then | |
3458 | W() | |
3459 | elseif CHOSENBRICK == "Really blue" then | |
3460 | dab() | |
3461 | elseif CHOSENBRICK == "Pink" then | |
3462 | PinkPunch() | |
3463 | elseif CHOSENBRICK == "Black" then | |
3464 | low() | |
3465 | elseif CHOSENBRICK == "Deep orange" then | |
3466 | ||
3467 | elseif CHOSENBRICK == "RAINBOW" then | |
3468 | ||
3469 | end | |
3470 | end | |
3471 | ||
3472 | if Key == "l" and ATTACK == false then | |
3473 | if VALUE1 == false then | |
3474 | ghost() | |
3475 | VALUE1 = true | |
3476 | elseif VALUE1 == true then | |
3477 | noghost() | |
3478 | VALUE1 = false | |
3479 | end | |
3480 | end | |
3481 | ||
3482 | if Key == "e" and ATTACK == false then | |
3483 | if CHOSENBRICK == "Gold" then | |
3484 | ImplosionCollision() | |
3485 | elseif CHOSENBRICK == "New Yeller" then | |
3486 | ||
3487 | elseif CHOSENBRICK == "Really red" then | |
3488 | yo() | |
3489 | elseif CHOSENBRICK == "Really blue" then | |
3490 | go() | |
3491 | elseif CHOSENBRICK == "Pink" then | |
3492 | Bomb() | |
3493 | elseif CHOSENBRICK == "Black" then | |
3494 | bl() | |
3495 | elseif CHOSENBRICK == "Deep orange" then | |
3496 | ||
3497 | elseif CHOSENBRICK == "RAINBOW" then | |
3498 | ||
3499 | end | |
3500 | end | |
3501 | ||
3502 | if Key == "t" and ATTACK == false then | |
3503 | if CHOSENBRICK == "Gold" then | |
3504 | ||
3505 | elseif CHOSENBRICK == "New Yeller" then | |
3506 | ||
3507 | elseif CHOSENBRICK == "Really red" then | |
3508 | ro() | |
3509 | elseif CHOSENBRICK == "Really blue" then | |
3510 | t() | |
3511 | elseif CHOSENBRICK == "Pink" then | |
3512 | ||
3513 | elseif CHOSENBRICK == "Black" then | |
3514 | ||
3515 | elseif CHOSENBRICK == "Deep orange" then | |
3516 | ||
3517 | elseif CHOSENBRICK == "RAINBOW" then | |
3518 | ||
3519 | end | |
3520 | end | |
3521 | ||
3522 | if Key == "p" and ATTACK == false then | |
3523 | if Speed == 20 then | |
3524 | Speed = 150 | |
3525 | elseif Speed == 150 then | |
3526 | Speed = 20 | |
3527 | end | |
3528 | end | |
3529 | end | |
3530 | ||
3531 | function KeyUp(Key) | |
3532 | KEYHOLD = false | |
3533 | end | |
3534 | ||
3535 | Mouse.Button1Down:connect(function(NEWKEY) | |
3536 | MouseDown(NEWKEY) | |
3537 | end) | |
3538 | Mouse.Button1Up:connect(function(NEWKEY) | |
3539 | MouseUp(NEWKEY) | |
3540 | end) | |
3541 | Mouse.KeyDown:connect(function(NEWKEY) | |
3542 | KeyDown(NEWKEY) | |
3543 | end) | |
3544 | Mouse.KeyUp:connect(function(NEWKEY) | |
3545 | KeyUp(NEWKEY) | |
3546 | end) | |
3547 | ||
3548 | --//=================================\\ | |
3549 | --\\=================================// | |
3550 | ||
3551 | ||
3552 | function unanchor() | |
3553 | if UNANCHOR == true then | |
3554 | g = Character:GetChildren() | |
3555 | for i = 1, #g do | |
3556 | if g[i].ClassName == "Part" then | |
3557 | g[i].Anchored = false | |
3558 | end | |
3559 | end | |
3560 | end | |
3561 | end | |
3562 | ||
3563 | ||
3564 | --//=================================\\ | |
3565 | --|| WRAP THE WHOLE SCRIPT UP | |
3566 | --\\=================================// | |
3567 | ||
3568 | Humanoid.Changed:connect(function(Jump) | |
3569 | if Jump == "Jump" and (Disable_Jump == true) then | |
3570 | Humanoid.Jump = false | |
3571 | end | |
3572 | end) | |
3573 | ||
3574 | while true do | |
3575 | Swait() | |
3576 | ANIMATE.Parent = nil | |
3577 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
3578 | IDLEANIMATION:Play() | |
3579 | SINE = SINE + CHANGE | |
3580 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
3581 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
3582 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
3583 | HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
3584 | local WALKSPEEDVALUE = 0 | |
3585 | if Speed < 35 then | |
3586 | WALKSPEEDVALUE = 6 | |
3587 | else | |
3588 | WALKSPEEDVALUE = 3 | |
3589 | end | |
3590 | if ANIM == "Walk" and TORSOVELOCITY > 1 and VALUE1 ~= 7 then | |
3591 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3592 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3593 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3594 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3595 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
3596 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3597 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3598 | --RightHip.C1 = Clerp(RightHip.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)), 0.2 / Animation_Speed) | |
3599 | --LeftHip.C1 = Clerp(LeftHip.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)), 0.2 / Animation_Speed) | |
3600 | end | |
3601 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3602 | ANIM = "Jump" | |
3603 | if ATTACK == false then | |
3604 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3605 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3606 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3607 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3608 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3609 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3610 | end | |
3611 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3612 | ANIM = "Fall" | |
3613 | if ATTACK == false then | |
3614 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3615 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3616 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
3617 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3618 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3619 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3620 | end | |
3621 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3622 | ANIM = "Idle" | |
3623 | if ATTACK == false then | |
3624 | if VALUE1 == 1 then | |
3625 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3626 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3627 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3628 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3629 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3630 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3631 | elseif VALUE1 == 2 then | |
3632 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
3633 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
3634 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.2, -0.3) * ANGLES(RAD(160), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3635 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3636 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3637 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3638 | elseif VALUE1 == 3 then | |
3639 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3640 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3641 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3642 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3643 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3644 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3645 | elseif VALUE1 == 4 then | |
3646 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3647 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3648 | if MRANDOM(1,5) == 1 then | |
3649 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25)), RAD(MRANDOM(-25,25))), 1) | |
3650 | end | |
3651 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3652 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3653 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3654 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3655 | elseif VALUE1 == 5 then | |
3656 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3657 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3658 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3659 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3660 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3661 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3662 | elseif VALUE1 == 6 then | |
3663 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3664 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3665 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3666 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3667 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3668 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3669 | elseif VALUE1 == 7 then | |
3670 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3671 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3672 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3673 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3674 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3675 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3676 | elseif VALUE1 == 8 then | |
3677 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + -0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
3678 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.15 / Animation_Speed) | |
3679 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3680 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1 * Player_Size, 0.5 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(50)) * ANGLES(RAD(-2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3681 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3682 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3683 | end | |
3684 | end | |
3685 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3686 | ANIM = "Walk" | |
3687 | WALK = WALK + 1 / Animation_Speed | |
3688 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
3689 | WALK = 0 | |
3690 | if WALKINGANIM == true then | |
3691 | WALKINGANIM = false | |
3692 | elseif WALKINGANIM == false then | |
3693 | WALKINGANIM = true | |
3694 | end | |
3695 | end | |
3696 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3697 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
3698 | if ATTACK == false then | |
3699 | if VALUE1 < 4 or VALUE1 == 6 then | |
3700 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3701 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3702 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
3703 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
3704 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3705 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3706 | elseif VALUE1 == 4 then | |
3707 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3708 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3709 | if MRANDOM(1,15) == 1 then | |
3710 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15)), RAD(MRANDOM(-15,15))), 1) | |
3711 | end | |
3712 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(12)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
3713 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(MRANDOM(-15,15)), RAD(-12)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
3714 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed) | |
3715 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-40 * COS(SINE / WALKSPEEDVALUE))), 0.35 / Animation_Speed) | |
3716 | elseif VALUE1 == 7 then | |
3717 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3718 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3719 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3720 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3721 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3722 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.8 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3723 | elseif VALUE1 == 5 then | |
3724 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3725 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3726 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-90)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3727 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.65, 2, -0.5) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
3728 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3729 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3730 | elseif VALUE1 == 8 then | |
3731 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12) ) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3732 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3733 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15+80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
3734 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
3735 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3736 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12) , -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-80 * COS(SINE / WALKSPEEDVALUE))), 0.15 / Animation_Speed) | |
3737 | end | |
3738 | end | |
3739 | end | |
3740 | unanchor() | |
3741 | Humanoid.MaxHealth = "inf" | |
3742 | Humanoid.Health = "inf" | |
3743 | if Rooted == false then | |
3744 | Disable_Jump = false | |
3745 | Humanoid.WalkSpeed = Speed | |
3746 | elseif Rooted == true then | |
3747 | Disable_Jump = true | |
3748 | Humanoid.WalkSpeed = 0 | |
3749 | end | |
3750 | for _, c in pairs(Character:GetDescendants()) do | |
3751 | if c.ClassName == "Part" and c.Name ~= "Neon Gauntlet Part" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
3752 | elseif c.ClassName == "Part" and c.Name == "Neon Gauntlet Part" then | |
3753 | c.BrickColor = BRICKC(CHOSENBRICK2) | |
3754 | c.Material = "Neon" | |
3755 | elseif c.ClassName == "Poof" then | |
3756 | c.Color = ColorSequence.new(Color3.fromRGB(cR,cG,cB)) | |
3757 | end | |
3758 | end | |
3759 | ||
3760 | for _, c in pairs(Character:GetDescendants()) do | |
3761 | if c.ClassName == "Part" and c.Name ~= "Gauntlet Part" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
3762 | elseif c.ClassName == "Part" and c.Name == "Gauntlet Part" then | |
3763 | c.BrickColor = BRICKC(CHOSENBRICK1) | |
3764 | c.Material = "Granite" | |
3765 | end | |
3766 | end | |
3767 | ||
3768 | SKILL1TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3769 | SKILL2TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3770 | SKILL3TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3771 | SKILL4TEXT.TextColor3 = BRICKC(CHOSENBRICK2).Color | |
3772 | SKILL5TEXT.TextColor3 = BrickColor.Random().Color | |
3773 | if CHOSENBRICK == "Gold" then | |
3774 | CHOSENBRICK1 = "Gold" | |
3775 | CHOSENBRICK2 = "Gold" | |
3776 | Speed = 20 | |
3777 | VALUE1 = 1 | |
3778 | sick.SoundId = "rbxassetid://165704299" | |
3779 | SKILL1TEXT.Text = "[Q] Punch" | |
3780 | SKILL2TEXT.Text = "[Z] Evil mode..." | |
3781 | SKILL3TEXT.Text = "[E] Super punch" | |
3782 | SKILL4TEXT.Text = "[C] Warp" | |
3783 | SKILL5TEXT.Text = "[U] Karma mode..." | |
3784 | tecks2.Text = "!#$฿-Nomal-฿&#!" | |
3785 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3786 | tecks2.TextStrokeColor3 = C3(239/255, 184/255, 56/255) | |
3787 | sick.Volume = 1 | |
3788 | elseif CHOSENBRICK == "New Yeller" then | |
3789 | VALUE1 = 4 | |
3790 | CHOSENBRICK1 = BrickColor.Random().Color | |
3791 | CHOSENBRICK2 = BrickColor.Random().Color | |
3792 | sick.SoundId = "rbxassetid://432664291" | |
3793 | SKILL1TEXT.Text = "[Q] Comming soon" | |
3794 | SKILL2TEXT.Text = "[Z] comming soon" | |
3795 | SKILL3TEXT.Text = "[E] Comming soon" | |
3796 | SKILL4TEXT.Text = "[C] comming soon" | |
3797 | SKILL5TEXT.Text = "[U] Nomal mode..." | |
3798 | sick.Volume = 1 | |
3799 | tecks2.TextColor3 = BrickColor.Random().Color | |
3800 | tecks2.TextStrokeColor3 = BrickColor.Random().Color | |
3801 | tecks2.Text = "kArMa." | |
3802 | elseif CHOSENBRICK == "Really red" then | |
3803 | VALUE1 = 3 | |
3804 | CHOSENBRICK1 = "Really red" | |
3805 | CHOSENBRICK2 = "Really red" | |
3806 | sick.SoundId = "rbxassetid://1524659810" | |
3807 | SKILL1TEXT.Text = "[Q] Meteor" | |
3808 | SKILL2TEXT.Text = "[Z] Meme mode..." | |
3809 | SKILL3TEXT.Text = "[E] Lift" | |
3810 | SKILL4TEXT.Text = "[C] Warp" | |
3811 | tecks2.Text = "-$#฿-Evil-฿#$-" | |
3812 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3813 | tecks2.TextStrokeColor3 = Color3.new(25,0,0) | |
3814 | elseif CHOSENBRICK == "Really blue" then | |
3815 | VALUE1 = 5 | |
3816 | CHOSENBRICK1 = "New Yeller" | |
3817 | CHOSENBRICK2 = "Really blue" | |
3818 | SKILL1TEXT.Text = "[Q] WOA!" | |
3819 | SKILL2TEXT.Text = "[Z] Anime mode..." | |
3820 | SKILL3TEXT.Text = "[E] NANI" | |
3821 | SKILL4TEXT.Text = "[C] Dab" | |
3822 | sick.SoundId = "rbxassetid://2039029608" | |
3823 | tecks2.Text = "$#฿-@Meme glove@-฿#$" | |
3824 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3825 | tecks2.TextStrokeColor3 = Color3.new(0,0,1.5) | |
3826 | elseif CHOSENBRICK == "Pink" then | |
3827 | VALUE1 = 6 | |
3828 | CHOSENBRICK1 = "Black" | |
3829 | CHOSENBRICK2 = "Pink" | |
3830 | SKILL1TEXT.Text = "[Q] kiss" | |
3831 | SKILL2TEXT.Text = "[Z] Darkness mode..." | |
3832 | SKILL3TEXT.Text = "[E] Anime Bomb" | |
3833 | SKILL4TEXT.Text = "[C] Punch" | |
3834 | sick.SoundId = "rbxassetid://1131624146" | |
3835 | tecks2.Text = "!$#฿-Anime-฿#$!" | |
3836 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3837 | tecks2.TextStrokeColor3 = Color3.new(0.5,0,0.5) | |
3838 | elseif CHOSENBRICK == "Black" then | |
3839 | VALUE1 = 7 | |
3840 | CHOSENBRICK1 = "Really black" | |
3841 | CHOSENBRICK2 = "Really black" | |
3842 | SKILL1TEXT.Text = "[Q] Super Jump" | |
3843 | SKILL2TEXT.Text = "[Z] Doge mode..." | |
3844 | SKILL3TEXT.Text = "[E] Darkness dead" | |
3845 | SKILL4TEXT.Text = "[C] Darkness Caver" | |
3846 | sick.SoundId = "rbxassetid://338110450" | |
3847 | tecks2.Text = "!$\#��-Darkness-��#\$!" | |
3848 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3849 | tecks2.TextStrokeColor3 = Color3.new(0.5,0.5,0.5) | |
3850 | elseif CHOSENBRICK == "Deep orange" then | |
3851 | CHOSENBRICK1 = "Deep orange" | |
3852 | CHOSENBRICK2 = "Deep orange" | |
3853 | SKILL1TEXT.Text = "[Q] comming soon" | |
3854 | SKILL2TEXT.Text = "[Z] Rainbow mode..." | |
3855 | SKILL3TEXT.Text = "[E] comming soon" | |
3856 | SKILL4TEXT.Text = "[C] comming soon" | |
3857 | Speed = 65 | |
3858 | VALUE1 = 2 | |
3859 | sick.SoundId = "rbxassetid://412964077" | |
3860 | tecks2.Text = "!$#฿[<-Doge->]฿#$!" | |
3861 | tecks2.TextColor3 = Color3.new(0,0,0) | |
3862 | tecks2.TextStrokeColor3 = Color3.new(233,255,0) | |
3863 | elseif CHOSENBRICK == "RAINBOW" then | |
3864 | VALUE1 = 7 | |
3865 | CHOSENBRICK1 = Color3.fromRGB(cR,cG,cB) | |
3866 | CHOSENBRICK2 = Color3.fromRGB(cR,cG,cB) | |
3867 | SKILL1TEXT.Text = "[Q] comming soon" | |
3868 | SKILL2TEXT.Text = "[Z] Nomal mode..." | |
3869 | SKILL3TEXT.Text = "[E] comming soon" | |
3870 | SKILL4TEXT.Text = "[L] Rainbow ghost (NOT WORKING)" | |
3871 | Speed = 30 | |
3872 | sick.SoundId = "rbxassetid://1493882272" | |
3873 | tecks2.Text = "-$ Rainbow $-" | |
3874 | tecks2.TextColor3 = Color3.fromRGB(cR,cG,cB) | |
3875 | tecks2.TextStrokeColor3 = Color3.fromRGB(cR,cG,cB) | |
3876 | end | |
3877 | end | |
3878 | ||
3879 | ||
3880 | --//=================================\\ | |
3881 | --\\=================================// | |
3882 | ||
3883 | ||
3884 | ||
3885 | ||
3886 | ||
3887 | --//====================================================\\-- | |
3888 | --|| END OF SCRIPT | |
3889 | --\\====================================================//-- |