SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | Event.Name = "UserInput_Event" | |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | m = owner | |
88 | char = m.Character | |
89 | local txt = Instance.new("BillboardGui", char) | |
90 | txt.Adornee = char.Head | |
91 | txt.Name = "_status" | |
92 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
93 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
94 | local text = Instance.new("TextLabel", txt) | |
95 | text.Size = UDim2.new(10, 0, 7, 0) | |
96 | text.FontSize = "Size24" | |
97 | text.TextScaled = true | |
98 | text.TextTransparency = 0 | |
99 | text.BackgroundTransparency = 1 | |
100 | text.TextTransparency = 0 | |
101 | text.TextStrokeTransparency = 0 | |
102 | text.Font = "Bodoni" | |
103 | text.TextStrokeColor3 = Color3.new(1, 0, 0) | |
104 | v = Instance.new("Part") | |
105 | v.Name = "ColorBrick" | |
106 | v.Parent = m.Character | |
107 | v.FormFactor = "Symmetric" | |
108 | v.Anchored = true | |
109 | v.CanCollide = false | |
110 | v.BottomSurface = "Smooth" | |
111 | v.TopSurface = "Smooth" | |
112 | v.Size = Vector3.new(10, 5, 3) | |
113 | v.Transparency = 1 | |
114 | v.CFrame = char.Torso.CFrame | |
115 | v.BrickColor = BrickColor.new("Really red") | |
116 | v.Transparency = 1 | |
117 | v.Shape = "Block" | |
118 | spawn(function() | |
119 | local TweenService = game:GetService("TweenService") | |
120 | local Colours = {Color3.fromRGB(1,0,0),Color3.fromRGB(1,0,0),Color3.fromRGB(1,0,0),Color3.fromRGB(0,1,0),Color3.fromRGB(0,1,0),Color3.fromRGB(0,1,0),Color3.fromRGB(0,0,0),Color3.fromRGB(0,0,0)} | |
121 | local Int = 0 | |
122 | while wait(0.5) do | |
123 | if Int == #Colours then Int = 0 end | |
124 | Int = Int+1 | |
125 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
126 | end | |
127 | end) | |
128 | text.Text = "I'm Mad" | |
129 | ||
130 | script.Name = "Banisher Gun V3 / 1" | |
131 | --//====================================================\\-- | |
132 | --|| CREATED BY SHACKLUSTER | |
133 | --\\====================================================//-- | |
134 | ||
135 | script:ClearAllChildren() | |
136 | wait(0.2) | |
137 | ||
138 | Player = owner | |
139 | PlayerGui = Player.PlayerGui | |
140 | Cam = workspace.CurrentCamera | |
141 | Backpack = Player.Backpack | |
142 | Character = Player.Character | |
143 | Humanoid = Character.Humanoid | |
144 | RootPart = Character["HumanoidRootPart"] | |
145 | Torso = Character["Torso"] | |
146 | Head = Character["Head"] | |
147 | RightArm = Character["Right Arm"] | |
148 | LeftArm = Character["Left Arm"] | |
149 | RightLeg = Character["Right Leg"] | |
150 | LeftLeg = Character["Left Leg"] | |
151 | RootJoint = RootPart["RootJoint"] | |
152 | Neck = Torso["Neck"] | |
153 | RightShoulder = Torso["Right Shoulder"] | |
154 | LeftShoulder = Torso["Left Shoulder"] | |
155 | RightHip = Torso["Right Hip"] | |
156 | LeftHip = Torso["Left Hip"] | |
157 | local TIME = 0 | |
158 | local sick = Instance.new("Sound",Torso) | |
159 | ||
160 | IT = Instance.new | |
161 | CF = CFrame.new | |
162 | VT = Vector3.new | |
163 | RAD = math.rad | |
164 | C3 = Color3.new | |
165 | UD2 = UDim2.new | |
166 | BRICKC = BrickColor.new | |
167 | ANGLES = CFrame.Angles | |
168 | EULER = CFrame.fromEulerAnglesXYZ | |
169 | COS = math.cos | |
170 | ACOS = math.acos | |
171 | SIN = math.sin | |
172 | ASIN = math.asin | |
173 | ABS = math.abs | |
174 | MRANDOM = math.random | |
175 | FLOOR = math.floor | |
176 | local BODY = {} | |
177 | ||
178 | --//=================================\\ | |
179 | --|| USEFUL VALUES | |
180 | --\\=================================// | |
181 | ||
182 | Animation_Speed = 3 | |
183 | local FORCERESET = false | |
184 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
185 | local Speed = 16 | |
186 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
187 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
188 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
189 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
190 | local DAMAGEMULTIPLIER = 1 | |
191 | local ANIM = "Idle" | |
192 | local ATTACK = false | |
193 | local EQUIPPED = false | |
194 | local HOLD = false | |
195 | local COMBO = 1 | |
196 | local Rooted = false | |
197 | local SINE = 0 | |
198 | local KEYHOLD = false | |
199 | local CHANGE = 2 / Animation_Speed | |
200 | local WALKINGANIM = false | |
201 | local VALUE1 = false | |
202 | local VALUE2 = false | |
203 | local ROBLOXIDLEANIMATION = IT("Animation") | |
204 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
205 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
206 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
207 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
208 | WEAPONGUI.Name = "BanishV3Gui" | |
209 | local Weapon = IT("Model") | |
210 | Weapon.Name = "Adds" | |
211 | local Effects = IT("Folder", Weapon) | |
212 | Effects.Name = "Effects" | |
213 | local ANIMATOR = Humanoid.Animator | |
214 | local ANIMATE = Character:FindFirstChild("Animate") | |
215 | local UNANCHOR = true | |
216 | local TOBANISH = {} | |
217 | script.Parent = PlayerGui | |
218 | ||
219 | --//=================================\\ | |
220 | --\\=================================// | |
221 | ||
222 | ||
223 | --//=================================\\ | |
224 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
225 | --\\=================================// | |
226 | ||
227 | ArtificialHB = Instance.new("BindableEvent", script) | |
228 | ArtificialHB.Name = "ArtificialHB" | |
229 | ||
230 | script:WaitForChild("ArtificialHB") | |
231 | ||
232 | frame = Frame_Speed | |
233 | tf = 0 | |
234 | allowframeloss = false | |
235 | tossremainder = false | |
236 | lastframe = tick() | |
237 | script.ArtificialHB:Fire() | |
238 | ||
239 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
240 | tf = tf + s | |
241 | if tf >= frame then | |
242 | if allowframeloss then | |
243 | script.ArtificialHB:Fire() | |
244 | lastframe = tick() | |
245 | else | |
246 | for i = 1, math.floor(tf / frame) do | |
247 | script.ArtificialHB:Fire() | |
248 | end | |
249 | lastframe = tick() | |
250 | end | |
251 | if tossremainder then | |
252 | tf = 0 | |
253 | else | |
254 | tf = tf - frame * math.floor(tf / frame) | |
255 | end | |
256 | end | |
257 | end) | |
258 | ||
259 | --//=================================\\ | |
260 | --\\=================================// | |
261 | ||
262 | --//=================================\\ | |
263 | --|| SOME FUNCTIONS | |
264 | --\\=================================// | |
265 | ||
266 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
267 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
268 | end | |
269 | ||
270 | function PositiveAngle(NUMBER) | |
271 | if NUMBER >= 0 then | |
272 | NUMBER = 0 | |
273 | end | |
274 | return NUMBER | |
275 | end | |
276 | ||
277 | function NegativeAngle(NUMBER) | |
278 | if NUMBER <= 0 then | |
279 | NUMBER = 0 | |
280 | end | |
281 | return NUMBER | |
282 | end | |
283 | ||
284 | function Swait(NUMBER) | |
285 | if NUMBER == 0 or NUMBER == nil then | |
286 | ArtificialHB.Event:wait() | |
287 | else | |
288 | for i = 1, NUMBER do | |
289 | ArtificialHB.Event:wait() | |
290 | end | |
291 | end | |
292 | end | |
293 | ||
294 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
295 | local NEWMESH = IT(MESH) | |
296 | if MESH == "SpecialMesh" then | |
297 | NEWMESH.MeshType = MESHTYPE | |
298 | if MESHID ~= "nil" and MESHID ~= "" then | |
299 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
300 | end | |
301 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
302 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
303 | end | |
304 | end | |
305 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
306 | NEWMESH.Scale = SCALE | |
307 | NEWMESH.Parent = PARENT | |
308 | return NEWMESH | |
309 | end | |
310 | ||
311 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
312 | local NEWPART = IT("Part") | |
313 | NEWPART.formFactor = FORMFACTOR | |
314 | NEWPART.Reflectance = REFLECTANCE | |
315 | NEWPART.Transparency = TRANSPARENCY | |
316 | NEWPART.CanCollide = false | |
317 | NEWPART.Locked = true | |
318 | NEWPART.Anchored = true | |
319 | if ANCHOR == false then | |
320 | NEWPART.Anchored = false | |
321 | end | |
322 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
323 | NEWPART.Name = NAME | |
324 | NEWPART.Size = SIZE | |
325 | NEWPART.Position = Torso.Position | |
326 | NEWPART.Material = MATERIAL | |
327 | NEWPART:BreakJoints() | |
328 | NEWPART.Parent = PARENT | |
329 | return NEWPART | |
330 | end | |
331 | ||
332 | Player_Size = 1 | |
333 | ||
334 | local function weldBetween(a, b) | |
335 | local weldd = Instance.new("ManualWeld") | |
336 | weldd.Part0 = a | |
337 | weldd.Part1 = b | |
338 | weldd.C0 = CFrame.new() | |
339 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
340 | weldd.Parent = a | |
341 | return weldd | |
342 | end | |
343 | ||
344 | ||
345 | function QuaternionFromCFrame(cf) | |
346 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
347 | local trace = m00 + m11 + m22 | |
348 | if trace > 0 then | |
349 | local s = math.sqrt(1 + trace) | |
350 | local recip = 0.5 / s | |
351 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
352 | else | |
353 | local i = 0 | |
354 | if m11 > m00 then | |
355 | i = 1 | |
356 | end | |
357 | if m22 > (i == 0 and m00 or m11) then | |
358 | i = 2 | |
359 | end | |
360 | if i == 0 then | |
361 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
362 | local recip = 0.5 / s | |
363 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
364 | elseif i == 1 then | |
365 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
366 | local recip = 0.5 / s | |
367 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
368 | elseif i == 2 then | |
369 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
370 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
371 | end | |
372 | end | |
373 | end | |
374 | ||
375 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
376 | local xs, ys, zs = x + x, y + y, z + z | |
377 | local wx, wy, wz = w * xs, w * ys, w * zs | |
378 | local xx = x * xs | |
379 | local xy = x * ys | |
380 | local xz = x * zs | |
381 | local yy = y * ys | |
382 | local yz = y * zs | |
383 | local zz = z * zs | |
384 | 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)) | |
385 | end | |
386 | ||
387 | function QuaternionSlerp(a, b, t) | |
388 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
389 | local startInterp, finishInterp; | |
390 | if cosTheta >= 0.0001 then | |
391 | if (1 - cosTheta) > 0.0001 then | |
392 | local theta = ACOS(cosTheta) | |
393 | local invSinTheta = 1 / SIN(theta) | |
394 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
395 | finishInterp = SIN(t * theta) * invSinTheta | |
396 | else | |
397 | startInterp = 1 - t | |
398 | finishInterp = t | |
399 | end | |
400 | else | |
401 | if (1 + cosTheta) > 0.0001 then | |
402 | local theta = ACOS(-cosTheta) | |
403 | local invSinTheta = 1 / SIN(theta) | |
404 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
405 | finishInterp = SIN(t * theta) * invSinTheta | |
406 | else | |
407 | startInterp = t - 1 | |
408 | finishInterp = t | |
409 | end | |
410 | end | |
411 | 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 | |
412 | end | |
413 | ||
414 | function Clerp(a, b, t) | |
415 | local qa = {QuaternionFromCFrame(a)} | |
416 | local qb = {QuaternionFromCFrame(b)} | |
417 | local ax, ay, az = a.x, a.y, a.z | |
418 | local bx, by, bz = b.x, b.y, b.z | |
419 | local _t = 1 - t | |
420 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
421 | end | |
422 | ||
423 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
424 | local frame = IT("Frame") | |
425 | frame.BackgroundTransparency = TRANSPARENCY | |
426 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
427 | frame.Position = POSITION | |
428 | frame.Size = SIZE | |
429 | frame.BackgroundColor3 = COLOR | |
430 | frame.BorderColor3 = BORDERCOLOR | |
431 | frame.Name = NAME | |
432 | frame.Parent = PARENT | |
433 | return frame | |
434 | end | |
435 | ||
436 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
437 | local label = IT("TextLabel") | |
438 | label.BackgroundTransparency = 1 | |
439 | label.Size = UD2(1, 0, 1, 0) | |
440 | label.Position = UD2(0, 0, 0, 0) | |
441 | label.TextColor3 = TEXTCOLOR | |
442 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
443 | label.TextTransparency = TRANSPARENCY | |
444 | label.FontSize = TEXTFONTSIZE | |
445 | label.Font = TEXTFONT | |
446 | label.BorderSizePixel = BORDERSIZEPIXEL | |
447 | label.TextScaled = false | |
448 | label.Text = TEXT | |
449 | label.Name = NAME | |
450 | label.Parent = PARENT | |
451 | return label | |
452 | end | |
453 | ||
454 | function NoOutlines(PART) | |
455 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
456 | end | |
457 | ||
458 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
459 | local NEWWELD = IT(TYPE) | |
460 | NEWWELD.Part0 = PART0 | |
461 | NEWWELD.Part1 = PART1 | |
462 | NEWWELD.C0 = C0 | |
463 | NEWWELD.C1 = C1 | |
464 | NEWWELD.Parent = PARENT | |
465 | return NEWWELD | |
466 | end | |
467 | ||
468 | local S = IT("Sound") | |
469 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
470 | local NEWSOUND = nil | |
471 | coroutine.resume(coroutine.create(function() | |
472 | NEWSOUND = S:Clone() | |
473 | NEWSOUND.Parent = PARENT | |
474 | NEWSOUND.Volume = VOLUME | |
475 | NEWSOUND.Pitch = PITCH | |
476 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
477 | NEWSOUND:play() | |
478 | if DOESLOOP == true then | |
479 | NEWSOUND.Looped = true | |
480 | else | |
481 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
482 | NEWSOUND:remove() | |
483 | end | |
484 | end)) | |
485 | return NEWSOUND | |
486 | end | |
487 | ||
488 | function CFrameFromTopBack(at, top, back) | |
489 | local right = top:Cross(back) | |
490 | 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) | |
491 | end | |
492 | ||
493 | --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}) | |
494 | function WACKYEFFECT(Table) | |
495 | local TYPE = (Table.EffectType or "Sphere") | |
496 | local SIZE = (Table.Size or VT(1,1,1)) | |
497 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
498 | local TRANSPARENCY = (Table.Transparency or 0) | |
499 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
500 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
501 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
502 | local ROTATION1 = (Table.RotationX or 0) | |
503 | local ROTATION2 = (Table.RotationY or 0) | |
504 | local ROTATION3 = (Table.RotationZ or 0) | |
505 | local MATERIAL = (Table.Material or "Neon") | |
506 | local COLOR = (Table.Color or C3(1,1,1)) | |
507 | local TIME = (Table.Time or 45) | |
508 | local SOUNDID = (Table.SoundID or nil) | |
509 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
510 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
511 | coroutine.resume(coroutine.create(function() | |
512 | local PLAYSSOUND = false | |
513 | local SOUND = nil | |
514 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true) | |
515 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
516 | PLAYSSOUND = true | |
517 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
518 | end | |
519 | EFFECT.Color = COLOR | |
520 | local MSH = nil | |
521 | if TYPE == "Sphere" then | |
522 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
523 | elseif TYPE == "Block" then | |
524 | MSH = IT("BlockMesh",EFFECT) | |
525 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
526 | elseif TYPE == "Wave" then | |
527 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
528 | elseif TYPE == "Ring" then | |
529 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
530 | elseif TYPE == "Slash" then | |
531 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
532 | elseif TYPE == "Round Slash" then | |
533 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
534 | elseif TYPE == "Swirl" then | |
535 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
536 | elseif TYPE == "Skull" then | |
537 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
538 | elseif TYPE == "Crystal" then | |
539 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
540 | end | |
541 | if MSH ~= nil then | |
542 | local MOVESPEED = nil | |
543 | if MOVEDIRECTION ~= nil then | |
544 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
545 | end | |
546 | local GROWTH = SIZE - ENDSIZE | |
547 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
548 | if TYPE == "Block" then | |
549 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
550 | else | |
551 | EFFECT.CFrame = CFRAME | |
552 | end | |
553 | for LOOP = 1, TIME+1 do | |
554 | Swait() | |
555 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
556 | if TYPE == "Wave" then | |
557 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
558 | end | |
559 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
560 | if TYPE == "Block" then | |
561 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
562 | else | |
563 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
564 | end | |
565 | if MOVEDIRECTION ~= nil then | |
566 | local ORI = EFFECT.Orientation | |
567 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
568 | EFFECT.Orientation = ORI | |
569 | end | |
570 | end | |
571 | if PLAYSSOUND == false then | |
572 | EFFECT:remove() | |
573 | else | |
574 | SOUND.Stopped:Connect(function() | |
575 | EFFECT:remove() | |
576 | end) | |
577 | end | |
578 | else | |
579 | if PLAYSSOUND == false then | |
580 | EFFECT:remove() | |
581 | else | |
582 | repeat Swait() until SOUND.Playing == false | |
583 | EFFECT:remove() | |
584 | end | |
585 | end | |
586 | end)) | |
587 | end | |
588 | ||
589 | function MakeForm(PART,TYPE) | |
590 | if TYPE == "Cyl" then | |
591 | local MSH = IT("CylinderMesh",PART) | |
592 | elseif TYPE == "Ball" then | |
593 | local MSH = IT("SpecialMesh",PART) | |
594 | MSH.MeshType = "Sphere" | |
595 | elseif TYPE == "Wedge" then | |
596 | local MSH = IT("SpecialMesh",PART) | |
597 | MSH.MeshType = "Wedge" | |
598 | end | |
599 | end | |
600 | ||
601 | function SpawnTrail(FROM,TO,BIG) | |
602 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
603 | MakeForm(TRAIL,"Cyl") | |
604 | local DIST = (FROM - TO).Magnitude | |
605 | if BIG == true then | |
606 | TRAIL.Size = VT(0.5,DIST,0.5) | |
607 | else | |
608 | TRAIL.Size = VT(0.25,DIST,0.25) | |
609 | end | |
610 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
611 | coroutine.resume(coroutine.create(function() | |
612 | for i = 1, 5 do | |
613 | Swait() | |
614 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
615 | end | |
616 | TRAIL:remove() | |
617 | end)) | |
618 | end | |
619 | ||
620 | Debris = game:GetService("Debris") | |
621 | ||
622 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
623 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
624 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
625 | end | |
626 | ||
627 | function turnto(position) | |
628 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
629 | end | |
630 | local asd = Instance.new("ParticleEmitter") | |
631 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
632 | asd.LightEmission = .1 | |
633 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
634 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
635 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
636 | asd.Transparency = bbb | |
637 | asd.Size = aaa | |
638 | asd.ZOffset = .9 | |
639 | asd.Acceleration = Vector3.new(0, -15, 0) | |
640 | asd.LockedToPart = false | |
641 | asd.EmissionDirection = "Back" | |
642 | asd.Lifetime = NumberRange.new(1, 2) | |
643 | asd.Rotation = NumberRange.new(-100, 100) | |
644 | asd.RotSpeed = NumberRange.new(-100, 100) | |
645 | asd.Speed = NumberRange.new(10) | |
646 | asd.Enabled = false | |
647 | asd.VelocitySpread = 999 | |
648 | ||
649 | function getbloody(victim,amount) | |
650 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
651 | PART.CFrame = victim.CFrame | |
652 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
653 | Debris:AddItem(PART,5) | |
654 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
655 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
656 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
657 | local prtcl = asd:Clone() | |
658 | prtcl.Parent = PART | |
659 | prtcl:Emit(amount*10) | |
660 | end | |
661 | ||
662 | local Particle = IT("ParticleEmitter",nil) | |
663 | Particle.Enabled = false | |
664 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
665 | Particle.LightEmission = 0.5 | |
666 | Particle.Rate = 150 | |
667 | Particle.ZOffset = 1 | |
668 | Particle.Rotation = NumberRange.new(-180, 180) | |
669 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
670 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
671 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
672 | ||
673 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
674 | function ParticleEmitter(Table) | |
675 | local PRTCL = Particle:Clone() | |
676 | local Speed = Table.Speed or 5 | |
677 | local Drag = Table.Drag or 0 | |
678 | local Size1 = Table.Size1 or 1 | |
679 | local Size2 = Table.Size2 or 5 | |
680 | local Lifetime1 = Table.Lifetime1 or 1 | |
681 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
682 | local Parent = Table.Parent or Torso | |
683 | local Emit = Table.Emit or 100 | |
684 | local Offset = Table.Offset or 360 | |
685 | local Acel = Table.Acel or VT(0,0,0) | |
686 | local Enabled = Table.Enabled or false | |
687 | PRTCL.Parent = Parent | |
688 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
689 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
690 | PRTCL.Speed = NumberRange.new(Speed) | |
691 | PRTCL.VelocitySpread = Offset | |
692 | PRTCL.Drag = Drag | |
693 | PRTCL.Acceleration = Acel | |
694 | if Enabled == false then | |
695 | PRTCL:Emit(Emit) | |
696 | Debris:AddItem(PRTCL,Lifetime2) | |
697 | else | |
698 | PRTCL.Enabled = true | |
699 | end | |
700 | return PRTCL | |
701 | end | |
702 | ||
703 | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) | |
704 | if DoesCourontine == false then | |
705 | local Direction = CF(Part.Position, ToLocation) | |
706 | local Distance = (Part.Position - ToLocation).magnitude | |
707 | for i = 1, AmountOfTime do | |
708 | Swait() | |
709 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
710 | Direction = Part.CFrame | |
711 | end | |
712 | Part:remove() | |
713 | elseif DoesCourontine == true then | |
714 | coroutine.resume(coroutine.create(function() | |
715 | local Direction = CF(Part.Position, ToLocation) | |
716 | local Distance = (Part.Position - ToLocation).magnitude | |
717 | for i = 1, AmountOfTime do | |
718 | Swait() | |
719 | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) | |
720 | Direction = Part.CFrame | |
721 | end | |
722 | Part:remove() | |
723 | end)) | |
724 | end | |
725 | end | |
726 | ||
727 | --//=================================\\ | |
728 | --|| WEAPON CREATION | |
729 | --\\=================================// | |
730 | Player=owner | |
731 | Character=Player.Character | |
732 | m=Instance.new('Model',Character) | |
733 | local function weldBetween(a, b) | |
734 | local weldd = Instance.new("ManualWeld") | |
735 | weldd.Part0 = a | |
736 | weldd.Part1 = b | |
737 | weldd.C0 = CFrame.new() | |
738 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
739 | weldd.Parent = a | |
740 | return weldd | |
741 | end | |
742 | ||
743 | it=Instance.new | |
744 | ||
745 | function nooutline(part) | |
746 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
747 | end | |
748 | ||
749 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
750 | local fp=it("Part") | |
751 | fp.formFactor=formfactor | |
752 | fp.Parent=parent | |
753 | fp.Reflectance=reflectance | |
754 | fp.Transparency=transparency | |
755 | fp.CanCollide=false | |
756 | fp.Locked=true | |
757 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
758 | fp.Name=name | |
759 | fp.Size=size | |
760 | fp.Position=Character.Torso.Position | |
761 | nooutline(fp) | |
762 | fp.Material=material | |
763 | fp:BreakJoints() | |
764 | return fp | |
765 | end | |
766 | ||
767 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
768 | local mesh=it(Mesh) | |
769 | mesh.Parent=part | |
770 | if Mesh=="SpecialMesh" then | |
771 | mesh.MeshType=meshtype | |
772 | mesh.MeshId=meshid | |
773 | end | |
774 | mesh.Offset=offset | |
775 | mesh.Scale=scale | |
776 | return mesh | |
777 | end | |
778 | ||
779 | function weld(parent,part0,part1,c0,c1) | |
780 | local weld=it("Weld") | |
781 | weld.Parent=parent | |
782 | weld.Part0=part0 | |
783 | weld.Part1=part1 | |
784 | weld.C0=c0 | |
785 | weld.C1=c1 | |
786 | return weld | |
787 | end | |
788 | ||
789 | handle=part(Enum.FormFactor.Brick,m,Enum.Material.Plastic,0,0,"Really black","Handle",Vector3.new(4, 1, 2)) | |
790 | handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.61954498, 0.610899925, 1.40690994, -0.258819044, 0, -0.965925813, 0, 1, 0, 0.965925813, 0, -0.258819044)) | |
791 | mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"rbxassetid://1553468234",Vector3.new(0, 0, 0),Vector3.new(0.0480000004, 0.0480000004, 0.0480000004)) | |
792 | ||
793 | - | Player=game:GetService('Players').LocalPlayer |
793 | + | |
794 | Character=Player.Character | |
795 | - | Mouse=Player:GetMouse() |
795 | + | |
796 | local function weldBetween(a, b) | |
797 | local weldd = Instance.new("ManualWeld") | |
798 | weldd.Part0 = a | |
799 | weldd.Part1 = b | |
800 | weldd.C0 = CFrame.new() | |
801 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
802 | weldd.Parent = a | |
803 | return weldd | |
804 | end | |
805 | ||
806 | it=Instance.new | |
807 | ||
808 | function nooutline(part) | |
809 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
810 | end | |
811 | ||
812 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
813 | local fp=it("Part") | |
814 | fp.formFactor=formfactor | |
815 | fp.Parent=parent | |
816 | fp.Reflectance=reflectance | |
817 | fp.Transparency=transparency | |
818 | fp.CanCollide=false | |
819 | fp.Locked=true | |
820 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
821 | fp.Name=name | |
822 | fp.Size=size | |
823 | fp.Position=Character.Torso.Position | |
824 | nooutline(fp) | |
825 | fp.Material=material | |
826 | fp:BreakJoints() | |
827 | return fp | |
828 | end | |
829 | ||
830 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
831 | local mesh=it(Mesh) | |
832 | mesh.Parent=part | |
833 | if Mesh=="SpecialMesh" then | |
834 | mesh.MeshType=meshtype | |
835 | mesh.MeshId=meshid | |
836 | end | |
837 | mesh.Offset=offset | |
838 | mesh.Scale=scale | |
839 | return mesh | |
840 | end | |
841 | ||
842 | function weld(parent,part0,part1,c0,c1) | |
843 | local weld=it("Weld") | |
844 | weld.Parent=parent | |
845 | weld.Part0=part0 | |
846 | weld.Part1=part1 | |
847 | weld.C0=c0 | |
848 | weld.C1=c1 | |
849 | return weld | |
850 | end | |
851 | ||
852 | ||
853 | handle=part(Enum.FormFactor.Brick,m,Enum.Material.Plastic,0,0,"Really black","Handle",Vector3.new(4, 1, 2)) | |
854 | handleweld=weld(m,Character["Torso"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.72890472, 0.675598145, -1.43186569, 0.258819073, 0, -0.965925813, 0, 1, 0, 0.965925813, 0, 0.258819073)) | |
855 | mesh("SpecialMesh",handle,Enum.MeshType.FileMesh,"rbxassetid://1553468709",Vector3.new(0, 0, 0),Vector3.new(0.0480000004, 0.0480000004, 0.0480000004)) | |
856 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.6,0.1,1)/2,false) | |
857 | MakeForm(HandlePart,"Ball") | |
858 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
859 | local HandlePart = CreatePart(3,Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.6,0.1,1)/2,false) | |
860 | MakeForm(HandlePart,"Ball") | |
861 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
862 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.1,1,1)/2,false) | |
863 | MakeForm(HandlePart,"Ball") | |
864 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
865 | local HandlePart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.1,1,1)/2,false) | |
866 | MakeForm(HandlePart,"Ball") | |
867 | CreateWeldOrSnapOrMotor("Weld", HandlePart, Head, HandlePart, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
868 | ||
869 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
870 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
871 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0)) | |
872 | wave.CFrame = CFRAME | |
873 | coroutine.resume(coroutine.create(function(PART) | |
874 | for i = 1, WAIT do | |
875 | Swait() | |
876 | mesh.Scale = mesh.Scale + GROW | |
877 | if DOESROT == true then | |
878 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
879 | end | |
880 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
881 | if wave.Transparency > 0.99 then | |
882 | wave:remove() | |
883 | end | |
884 | end | |
885 | end)) | |
886 | end | |
887 | New = function(Object, Parent, Name, Data) | |
888 | local Object = Instance.new(Object) | |
889 | for Index, Value in pairs(Data or {}) do | |
890 | Object[Index] = Value | |
891 | end | |
892 | Object.Parent = Parent | |
893 | Object.Name = Name | |
894 | return Object | |
895 | end | |
896 | ||
897 | ||
898 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-67.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
899 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, 0.487541199, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
900 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000252, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787415, 1.33912802, 93.9772263, 0, 0, -1, 0, 1, 0, 1, 0, 0),}) | |
901 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.0127105713, 0.339127064, -0.512458801, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
902 | ||
903 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.140000015, 0.0500000007),CFrame = CFrame.new(-67.6787415, 3.12643075, 92.6921463, -9.31322575e-10, -1.86264515e-09, -0.999999285, 0.777135551, 0.629333496, 9.31322575e-10, 0.6293329, -0.777134895, 0),}) | |
904 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.766067505, 0.138611317, 0.515716553, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
905 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.12999988, 1.12000012, 0.0500000007),CFrame = CFrame.new(-67.6951752, 3.43133378, 93.991272, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
906 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.533157349, 0.443484068, 0.50994873, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
907 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.450000018, 0.590000272, 0.0500000007),CFrame = CFrame.new(-67.6951752, 2.60608268, 94.3512573, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
908 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.893096924, -0.381786108, 0.509513855, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
909 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.330000013, 0.590000272, 0.0500000007),CFrame = CFrame.new(-66.6951752, 2.60608268, 94.2912598, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
910 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.817497253, -0.388065577, -0.489402771, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
911 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.220000237, 0.660000384, 0.0500000007),CFrame = CFrame.new(-66.6787338, 2.57395577, 93.9222183, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
912 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.448242188, -0.420258999, -0.49987793, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
913 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.07999992, 1.12000012, 0.0500000007),CFrame = CFrame.new(-66.6951752, 3.43133354, 93.9662704, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
914 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(0.492546082, 0.437201023, -0.489517212, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
915 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.340000302, 0.0500000007),CFrame = CFrame.new(-66.6787415, 3.2281816, 93.1287689, 0, -9.31322575e-10, -0.999999285, 0, 1, 9.31322575e-10, 0.999999225, 0, 0),}) | |
916 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),C1 = CFrame.new(-0.345108032, 0.234031916, -0.491600037, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
917 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1.0999999, 0.0500000007, 1.00999975),CFrame = CFrame.new(-67.1759109, 3.99574399, 93.9762726, 0, -0.0260759834, -0.999659359, 0, 0.999660075, -0.0260760002, 0.999999225, -2.91038305e-11, -9.31322575e-10),}) | |
918 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -0.0260760002, 0.999660015, 0, -0.999660015, -0.0260760002, 0),C1 = CFrame.new(0.510047913, 1.00462079, -0.0125579834, -0.0156119959, -4.38656264e-11, 0.999877751, -0.0062854127, 0.999980271, -9.81397825e-05, -0.999858022, -0.00628618058, -0.0156116877),}) | |
919 | ||
920 | Corruption = New("Part",Character,"Corruption",{BrickColor = BrickColor.new("Really red"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.740000069, 0.419999987, 0.870000064),CFrame = CFrame.new(-67.0815201, 2.81366396, 91.9528885, 0, 0, -1, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, 0),}) | |
921 | mot = New("Motor",Corruption,"mot",{Part0 = Corruption,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 0, 0.777135491, 0.629333377, 0, 0.629333377, -0.777135491, -1, 0, 0),C1 = CFrame.new(-0.00936126709, -0.184385061, -0.0693511963, 0, 0, 1, 0, 1, 0, -1, 0, 0),}) | |
922 | ||
923 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.15,0.15,0.15),false) | |
924 | MakeForm(EYE,"Ball") | |
925 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0)) | |
926 | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Maroon", "Eyeball", VT(0.15,0.15,0.15),false) | |
927 | MakeForm(EYE2,"Ball") | |
928 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0)) | |
929 | ||
930 | local naeeym2 = Instance.new("BillboardGui", Character) | |
931 | naeeym2.AlwaysOnTop = true | |
932 | naeeym2.Size = UDim2.new(5, 35, 2, 15) | |
933 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
934 | naeeym2.Adornee = Character.Head | |
935 | naeeym2.Name = "Name" | |
936 | naeeym2.PlayerToHideFrom = Player | |
937 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
938 | tecks2.BackgroundTransparency = 1 | |
939 | tecks2.TextScaled = true | |
940 | tecks2.BorderSizePixel = 0 | |
941 | tecks2.Text = "V.4" | |
942 | tecks2.Font = "Fantasy" | |
943 | tecks2.TextSize = 30 | |
944 | tecks2.TextStrokeTransparency = 0 | |
945 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
946 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
947 | tecks2.Parent = naeeym2 | |
948 | function Transparency(TRANS) | |
949 | tecks2.TextTransparency = TRANS | |
950 | tecks2.TextStrokeTransparency = TRANS | |
951 | for _, c in pairs(Character:GetChildren()) do | |
952 | if c.ClassName == "Part" and c ~= RootPart then | |
953 | c.Transparency = TRANS | |
954 | if c:FindFirstChildOfClass("Decal") then | |
955 | c:FindFirstChildOfClass("Decal").Transparency = TRANS | |
956 | end | |
957 | elseif c.ClassName == "Accessory" then | |
958 | c.Handle.Transparency = TRANS | |
959 | elseif c.ClassName == "Model" then | |
960 | for _, q in pairs(c:GetChildren()) do | |
961 | if q.ClassName == "Part" then | |
962 | q.Transparency = TRANS | |
963 | if q:FindFirstChildOfClass("Decal") then | |
964 | q:FindFirstChildOfClass("Decal").Transparency = TRANS | |
965 | end | |
966 | end | |
967 | end | |
968 | end | |
969 | end | |
970 | end | |
971 | ||
972 | local DECAL = IT("Decal") | |
973 | function MakeRing() | |
974 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really red"), "MagicRing", VT(0, 0, 0), true) | |
975 | local MSH = IT("BlockMesh", RING) | |
976 | local TOP = DECAL:Clone() | |
977 | local BOTTOM = DECAL:Clone() | |
978 | TOP.Parent = RING | |
979 | BOTTOM.Parent = RING | |
980 | TOP.Face = "Top" | |
981 | BOTTOM.Face = "Bottom" | |
982 | TOP.Texture = "http://www.roblox.com/asset/?id=127817121" | |
983 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121" | |
984 | local function REMOVE() | |
985 | coroutine.resume(coroutine.create(function() | |
986 | local SIZE = MSH.Scale.X | |
987 | for i = 1, 35 do | |
988 | Swait() | |
989 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
990 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
991 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
992 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
993 | end | |
994 | RING:remove() | |
995 | end)) | |
996 | end | |
997 | return RING, MSH, REMOVE | |
998 | end | |
999 | ||
1000 | ||
1001 | local Handle = CreatePart(3, Weapon, "Glass", 0, 0, "New Yeller", "Handle", VT(0.2,1,0.2),false) | |
1002 | MakeForm(Handle,"Cyl") | |
1003 | local Grasp = CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Handle, CF(0,-1,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1004 | local Bop = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Bop", VT(0.5,0.5,0.5),false) | |
1005 | MakeForm(Bop,"Ball") | |
1006 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Bop, CF(0,0.7,0), CF(0, 0, 0)) | |
1007 | local Part = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Shield", VT(0.5,0.2,0.5),false) | |
1008 | MakeForm(Part,"Pine") | |
1009 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1010 | local Part = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Shield", VT(0.6,0.3,0.6),false) | |
1011 | MakeForm(Part,"Pine") | |
1012 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-0.7,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1013 | local Blade = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Blade", VT(0.3,5,0.3),false) | |
1014 | MakeForm(Blade,"Pine") | |
1015 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Blade, CF(0,-2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1016 | ||
1017 | local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Shield", VT(1.05,0.1,1.05),false) | |
1018 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(0,-0.3,0), CF(0, 0, 0)) | |
1019 | local ShieldBase = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(2,2,1),false) | |
1020 | CreateMesh("SpecialMesh", ShieldBase, "FileMesh", "395088733", "", VT(1,1,1), VT(0,0,0)) | |
1021 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, ShieldBase, CF(-0.5,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1022 | local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(0,0,0),false) | |
1023 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95,0.95,1), VT(0,0,0)) | |
1024 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.4,-0.3,0) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
1025 | local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(0,0,0),false) | |
1026 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.95,0.95,1), VT(0,0,0)) | |
1027 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.515,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1028 | local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(0,0,0),false) | |
1029 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.7,0.7,1), VT(0,0,0)) | |
1030 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1031 | local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(0,0,0),false) | |
1032 | CreateMesh("SpecialMesh", Shield, "FileMesh", "395088733", "", VT(0.5,0.5,1), VT(0,0,0)) | |
1033 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65,-0.3,0) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1034 | local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Shield", VT(0.8,2,0.2),false) | |
1035 | MakeForm(Shield,"Ball") | |
1036 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65,-0.3,0), CF(0, 0, 0)) | |
1037 | local Shield = CreatePart(3, Weapon, "Glass", 0, 0, "Really red", "Shield", VT(0.8,0.2,2),false) | |
1038 | MakeForm(Shield,"Ball") | |
1039 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.65,-0.3,0), CF(0, 0, 0)) | |
1040 | local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(0.8,2,0.3),false) | |
1041 | MakeForm(Shield,"Ball") | |
1042 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6,-0.3,0), CF(0, 0, 0)) | |
1043 | local Shield = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really red", "Shield", VT(0.8,0.3,2),false) | |
1044 | MakeForm(Shield,"Ball") | |
1045 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Shield, CF(-0.6,-0.3,0), CF(0, 0, 0)) | |
1046 | ||
1047 | local A = IT("Attachment",LeftArm) | |
1048 | A.Position = VT(1,1.3,0) | |
1049 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1050 | local B = IT("Attachment",LeftArm) | |
1051 | B.Position = VT(-1.3,-0.6,0) | |
1052 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1053 | local ChainLink = IT("Beam",LeftArm) | |
1054 | ChainLink.Texture = "rbxassetid://73042633" | |
1055 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
1056 | ChainLink.TextureSpeed = 1 | |
1057 | ChainLink.FaceCamera = true | |
1058 | ChainLink.Width0 = 1 | |
1059 | ChainLink.Width1 = 1 | |
1060 | ChainLink.TextureLength = 3 | |
1061 | ChainLink.Attachment0 = A | |
1062 | ChainLink.Attachment1 = B | |
1063 | ChainLink.CurveSize0 = 1.6 | |
1064 | ChainLink.CurveSize1 = 1.6 | |
1065 | ChainLink.FaceCamera = true | |
1066 | ChainLink.Transparency = NumberSequence.new(0) | |
1067 | local ChainLink = IT("Beam",LeftArm) | |
1068 | ChainLink.Texture = "rbxassetid://73042633" | |
1069 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
1070 | ChainLink.TextureSpeed = 1 | |
1071 | ChainLink.FaceCamera = true | |
1072 | ChainLink.Width0 = 1 | |
1073 | ChainLink.Width1 = 1 | |
1074 | ChainLink.TextureLength = 3 | |
1075 | ChainLink.Attachment0 = B | |
1076 | ChainLink.Attachment1 = A | |
1077 | ChainLink.CurveSize0 = 1.6 | |
1078 | ChainLink.CurveSize1 = 1.6 | |
1079 | ChainLink.FaceCamera = true | |
1080 | ChainLink.Transparency = NumberSequence.new(0) | |
1081 | local A = IT("Attachment",RightArm) | |
1082 | A.Position = VT(1.3,-0.85,0) | |
1083 | A.Orientation = VT(-0.098, -89.999, 0.227) | |
1084 | local B = IT("Attachment",RightArm) | |
1085 | B.Position = VT(-1,2,0) | |
1086 | B.Orientation = VT(-88.911, -68.808, 158.782) | |
1087 | local ChainLink = IT("Beam",RightArm) | |
1088 | ChainLink.Texture = "rbxassetid://73042633" | |
1089 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
1090 | ChainLink.TextureSpeed = 1 | |
1091 | ChainLink.FaceCamera = true | |
1092 | ChainLink.Width0 = 1 | |
1093 | ChainLink.Width1 = 1 | |
1094 | ChainLink.TextureLength = 3 | |
1095 | ChainLink.Attachment0 = A | |
1096 | ChainLink.Attachment1 = B | |
1097 | ChainLink.CurveSize0 = 1.3 | |
1098 | ChainLink.CurveSize1 = 1.3 | |
1099 | ChainLink.FaceCamera = true | |
1100 | ChainLink.Transparency = NumberSequence.new(0) | |
1101 | local ChainLink = IT("Beam",RightArm) | |
1102 | ChainLink.Texture = "rbxassetid://73042633" | |
1103 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
1104 | ChainLink.TextureSpeed = 1 | |
1105 | ChainLink.FaceCamera = true | |
1106 | ChainLink.Width0 = 1 | |
1107 | ChainLink.Width1 = 1 | |
1108 | ChainLink.TextureLength = 3 | |
1109 | ChainLink.Attachment0 = B | |
1110 | ChainLink.Attachment1 = A | |
1111 | ChainLink.CurveSize0 = 1.3 | |
1112 | ChainLink.CurveSize1 = 1.3 | |
1113 | ChainLink.FaceCamera = true | |
1114 | ChainLink.Transparency = NumberSequence.new(0) | |
1115 | ||
1116 | ||
1117 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) | |
1118 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
1119 | MakeForm(Part,"Wedge") | |
1120 | ||
1121 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) | |
1122 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1123 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
1124 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) | |
1125 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
1126 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) | |
1127 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) | |
1128 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1129 | local Eon = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eon", VT(0.5,0.5,1.25),false) | |
1130 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Eon, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1131 | ||
1132 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0)) | |
1133 | local Gun = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false) | |
1134 | local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "468351345", "468351348", VT(0.06,0.06,0.06), VT(0,0, 0)) | |
1135 | local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.8, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0)) | |
1136 | ||
1137 | --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}) | |
1138 | function WACKYEFFECT(Table) | |
1139 | local TYPE = (Table.EffectType or "Sphere") | |
1140 | local SIZE = (Table.Size or VT(1,1,1)) | |
1141 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1142 | local TRANSPARENCY = (Table.Transparency or 0) | |
1143 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1144 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1145 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1146 | local ROTATION1 = (Table.RotationX or 0) | |
1147 | local ROTATION2 = (Table.RotationY or 0) | |
1148 | local ROTATION3 = (Table.RotationZ or 0) | |
1149 | local MATERIAL = (Table.Material or "Neon") | |
1150 | local COLOR = (Table.Color or C3(1,1,1)) | |
1151 | local TIME = (Table.Time or 45) | |
1152 | local SOUNDID = (Table.SoundID or nil) | |
1153 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1154 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1155 | coroutine.resume(coroutine.create(function() | |
1156 | local PLAYSSOUND = false | |
1157 | local SOUND = nil | |
1158 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true) | |
1159 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1160 | PLAYSSOUND = true | |
1161 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1162 | end | |
1163 | EFFECT.Color = COLOR | |
1164 | local MSH = nil | |
1165 | if TYPE == "Sphere" then | |
1166 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1167 | elseif TYPE == "Block" then | |
1168 | MSH = IT("BlockMesh",EFFECT) | |
1169 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1170 | elseif TYPE == "Wave" then | |
1171 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1172 | elseif TYPE == "Ring" then | |
1173 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1174 | elseif TYPE == "Slash" then | |
1175 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1176 | elseif TYPE == "Round Slash" then | |
1177 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1178 | elseif TYPE == "Swirl" then | |
1179 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1180 | elseif TYPE == "Skull" then | |
1181 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1182 | elseif TYPE == "Crystal" then | |
1183 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1184 | end | |
1185 | if MSH ~= nil then | |
1186 | local MOVESPEED = nil | |
1187 | if MOVEDIRECTION ~= nil then | |
1188 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1189 | end | |
1190 | local GROWTH = SIZE - ENDSIZE | |
1191 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1192 | if TYPE == "Block" then | |
1193 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1194 | else | |
1195 | EFFECT.CFrame = CFRAME | |
1196 | end | |
1197 | for LOOP = 1, TIME+1 do | |
1198 | Swait() | |
1199 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1200 | if TYPE == "Wave" then | |
1201 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
1202 | end | |
1203 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
1204 | if TYPE == "Block" then | |
1205 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1206 | else | |
1207 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
1208 | end | |
1209 | if MOVEDIRECTION ~= nil then | |
1210 | local ORI = EFFECT.Orientation | |
1211 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
1212 | EFFECT.Orientation = ORI | |
1213 | end | |
1214 | end | |
1215 | if PLAYSSOUND == false then | |
1216 | EFFECT:remove() | |
1217 | else | |
1218 | SOUND.Stopped:Connect(function() | |
1219 | EFFECT:remove() | |
1220 | end) | |
1221 | end | |
1222 | else | |
1223 | if PLAYSSOUND == false then | |
1224 | EFFECT:remove() | |
1225 | else | |
1226 | repeat Swait() until SOUND.Playing == false | |
1227 | EFFECT:remove() | |
1228 | end | |
1229 | end | |
1230 | end)) | |
1231 | end | |
1232 | ||
1233 | ||
1234 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
1235 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
1236 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0)) | |
1237 | wave.CFrame = CFRAME | |
1238 | coroutine.resume(coroutine.create(function(PART) | |
1239 | for i = 1, WAIT do | |
1240 | Swait() | |
1241 | mesh.Scale = mesh.Scale + GROW | |
1242 | if DOESROT == true then | |
1243 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
1244 | end | |
1245 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
1246 | if wave.Transparency > 0.99 then | |
1247 | wave:remove() | |
1248 | end | |
1249 | end | |
1250 | end)) | |
1251 | end | |
1252 | ||
1253 | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) | |
1254 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
1255 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8)) | |
1256 | wave.CFrame = CFRAME | |
1257 | coroutine.resume(coroutine.create(function(PART) | |
1258 | for i = 1, WAIT do | |
1259 | Swait() | |
1260 | mesh.Scale = mesh.Scale + GROW | |
1261 | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) | |
1262 | if DOESROT == true then | |
1263 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
1264 | end | |
1265 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
1266 | if wave.Transparency > 0.99 then | |
1267 | wave:remove() | |
1268 | end | |
1269 | end | |
1270 | end)) | |
1271 | end | |
1272 | ||
1273 | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) | |
1274 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
1275 | local mesh | |
1276 | if KIND == "Base" then | |
1277 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0)) | |
1278 | elseif KIND == "Thin" then | |
1279 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
1280 | elseif KIND == "Round" then | |
1281 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0)) | |
1282 | end | |
1283 | wave.CFrame = CFRAME | |
1284 | coroutine.resume(coroutine.create(function(PART) | |
1285 | for i = 1, WAIT do | |
1286 | Swait() | |
1287 | mesh.Scale = mesh.Scale + GROW / 10 | |
1288 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
1289 | if wave.Transparency > 0.99 then | |
1290 | wave:remove() | |
1291 | end | |
1292 | end | |
1293 | end)) | |
1294 | end | |
1295 | ||
1296 | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) | |
1297 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
1298 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0)) | |
1299 | wave.CFrame = CFRAME | |
1300 | coroutine.resume(coroutine.create(function(PART) | |
1301 | for i = 1, WAIT do | |
1302 | Swait() | |
1303 | mesh.Scale = mesh.Scale + GROW | |
1304 | if DOESROT == true then | |
1305 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) | |
1306 | end | |
1307 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
1308 | if wave.Transparency > 0.99 then | |
1309 | wave:remove() | |
1310 | end | |
1311 | end | |
1312 | end)) | |
1313 | end | |
1314 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
1315 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
1316 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
1317 | wave.CFrame = CFRAME | |
1318 | coroutine.resume(coroutine.create(function(PART) | |
1319 | for i = 1, WAIT do | |
1320 | Swait() | |
1321 | mesh.Scale = mesh.Scale + GROW | |
1322 | wave.Transparency = wave.Transparency + 1 / WAIT | |
1323 | if wave.Transparency > 0.99 then | |
1324 | wave:remove() | |
1325 | end | |
1326 | end | |
1327 | end)) | |
1328 | end | |
1329 | ||
1330 | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) | |
1331 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
1332 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0)) | |
1333 | wave.CFrame = CFRAME | |
1334 | coroutine.resume(coroutine.create(function(PART) | |
1335 | for i = 1, WAIT do | |
1336 | Swait() | |
1337 | mesh.Scale = mesh.Scale + GROW | |
1338 | wave.Transparency = wave.Transparency + 1 / WAIT | |
1339 | if wave.Transparency > 0.99 then | |
1340 | wave:remove() | |
1341 | end | |
1342 | end | |
1343 | end)) | |
1344 | end | |
1345 | ||
1346 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
1347 | PRT.Color = C3(0,0,0) | |
1348 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
1349 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
1350 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
1351 | PRT.Color = C3(0,0,0) | |
1352 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1353 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
1354 | for i = 1, 16 do | |
1355 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
1356 | FACE.Color = C3(0,0,0) | |
1357 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
1358 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) | |
1359 | end | |
1360 | ||
1361 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1362 | function ParticleEmitter(Table) | |
1363 | local PRTCL = Particle:Clone() | |
1364 | local Speed = Table.Speed or 5 | |
1365 | local Drag = Table.Drag or 0 | |
1366 | local Size1 = Table.Size1 or 1 | |
1367 | local Size2 = Table.Size2 or 5 | |
1368 | local Lifetime1 = Table.Lifetime1 or 1 | |
1369 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1370 | local Parent = Table.Parent or Torso | |
1371 | local Emit = Table.Emit or 100 | |
1372 | local Offset = Table.Offset or 360 | |
1373 | local Acel = Table.Acel or VT(0,0,0) | |
1374 | local Enabled = Table.Enabled or false | |
1375 | PRTCL.Parent = Parent | |
1376 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1377 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1378 | PRTCL.Speed = NumberRange.new(Speed) | |
1379 | PRTCL.VelocitySpread = Offset | |
1380 | PRTCL.Drag = Drag | |
1381 | PRTCL.Acceleration = Acel | |
1382 | if Enabled == false then | |
1383 | PRTCL:Emit(Emit) | |
1384 | Debris:AddItem(PRTCL,Lifetime2) | |
1385 | else | |
1386 | PRTCL.Enabled = true | |
1387 | end | |
1388 | return PRTCL | |
1389 | end | |
1390 | ||
1391 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1392 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1393 | ||
1394 | for _, c in pairs(Weapon:GetDescendants()) do | |
1395 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1396 | c.Material = "Glass" | |
1397 | c.Color = C3(0,0,0) | |
1398 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1399 | c.Color = C3(1,0,0) | |
1400 | c.Material = "Neon" | |
1401 | end | |
1402 | end | |
1403 | ||
1404 | Weapon.Parent = Character | |
1405 | for _, c in pairs(Weapon:GetChildren()) do | |
1406 | if c.ClassName == "Part" then | |
1407 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1408 | end | |
1409 | end | |
1410 | ||
1411 | local SKILLTEXTCOLOR = C3(1,1,1) | |
1412 | local SKILLFONT = "SciFi" | |
1413 | local SKILLTEXTSIZE = 4 | |
1414 | ||
1415 | local ATTACKS = {"Warp - Q","Magic Roar- R","Laser Sword- E","Laugh- T","Block2 - N"} | |
1416 | ||
1417 | for i = 1, #ATTACKS do | |
1418 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame") | |
1419 | local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
1420 | SKILLTEXT.TextXAlignment = "Left" | |
1421 | SKILLTEXT.Rotation = i*3 | |
1422 | end | |
1423 | ||
1424 | Humanoid.Died:Connect(function() | |
1425 | RootPart:remove() | |
1426 | CreateSound(160718677, Head, 4, 1, false) | |
1427 | BMUSIC:remove() | |
1428 | Effects:remove() | |
1429 | WEAPONGUI:remove() | |
1430 | end) | |
1431 | local GRUNTS = {1146556975,1146556706,1278006076} | |
1432 | ||
1433 | Weapon.Parent = Character | |
1434 | for _, c in pairs(Weapon:GetChildren()) do | |
1435 | if c.ClassName == "Part" then | |
1436 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1437 | end | |
1438 | end | |
1439 | ||
1440 | local SKILLTEXTCOLOR = C3(1,1,1) | |
1441 | local SKILLFONT = "SciFi" | |
1442 | local SKILLTEXTSIZE = 4 | |
1443 | ||
1444 | local ATTACKS = {"Morning_Star - Z","Laser - V","Warp - B","Bomb- F","Block - M"} | |
1445 | ||
1446 | for i = 1, #ATTACKS do | |
1447 | local SKILLFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.74, 0, 0.97-(0.04*i), 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Frame") | |
1448 | local SKILLTEXT = CreateLabel(SKILLFRAME, "["..ATTACKS[i].."]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Skill text") | |
1449 | SKILLTEXT.TextXAlignment = "Right" | |
1450 | SKILLTEXT.Rotation = i*3 | |
1451 | end | |
1452 | ||
1453 | local HEALTHBAR = CreateFrame(WEAPONGUI, 0.5, 1, UD2(1-0.20, 0, 0.75, 0), UD2(0.20, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Health Bar") | |
1454 | local HEALTHCOVER = CreateFrame(HEALTHBAR, 0, 0, UD2(0, 0, 0, 0), UD2(0, 0, 1, 0), BRICKC"Shamrock".Color, C3(0, 0, 0),"Health Cover") | |
1455 | local HEALTHTEXT = CreateLabel(HEALTHBAR, Humanoid.Health.."/"..Humanoid.MaxHealth, SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "HP") | |
1456 | Character.Health:remove() | |
1457 | HEALTHBAR.Rotation = (#ATTACKS*3)+3 | |
1458 | local WHOAMI = CreateFrame(WEAPONGUI, 1, 1, UD2(1-0.26, 0, 0.69, 0), UD2(0.26, 0, 0.02, 0), C3(0,0,0), C3(0, 0, 0),"Ban") | |
1459 | WHOAMI.Rotation = (#ATTACKS*3)+3 | |
1460 | CreateLabel(WHOAMI, "Mad V.4", SKILLTEXTCOLOR, SKILLTEXTSIZE+4, SKILLFONT, 0, 2, 0, "Yes") | |
1461 | ||
1462 | Humanoid.MaxHealth = 1.0E298 | |
1463 | Humanoid.Health = 1.0E298 | |
1464 | ||
1465 | Humanoid.Died:Connect(function() | |
1466 | RootPart:remove() | |
1467 | CreateSound(160718677, Head, 4, 1, false) | |
1468 | BMUSIC:remove() | |
1469 | Effects:remove() | |
1470 | WEAPONGUI:remove() | |
1471 | end) | |
1472 | local GRUNTS = {1146556975,1146556706,1278006076} | |
1473 | ||
1474 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1475 | local SKILLFONT = "SciFi" | |
1476 | local SKILLTEXTSIZE = 5 | |
1477 | ||
1478 | Weapon.Parent = Character | |
1479 | ||
1480 | Humanoid.Died:connect(function() | |
1481 | ATTACK = true | |
1482 | end) | |
1483 | ||
1484 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.9, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1485 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.9, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1486 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.9, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1487 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.9, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1488 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.9, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1489 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.9, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1490 | ||
1491 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1") | |
1492 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2") | |
1493 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3") | |
1494 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4") | |
1495 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5") | |
1496 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6") | |
1497 | ||
1498 | function printbye(Name) | |
1499 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1500 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1501 | end | |
1502 | ||
1503 | workspace.ChildAdded:connect(function(instance) | |
1504 | for BANISH = 1, #TOBANISH do | |
1505 | if TOBANISH[BANISH] ~= nil then | |
1506 | if instance.Name == TOBANISH[BANISH] then | |
1507 | coroutine.resume(coroutine.create(function() | |
1508 | printbye(instance.Name) | |
1509 | instance:ClearAllChildren() | |
1510 | Debris:AddItem(instance,0.0005) | |
1511 | end)) | |
1512 | end | |
1513 | end | |
1514 | end | |
1515 | end) | |
1516 | ||
1517 | --//=================================\\ | |
1518 | --|| DAMAGING | |
1519 | --\\=================================// | |
1520 | ||
1521 | function freezenearest(position, range) | |
1522 | for i, v in ipairs(workspace:GetChildren()) do | |
1523 | local body = v:GetChildren() | |
1524 | for part = 1, #body do | |
1525 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" and v:FindFirstChildOfClass("Humanoid") then | |
1526 | v:BreakJoints() | |
1527 | body[part].Material = "Ice" | |
1528 | body[part].BrickColor = BRICKC("Really red") | |
1529 | body[part].Anchored = true | |
1530 | end | |
1531 | end | |
1532 | end | |
1533 | end | |
1534 | ||
1535 | function BulletDetection(FROM,TO,BRUTAL) | |
1536 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
1537 | coroutine.resume(coroutine.create(function() | |
1538 | if AIMHIT ~= nil then | |
1539 | if AIMHIT.Parent ~= Character then | |
1540 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1541 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1542 | if BRUTAL == true then | |
1543 | Kill(AIMHIT.Parent) | |
1544 | else | |
1545 | getbloody(AIMHIT,15) | |
1546 | AIMHIT.Parent:BreakJoints() | |
1547 | if AIMHIT.Name == "Head" then | |
1548 | AIMHIT.Name = "HEADSHOT" | |
1549 | AIMHIT:remove() | |
1550 | end | |
1551 | end | |
1552 | else | |
1553 | if BRUTAL == true then | |
1554 | Kill(AIMHIT.Parent.Parent) | |
1555 | else | |
1556 | AIMHIT.Parent.Parent:BreakJoints() | |
1557 | end | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end)) | |
1563 | SpawnTrail(FROM,AIMPOS) | |
1564 | return AIMHIT,AIMPOS,NORMAL | |
1565 | end | |
1566 | ||
1567 | function Banish(Foe) | |
1568 | if Foe then | |
1569 | coroutine.resume(coroutine.create(function() | |
1570 | --if game.Players:FindFirstChild(Foe.Name) then | |
1571 | table.insert(TOBANISH,Foe.Name) | |
1572 | printbye(Foe.Name) | |
1573 | --end | |
1574 | Foe.Archivable = true | |
1575 | local CLONE = Foe:Clone() | |
1576 | Foe:Destroy() | |
1577 | CLONE.Parent = Effects | |
1578 | CLONE:BreakJoints() | |
1579 | local MATERIALS = {"Glass","Neon"} | |
1580 | for _, c in pairs(CLONE:GetDescendants()) do | |
1581 | if c:IsA("BasePart") then | |
1582 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1583 | CreateSound(340722848, c, 10, 1, false) | |
1584 | end | |
1585 | c.Anchored = true | |
1586 | c.Transparency = c.Transparency + 0.2 | |
1587 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1588 | c.Color = C3(0,1,0) | |
1589 | if c.ClassName == "MeshPart" then | |
1590 | c.TextureID = "" | |
1591 | end | |
1592 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1593 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1594 | end | |
1595 | if c:FindFirstChildOfClass("Decal") then | |
1596 | c:FindFirstChildOfClass("Decal"):remove() | |
1597 | end | |
1598 | c.Name = "Banished" | |
1599 | c.CanCollide = false | |
1600 | else | |
1601 | c:remove() | |
1602 | end | |
1603 | end | |
1604 | local A = false | |
1605 | for i = 1, 35 do | |
1606 | if A == false then | |
1607 | A = true | |
1608 | elseif A == true then | |
1609 | A = false | |
1610 | end | |
1611 | for _, c in pairs(CLONE:GetDescendants()) do | |
1612 | if c:IsA("BasePart") then | |
1613 | c.Anchored = true | |
1614 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1615 | c.Transparency = c.Transparency + 0.8/35 | |
1616 | if A == false then | |
1617 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1618 | elseif A == true then | |
1619 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1620 | end | |
1621 | end | |
1622 | end | |
1623 | Swait() | |
1624 | end | |
1625 | CLONE:remove() | |
1626 | end)) | |
1627 | end | |
1628 | end | |
1629 | ||
1630 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1631 | local CHILDREN = workspace:GetDescendants() | |
1632 | for index, CHILD in pairs(CHILDREN) do | |
1633 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1634 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1635 | if HUM then | |
1636 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1637 | if TORSO then | |
1638 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1639 | if ISBANISH == true then | |
1640 | Banish(CHILD) | |
1641 | else | |
1642 | if ISBANISH == "Gravity" then | |
1643 | HUM.PlatformStand = true | |
1644 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1645 | local grav = Instance.new("BodyPosition",TORSO) | |
1646 | grav.D = 15 | |
1647 | grav.P = 20000 | |
1648 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1649 | grav.position = TORSO.Position | |
1650 | grav.Name = "V3BanishForce"..Player.Name | |
1651 | else | |
1652 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1653 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1654 | end | |
1655 | else | |
1656 | HUM.PlatformStand = false | |
1657 | end | |
1658 | end | |
1659 | elseif ISBANISH == "Gravity" then | |
1660 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1661 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1662 | HUM.PlatformStand = false | |
1663 | end | |
1664 | end | |
1665 | end | |
1666 | end | |
1667 | end | |
1668 | end | |
1669 | end | |
1670 | ||
1671 | function Kill(Char) | |
1672 | local NewCharacter = IT("Model",Effects) | |
1673 | NewCharacter.Name = "Ow im ded ;-;" | |
1674 | for _, c in pairs(Char:GetDescendants()) do | |
1675 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1676 | if c.Parent == Char then | |
1677 | getbloody(c,5) | |
1678 | end | |
1679 | c:BreakJoints() | |
1680 | c.Material = "Glass" | |
1681 | c.Color = C3(0.5,0,0) | |
1682 | c.CanCollide = true | |
1683 | c.Transparency = 0.3 | |
1684 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1685 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1686 | end | |
1687 | if c.Name == "Head" then | |
1688 | c:ClearAllChildren() | |
1689 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1690 | end | |
1691 | if c.ClassName == "MeshPart" then | |
1692 | c.TextureID = "" | |
1693 | end | |
1694 | if c:FindFirstChildOfClass("BodyPosition") then | |
1695 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1696 | end | |
1697 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1698 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1699 | end | |
1700 | c.Parent = NewCharacter | |
1701 | c.Name = "DeadPart" | |
1702 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1703 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1704 | end | |
1705 | end | |
1706 | Char:remove() | |
1707 | Debris:AddItem(NewCharacter,5) | |
1708 | end | |
1709 | ||
1710 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1711 | local CHILDREN = workspace:GetDescendants() | |
1712 | for index, CHILD in pairs(CHILDREN) do | |
1713 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1714 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1715 | if HUM then | |
1716 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1717 | if TORSO then | |
1718 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1719 | if BRUTAL == true then | |
1720 | Kill(CHILD) | |
1721 | else | |
1722 | CHILD:BreakJoints() | |
1723 | end | |
1724 | end | |
1725 | end | |
1726 | end | |
1727 | end | |
1728 | end | |
1729 | end | |
1730 | ||
1731 | function BulletDetection(FROM,TO,BRUTAL) | |
1732 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
1733 | coroutine.resume(coroutine.create(function() | |
1734 | if AIMHIT ~= nil then | |
1735 | if AIMHIT.Parent ~= Character then | |
1736 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1737 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1738 | if BRUTAL == true then | |
1739 | Kill(AIMHIT.Parent) | |
1740 | else | |
1741 | getbloody(AIMHIT,15) | |
1742 | AIMHIT.Parent:BreakJoints() | |
1743 | if AIMHIT.Name == "Head" then | |
1744 | AIMHIT.Name = "HEADSHOT" | |
1745 | AIMHIT:remove() | |
1746 | end | |
1747 | end | |
1748 | else | |
1749 | if BRUTAL == true then | |
1750 | Kill(AIMHIT.Parent.Parent) | |
1751 | else | |
1752 | AIMHIT.Parent.Parent:BreakJoints() | |
1753 | end | |
1754 | end | |
1755 | end | |
1756 | end | |
1757 | end | |
1758 | end)) | |
1759 | SpawnTrail(FROM,AIMPOS) | |
1760 | return AIMHIT,AIMPOS,NORMAL | |
1761 | end | |
1762 | ||
1763 | function Banish(Foe) | |
1764 | if Foe then | |
1765 | coroutine.resume(coroutine.create(function() | |
1766 | --if game.Players:FindFirstChild(Foe.Name) then | |
1767 | table.insert(TOBANISH,Foe.Name) | |
1768 | printbye(Foe.Name) | |
1769 | --end | |
1770 | Foe.Archivable = true | |
1771 | local CLONE = Foe:Clone() | |
1772 | Foe:Destroy() | |
1773 | CLONE.Parent = Effects | |
1774 | CLONE:BreakJoints() | |
1775 | local MATERIALS = {"Glass","Neon"} | |
1776 | for _, c in pairs(CLONE:GetDescendants()) do | |
1777 | if c:IsA("BasePart") then | |
1778 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1779 | CreateSound(340722848, c, 10, 1, false) | |
1780 | end | |
1781 | c.Anchored = true | |
1782 | c.Transparency = c.Transparency + 0.2 | |
1783 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1784 | c.Color = C3(1,0,0) | |
1785 | if c.ClassName == "MeshPart" then | |
1786 | c.TextureID = "" | |
1787 | end | |
1788 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1789 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1790 | end | |
1791 | if c:FindFirstChildOfClass("Decal") then | |
1792 | c:FindFirstChildOfClass("Decal"):remove() | |
1793 | end | |
1794 | c.Name = "Banished" | |
1795 | c.CanCollide = false | |
1796 | else | |
1797 | c:remove() | |
1798 | end | |
1799 | end | |
1800 | local A = false | |
1801 | for i = 1, 35 do | |
1802 | if A == false then | |
1803 | A = true | |
1804 | elseif A == true then | |
1805 | A = false | |
1806 | end | |
1807 | for _, c in pairs(CLONE:GetDescendants()) do | |
1808 | if c:IsA("BasePart") then | |
1809 | c.Anchored = true | |
1810 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1811 | c.Transparency = c.Transparency + 0.8/35 | |
1812 | if A == false then | |
1813 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1814 | elseif A == true then | |
1815 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1816 | end | |
1817 | end | |
1818 | end | |
1819 | Swait() | |
1820 | end | |
1821 | CLONE:remove() | |
1822 | end)) | |
1823 | end | |
1824 | end | |
1825 | ||
1826 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1827 | local CHILDREN = workspace:GetDescendants() | |
1828 | for index, CHILD in pairs(CHILDREN) do | |
1829 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1830 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1831 | if HUM then | |
1832 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1833 | if TORSO then | |
1834 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1835 | if ISBANISH == true then | |
1836 | Banish(CHILD) | |
1837 | else | |
1838 | if ISBANISH == "Gravity" then | |
1839 | HUM.PlatformStand = true | |
1840 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1841 | local grav = Instance.new("BodyPosition",TORSO) | |
1842 | grav.D = 15 | |
1843 | grav.P = 20000 | |
1844 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1845 | grav.position = TORSO.Position | |
1846 | grav.Name = "V3BanishForce"..Player.Name | |
1847 | else | |
1848 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1849 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1850 | end | |
1851 | else | |
1852 | HUM.PlatformStand = false | |
1853 | end | |
1854 | end | |
1855 | elseif ISBANISH == "Gravity" then | |
1856 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1857 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1858 | HUM.PlatformStand = false | |
1859 | end | |
1860 | end | |
1861 | end | |
1862 | end | |
1863 | end | |
1864 | end | |
1865 | end | |
1866 | ||
1867 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1868 | local CHILDREN = workspace:GetDescendants() | |
1869 | for index, CHILD in pairs(CHILDREN) do | |
1870 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1871 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1872 | if HUM then | |
1873 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1874 | if TORSO then | |
1875 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1876 | if BRUTAL == true then | |
1877 | Kill(CHILD) | |
1878 | else | |
1879 | CHILD:BreakJoints() | |
1880 | end | |
1881 | end | |
1882 | end | |
1883 | end | |
1884 | end | |
1885 | end | |
1886 | end | |
1887 | ||
1888 | function Kill(Char) | |
1889 | local NewCharacter = IT("Model",Effects) | |
1890 | NewCharacter.Name = "Ow im ded ;-;" | |
1891 | for _, c in pairs(Char:GetDescendants()) do | |
1892 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1893 | if c.Parent == Char then | |
1894 | getbloody(c,5) | |
1895 | end | |
1896 | c:BreakJoints() | |
1897 | c.Material = "Glass" | |
1898 | c.Color = C3(1,0,0) | |
1899 | c.CanCollide = true | |
1900 | c.Transparency = 0.3 | |
1901 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1902 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1903 | end | |
1904 | if c.Name == "Head" then | |
1905 | c:ClearAllChildren() | |
1906 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1907 | end | |
1908 | if c.ClassName == "MeshPart" then | |
1909 | c.TextureID = "" | |
1910 | end | |
1911 | if c:FindFirstChildOfClass("BodyPosition") then | |
1912 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1913 | end | |
1914 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1915 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1916 | end | |
1917 | c.Parent = NewCharacter | |
1918 | c.Name = "DeadPart" | |
1919 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1920 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1921 | end | |
1922 | end | |
1923 | Char:remove() | |
1924 | Debris:AddItem(NewCharacter,5) | |
1925 | end | |
1926 | ||
1927 | function ApplyClock(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1928 | local CHILDREN = workspace:GetDescendants() | |
1929 | for index, CHILD in pairs(CHILDREN) do | |
1930 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1931 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1932 | if HUM then | |
1933 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1934 | if TORSO then | |
1935 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1936 | if INSTAKILL == true then | |
1937 | CHILD:BreakJoints() | |
1938 | else | |
1939 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1940 | ApplyDamage(HUM,DMG,TORSO) | |
1941 | end | |
1942 | if FLING > 0 then | |
1943 | for _, c in pairs(CHILD:GetChildren()) do | |
1944 | if c:IsA("BasePart") then | |
1945 | local bv = Instance.new("BodyVelocity") | |
1946 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1947 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1948 | bv.Parent = c | |
1949 | Debris:AddItem(bv,0.05) | |
1950 | end | |
1951 | end | |
1952 | end | |
1953 | end | |
1954 | end | |
1955 | end | |
1956 | end | |
1957 | end | |
1958 | end | |
1959 | ||
1960 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
1961 | local TORSO = Torso | |
1962 | local HUM = Humanoid | |
1963 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
1964 | coroutine.wrap(function() | |
1965 | VT = Vector3.new | |
1966 | MRANDOM = math.random | |
1967 | local A = TIME | |
1968 | local B = INTENSITY | |
1969 | local C = true | |
1970 | local HUMANOID = Humanoid | |
1971 | local TIMER = A or 35 | |
1972 | local SHAKE = B or 5 | |
1973 | local FADE = C or true | |
1974 | if HUMANOID then | |
1975 | local FADER = SHAKE / TIMER | |
1976 | for i = 1, TIMER do | |
1977 | wait() | |
1978 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
1979 | end | |
1980 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
1981 | end | |
1982 | ||
1983 | end)() | |
1984 | end | |
1985 | end | |
1986 | ||
1987 | function killnearest(position, range, maxstrength) | |
1988 | for i, v in ipairs(workspace:GetChildren()) do | |
1989 | local body = v:GetChildren() | |
1990 | for part = 1, #body do | |
1991 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then | |
1992 | if v.ClassName == "Model" then | |
1993 | v:BreakJoints() | |
1994 | end | |
1995 | local bv = Instance.new("BodyVelocity") | |
1996 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
1997 | bv.velocity = CF(position, body[part].Position).lookVector * maxstrength | |
1998 | bv.Parent = body[part] | |
1999 | Debris:AddItem(bv, 0.2) | |
2000 | end | |
2001 | end | |
2002 | if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then | |
2003 | v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength | |
2004 | end | |
2005 | end | |
2006 | end | |
2007 | ||
2008 | --//=================================\\ | |
2009 | --|| ATTACK FUNCTIONS AND STUFF | |
2010 | --\\=================================// | |
2011 | ||
2012 | function TakeOnMe() | |
2013 | Speed = 16 | |
2014 | local MEME = CreateSound(1171341451, Effects, 2, 1, false) | |
2015 | ATTACK = true | |
2016 | Rooted = false | |
2017 | local DANCE = true | |
2018 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
2019 | if NEWKEY == "p" then | |
2020 | DANCE = false | |
2021 | end | |
2022 | end) | |
2023 | PLAYSONG = false | |
2024 | while true do | |
2025 | for i = 1, 15 do | |
2026 | Swait() | |
2027 | MEME.Parent = Effects | |
2028 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2029 | 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) | |
2030 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2031 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2032 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.6) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2033 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2, -0.6) * ANGLES(RAD(15), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2034 | end | |
2035 | if DANCE == false then | |
2036 | break | |
2037 | end | |
2038 | for i = 1, 15 do | |
2039 | Swait() | |
2040 | MEME.Parent = Effects | |
2041 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4+((15-i)/45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2042 | 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) | |
2043 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(125), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2044 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2045 | 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) | |
2046 | 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) | |
2047 | end | |
2048 | end | |
2049 | PLAYSONG = true | |
2050 | KEY:Disconnect() | |
2051 | MEME:remove() | |
2052 | Speed = 25 | |
2053 | ATTACK = false | |
2054 | Rooted = false | |
2055 | end | |
2056 | ||
2057 | function Morning_Star() | |
2058 | ATTACK = true | |
2059 | Rooted = true | |
2060 | for i=0, 1, 0.1 / Animation_Speed do | |
2061 | Swait() | |
2062 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2063 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2064 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2065 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2066 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2067 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2068 | end | |
2069 | coroutine.resume(coroutine.create(function() | |
2070 | local POS = Mouse.Hit.p | |
2071 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,2000,0)) | |
2072 | MakeForm(RAY,"Cyl") | |
2073 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,0,0)) | |
2074 | MakeForm(SPHERE,"Ball") | |
2075 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Maroon", "Strike", VT(0,0,0)) | |
2076 | MakeForm(SHIELD,"Ball") | |
2077 | SHIELD.CFrame = CF(POS) | |
2078 | RAY.CFrame = CF(POS) | |
2079 | SPHERE.CFrame = CF(POS) | |
2080 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
2081 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
2082 | for i = 1, 200 do | |
2083 | Swait() | |
2084 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2085 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
2086 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
2087 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
2088 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
2089 | end | |
2090 | for i = 1, 45 do | |
2091 | Swait() | |
2092 | RAY.Transparency = RAY.Transparency + 1/45 | |
2093 | SPHERE.Transparency = RAY.Transparency | |
2094 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
2095 | end | |
2096 | RAY:remove() | |
2097 | SHIELD:remove() | |
2098 | SPHERE:remove() | |
2099 | end)) | |
2100 | for i=0, 1, 0.1 / Animation_Speed do | |
2101 | Swait() | |
2102 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2103 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2104 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2105 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2106 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2107 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2108 | end | |
2109 | ATTACK = false | |
2110 | Rooted = false | |
2111 | end | |
2112 | ||
2113 | function Taunt() | |
2114 | ATTACK = true | |
2115 | local LAUGH = nil | |
2116 | coroutine.resume(coroutine.create(function() | |
2117 | repeat | |
2118 | Swait() | |
2119 | 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) | |
2120 | 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) | |
2121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2123 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2124 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2125 | until LAUGH ~= nil | |
2126 | repeat | |
2127 | Swait() | |
2128 | LAUGH.Parent = Head | |
2129 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2130 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2131 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(180), RAD(10), RAD(-15)) * ANGLES(RAD(20), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2132 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(6), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2133 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2134 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2135 | until LAUGH.Playing == false | |
2136 | ATTACK = false | |
2137 | end)) | |
2138 | wait(0.1) | |
2139 | LAUGH = CreateSound(300208779, Head, 10, 1, false) | |
2140 | sick:Resume() | |
2141 | end | |
2142 | ||
2143 | function Shell() | |
2144 | ATTACK = true | |
2145 | Rooted = false | |
2146 | local GYRO = IT("BodyGyro",RootPart) | |
2147 | GYRO.D = 750 | |
2148 | GYRO.P = 20000 | |
2149 | GYRO.MaxTorque = VT(0,40000000,0) | |
2150 | for i=0, 1, 0.1 / Animation_Speed do | |
2151 | Swait() | |
2152 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2153 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2154 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2155 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2156 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2157 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2158 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2159 | end | |
2160 | GYRO:remove() | |
2161 | CreateSound(696483710, Gun, 5, 1, false) | |
2162 | local AIMHIT,AIMPOS,NORMAL = BulletDetection(Gun.Position,Mouse.Hit.p) | |
2163 | SpawnTrail(Gun.CFrame*CF(1.5,0.5,0).p,AIMPOS) | |
2164 | WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Gun.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2165 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2166 | Swait() | |
2167 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2168 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2169 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(110), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2170 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2171 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2172 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2173 | end | |
2174 | ATTACK = false | |
2175 | Rooted = false | |
2176 | end | |
2177 | ||
2178 | function Teleport() | |
2179 | ATTACK = true | |
2180 | Rooted = false | |
2181 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2182 | Swait() | |
2183 | 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) | |
2184 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2185 | end | |
2186 | for e = 1, #BODY do | |
2187 | if BODY[e] ~= nil then | |
2188 | local STUFF = BODY[e] | |
2189 | local PART = STUFF[1] | |
2190 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
2191 | local PRT = PART:Clone() | |
2192 | PRT.Anchored = true | |
2193 | PRT.CanCollide = false | |
2194 | PRT.Material = "Neon" | |
2195 | PRT.Color = C3(1,1,1) | |
2196 | PRT.Name = "WarpEffect" | |
2197 | PRT.Parent = Effects | |
2198 | PRT.CFrame = PART.CFrame | |
2199 | PRT:BreakJoints() | |
2200 | if PRT:FindFirstChildOfClass("Sound") then | |
2201 | PRT:FindFirstChildOfClass("Sound"):remove() | |
2202 | end | |
2203 | if PRT:FindFirstChildOfClass("Decal") then | |
2204 | PRT:FindFirstChildOfClass("Decal"):remove() | |
2205 | end | |
2206 | coroutine.resume(coroutine.create(function() | |
2207 | for i = 1, 100 do | |
2208 | Swait() | |
2209 | PRT.Transparency = PRT.Transparency + 1/100 | |
2210 | end | |
2211 | PRT:remove() | |
2212 | end)) | |
2213 | end | |
2214 | end | |
2215 | end | |
2216 | CreateSound(217767125, Torso, 10, 1) | |
2217 | local POS = RootPart.Orientation | |
2218 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
2219 | RootPart.Orientation = POS | |
2220 | RootJoint.Parent = RootPart | |
2221 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2222 | Swait() | |
2223 | 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) | |
2224 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-15), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
2225 | end | |
2226 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2227 | Swait() | |
2228 | 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, 0.75 / Animation_Speed) | |
2229 | end | |
2230 | ATTACK = false | |
2231 | Rooted = false | |
2232 | end | |
2233 | ||
2234 | function G() | |
2235 | ATTACK = true | |
2236 | Rooted = true | |
2237 | FORCEWINGS = true | |
2238 | CreateSound(1537955136, Torso, 5, 1, false) | |
2239 | for i=1, 15 do | |
2240 | Swait() | |
2241 | RootPart.CFrame = RootPart.CFrame * CF(0,0,0.8) | |
2242 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0+i/15 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed) | |
2243 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed) | |
2244 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2245 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2246 | end | |
2247 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2248 | Swait() | |
2249 | RootPart.CFrame = RootPart.CFrame * CF(0,0,0.015) | |
2250 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.75 / Animation_Speed) | |
2251 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(75)), 0.75 / Animation_Speed) | |
2252 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(15 - 5 * COS(SINE / 12)), RAD(-35), RAD(35 - 3 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2253 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-35), RAD(-12 + 3 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2254 | end | |
2255 | for i=0, 1, 0.1 / Animation_Speed do | |
2256 | Swait() | |
2257 | Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(170), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2258 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0-0.5 * COS(SINE), 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2259 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2260 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2261 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2262 | end | |
2263 | CreateSound(1537955679, Blade, 7, 0.7, false) | |
2264 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2265 | Swait() | |
2266 | Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed) | |
2267 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2268 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2269 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2270 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2271 | end | |
2272 | local TORNADOBASE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Tornado", VT(5,45/2,5)) | |
2273 | MakeForm(TORNADOBASE,"Ball") | |
2274 | TORNADOBASE.Mesh.Scale = VT(1,8,1) | |
2275 | local SWIRL = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Tornado", VT(0,0,0)) | |
2276 | CreateMesh("SpecialMesh", SWIRL, "FileMesh", "1051557", "", VT(6,45*3,6), VT(0,0,0)) | |
2277 | local SWIRL2 = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Tornado", VT(0,0,0)) | |
2278 | CreateMesh("SpecialMesh", SWIRL2, "FileMesh", "1051557", "", VT(6,45*3,6), VT(0,0,0)) | |
2279 | CreateSound(415700134, TORNADOBASE, 3, 0.5, true) | |
2280 | coroutine.resume(coroutine.create(function() | |
2281 | local FRAME = RootPart.CFrame*CF(0,-5,-0.5) | |
2282 | for E = 1, 185 do | |
2283 | Swait() | |
2284 | FRAME = FRAME * CF(0,0,-0.8) | |
2285 | TORNADOBASE.CFrame = FRAME*CF(0,TORNADOBASE.Size.Y/2,0) | |
2286 | SWIRL.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(E*5), RAD(0)) | |
2287 | SWIRL2.CFrame = TORNADOBASE.CFrame * ANGLES(RAD(0), RAD(-E*15), RAD(0)) | |
2288 | for i = 1, math.ceil(TORNADOBASE.Size.Y/6) do | |
2289 | ApplyAoE(TORNADOBASE.CFrame*CF(0,TORNADOBASE.Size.Y/2,0)*CF(0,-i*6,0).p,8,2,2,-35,0) | |
2290 | end | |
2291 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(10,8,10), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(FRAME.p) * ANGLES(RAD(0), RAD(E*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = TORNADOBASE.Color, SoundID = nil, SoundPitch = MRANDOM(6,8)/10, SoundVolume = 2}) | |
2292 | end | |
2293 | for i = 1, 15 do | |
2294 | Swait() | |
2295 | TORNADOBASE.Transparency = i/15 | |
2296 | SWIRL.Transparency = i/15 | |
2297 | SWIRL2.Transparency = i/15 | |
2298 | SWIRL.CFrame = SWIRL.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)) | |
2299 | SWIRL2.CFrame = SWIRL2.CFrame * ANGLES(RAD(0), RAD(-i*15), RAD(0)) | |
2300 | end | |
2301 | TORNADOBASE:remove() | |
2302 | SWIRL:remove() | |
2303 | SWIRL2:remove() | |
2304 | end)) | |
2305 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2306 | Swait() | |
2307 | Grasp.C1 = Clerp(Grasp.C1, CF(0,0,0) * ANGLES(RAD(115), RAD(-35), RAD(0)), 0.75 / Animation_Speed) | |
2308 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2309 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
2310 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-42)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2311 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(35), RAD(0), RAD(42)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2312 | end | |
2313 | FORCEWINGS = false | |
2314 | ATTACK = false | |
2315 | Rooted = false | |
2316 | end | |
2317 | ||
2318 | function Ruler() | |
2319 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2320 | if HITFLOOR ~= nil then | |
2321 | do | |
2322 | local HITBODIES = {} | |
2323 | ATTACK = true | |
2324 | Rooted = true | |
2325 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "SuperNova", VT(0, 0, 0)) | |
2326 | ABSOLUTE.Color = SKILLTEXTCOLOR | |
2327 | MakeForm(ABSOLUTE, "Ball") | |
2328 | CreateSound("814168787", ABSOLUTE, 10, 0.3) | |
2329 | for i = 0, 4, 0.1 / Animation_Speed do | |
2330 | Swait() | |
2331 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) | |
2332 | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) | |
2333 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
2334 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1, 1, 1)) | |
2335 | MakeForm(CHARGE, "Ball") | |
2336 | CHARGE.Color = C3(0, 0, 0) | |
2337 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -6, MRANDOM(-15, 15)) | |
2338 | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) | |
2339 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2340 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2341 | 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) | |
2342 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2343 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2344 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2345 | end | |
2346 | CreateSound("907333406", Head, 10, 1) | |
2347 | for i = 0, 2, 0.1 / Animation_Speed do | |
2348 | Swait() | |
2349 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2350 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2351 | 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) | |
2352 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2353 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2354 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2355 | end | |
2356 | coroutine.resume(coroutine.create(function() | |
2357 | local PITS = {} | |
2358 | CreateSound("178452217", ABSOLUTE, 10, 0.7) | |
2359 | for i = 1, 6 do | |
2360 | for i = 1, 10 do | |
2361 | Swait() | |
2362 | Slice("Thin", ABSOLUTE.Size.X / 20, 15, ABSOLUTE.CFrame * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), "Really black", VT(-0.01, 0, -0.01)) | |
2363 | ABSOLUTE.Size = ABSOLUTE.Size * 0.9 | |
2364 | end | |
2365 | for i = 1, 10 do | |
2366 | Swait() | |
2367 | ABSOLUTE.Size = ABSOLUTE.Size * 1.12 | |
2368 | end | |
2369 | end | |
2370 | CreateSound("215395388", ABSOLUTE, 10, 0.6) | |
2371 | CreateSound("215395388", ABSOLUTE, 10, 0.65) | |
2372 | CreateSound("215395388", ABSOLUTE, 10, 0.7) | |
2373 | for i = 1, 75 do | |
2374 | Swait() | |
2375 | local ICICLE = IT("CornerWedgePart", Effects) | |
2376 | ICICLE.Locked = true | |
2377 | ICICLE.CanCollide = false | |
2378 | ICICLE.Anchored = true | |
2379 | ICICLE.Color = C3(0, 0, 0) | |
2380 | ICICLE.Material = "Neon" | |
2381 | ICICLE.Size = VT(i / 3, i * 2, i / 3) | |
2382 | ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-ABSOLUTE.Size.X, ABSOLUTE.Size.X), 0, MRANDOM(-ABSOLUTE.Size.X / 1.5, ABSOLUTE.Size.X / 1.5)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25))) | |
2383 | table.insert(PITS, ICICLE) | |
2384 | killnearest(ICICLE.Position, ICICLE.Size.Y / 1.5, -100) | |
2385 | ABSOLUTE.Size = ABSOLUTE.Size * 1.03 | |
2386 | killnearest(ABSOLUTE.Position, ABSOLUTE.Size.X / 1.9, -100) | |
2387 | for i = 1, 3 do | |
2388 | Slice("Thin", ABSOLUTE.Size.X / 20, 5, ABSOLUTE.CFrame * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), "Really black", VT(-0.01, 0, -0.01)) | |
2389 | end | |
2390 | CreateWave(VT(ABSOLUTE.Size.X / 1.5, 35, ABSOLUTE.Size.X / 1.5), 25, CF(HITPOS) * ANGLES(RAD(0), RAD(i * 5), RAD(0)), false, 0, C3(0, 0, 0), VT(i / 3, 0, i / 3)) | |
2391 | end | |
2392 | ABSOLUTE.Transparency = 0 | |
2393 | for i = 1, 10 do | |
2394 | Swait() | |
2395 | ABSOLUTE.Size = ABSOLUTE.Size * 0.9 | |
2396 | ABSOLUTE.Transparency = ABSOLUTE.Transparency + 0.1 | |
2397 | end | |
2398 | Debris:AddItem(ABSOLUTE, 5) | |
2399 | Swait(50) | |
2400 | for i = 1, 10 do | |
2401 | Swait() | |
2402 | for e = 1, #PITS do | |
2403 | if PITS[e] ~= nil then | |
2404 | local E = PITS[e] | |
2405 | E.Transparency = E.Transparency + 0.1 | |
2406 | end | |
2407 | end | |
2408 | end | |
2409 | for e = 1, #PITS do | |
2410 | if PITS[e] ~= nil then | |
2411 | local E = PITS[e] | |
2412 | E:remove() | |
2413 | end | |
2414 | end | |
2415 | end)) | |
2416 | ATTACK = false | |
2417 | Rooted = false | |
2418 | end | |
2419 | end | |
2420 | end | |
2421 | ||
2422 | function Governor_Bomb() | |
2423 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0)) | |
2424 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, SKILLTEXTCOLOR, "Laser01", VT(25, 25, 25)) | |
2425 | RAY.Color = SKILLTEXTCOLOR | |
2426 | MakeForm(RAY, "Ball") | |
2427 | local ECH = Mouse.Hit.p | |
2428 | CENTER.CFrame = CF(Mouse.Hit.p) | |
2429 | RAY.CFrame = CENTER.CFrame | |
2430 | CreateSound("814168787", CENTER, 10, 0.6) | |
2431 | for i = 1, 80 do | |
2432 | Swait() | |
2433 | RAY.Size = RAY.Size * 0.98 | |
2434 | RAY.Transparency = RAY.Transparency - 0.016666666666666666 | |
2435 | end | |
2436 | killnearest(ECH, 25, 250) | |
2437 | MagicSphere(VT(1, 1, 1), 55, CF(ECH), SKILLTEXTCOLOR, VT(2, 2, 2)) | |
2438 | MagicSphere(VT(0, 0, 0), 45, CF(ECH), C3(0, 0, 0), VT(2, 2, 2)) | |
2439 | CreateSound("314970790", CENTER, 10, 1) | |
2440 | Debris:AddItem(CENTER, 5) | |
2441 | RAY:remove() | |
2442 | end | |
2443 | ||
2444 | function Smite() | |
2445 | local RING, MESH, DELET = MakeRing() | |
2446 | local POS = Mouse.Hit.p | |
2447 | RING.CFrame = CF(Mouse.Hit.p + VT(MRANDOM(-25, 25), 200, MRANDOM(-25, 25)), Mouse.Hit.p) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2448 | for i = 1, 45 do | |
2449 | Swait() | |
2450 | MESH.Scale = MESH.Scale + VT(12, 0, 12) | |
2451 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
2452 | end | |
2453 | local HITFLOOR, HITPOS = Raycast(RING.Position, CF(RING.Position, RING.CFrame * CF(0, -1, 0).p).lookVector, 500, Character) | |
2454 | if HITFLOOR then | |
2455 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Really red"), "Beam", VT(0, 0, 0), true) | |
2456 | MakeForm(BEAM, "Cyl") | |
2457 | local DIST = (RING.Position - HITPOS).Magnitude | |
2458 | BEAM.Size = VT(0, DIST, 0) | |
2459 | BEAM.CFrame = CF(RING.Position, HITPOS) * CF(0, 0, -DIST / 2) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
2460 | for i = 1, 5 do | |
2461 | WACKYEFFECT({ | |
2462 | EffectType = "Wave", | |
2463 | Size = VT(25, 0, 25), | |
2464 | Size2 = VT(40, 0, 40) + VT(i * 6, i / 5, i * 6), | |
2465 | Transparency = 0, | |
2466 | Transparency2 = 1, | |
2467 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(72 * i), RAD(0)), | |
2468 | MoveToPos = nil, | |
2469 | RotationX = 0, | |
2470 | RotationY = 3, | |
2471 | RotationZ = 0, | |
2472 | Material = "Neon", | |
2473 | Color = C3(1, 1, 1), | |
2474 | SoundID = nil, | |
2475 | SoundPitch = nil, | |
2476 | SoundVolume = nil | |
2477 | }) | |
2478 | WACKYEFFECT({ | |
2479 | EffectType = "Round Slash", | |
2480 | Size = VT(3, 0, 3) / 13, | |
2481 | Size2 = (VT(3, 0, 3) + VT(i, 0, i)) / 5, | |
2482 | Transparency = 0, | |
2483 | Transparency2 = 1, | |
2484 | CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0, 360)), RAD(0)) * ANGLES(RAD(MRANDOM(-35, 35)), RAD(0), RAD(MRANDOM(-35, 35))), | |
2485 | MoveToPos = nil, | |
2486 | RotationX = 0, | |
2487 | RotationY = 0, | |
2488 | RotationZ = 0, | |
2489 | Material = "Neon", | |
2490 | Color = C3(1, 1, 1), | |
2491 | SoundID = nil, | |
2492 | SoundPitch = nil, | |
2493 | SoundVolume = nil | |
2494 | }) | |
2495 | WACKYEFFECT({ | |
2496 | Time = 35, | |
2497 | EffectType = "Sphere", | |
2498 | Size = VT(22, 22, 22), | |
2499 | Size2 = VT(45, 45, 45) + VT(i * 5, i * 5, i * 5), | |
2500 | Transparency = 0, | |
2501 | Transparency2 = 1, | |
2502 | CFrame = CF(HITPOS), | |
2503 | MoveToPos = nil, | |
2504 | RotationX = 0, | |
2505 | RotationY = 0, | |
2506 | RotationZ = 0, | |
2507 | Material = "Neon", | |
2508 | Color = C3(1, 1, 1), | |
2509 | SoundID = 459523898, | |
2510 | SoundPitch = MRANDOM(9, 12) / 10, | |
2511 | SoundVolume = 10 | |
2512 | }) | |
2513 | end | |
2514 | SHAKECAM(HITPOS, 100, 8, 15) | |
2515 | ApplyAoE(HITPOS, 50) | |
2516 | for i = 1, 25 do | |
2517 | Swait() | |
2518 | BEAM.Size = BEAM.Size + VT(0.5, 0, 0.5) | |
2519 | BEAM.Transparency = BEAM.Transparency + 0.04 | |
2520 | end | |
2521 | BEAM:remove() | |
2522 | end | |
2523 | wait(0.2) | |
2524 | DELET() | |
2525 | end | |
2526 | ||
2527 | function Orbital_Devastor() | |
2528 | local HITBODIES = {} | |
2529 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "CenterPart", VT(0, 0, 0)) | |
2530 | local HITFLOOR, ECH, NORMAL = Raycast(Mouse.Hit.p + VT(0, 2, 0), CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0)).lookVector, 10000000, Character) | |
2531 | CENTER.CFrame = CF(ECH) | |
2532 | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Laser01", VT(25, 99999, 25)) | |
2533 | MakeForm(RAY, "Cyl") | |
2534 | local RAY2 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Laser01", VT(28, 99999, 28)) | |
2535 | MakeForm(RAY2, "Cyl") | |
2536 | RAY.CFrame = CF(ECH) | |
2537 | RAY2.CFrame = CF(ECH) | |
2538 | CreateSound("1368573150", CENTER, 10, 0.8) | |
2539 | for i = 1, 100 do | |
2540 | Swait() | |
2541 | RAY.Transparency = RAY.Transparency - 0.01 | |
2542 | RAY.Size = RAY.Size - VT(0.25, 0, 0.25) | |
2543 | RAY2.Transparency = RAY2.Transparency - 0.012 | |
2544 | RAY2.Size = RAY2.Size - VT(0.28, 0, 0.28) | |
2545 | end | |
2546 | for i = 1, 5 do | |
2547 | CreateRing(VT(i / 10, i / 10, 0), false, 0, 25, CF(ECH) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(MRANDOM(0, 10) / 10, 0, 0), VT(i / 5, i / 5, 0)) | |
2548 | end | |
2549 | RAY:remove() | |
2550 | RAY2:remove() | |
2551 | CreateSound("1368637781", CENTER, 10, 0.8) | |
2552 | MagicSphere(VT(0, 0, 0), 15, CF(ECH), "Really red", VT(8, 8, 8)) | |
2553 | MagicSphere(VT(1, 1, 1), 25, CF(ECH), "Really black", VT(8, 8, 8)) | |
2554 | Debris:AddItem(CENTER, 5) | |
2555 | CreateSound("414517163", CENTER, 10, 0.8) | |
2556 | for i = 1, 5 do | |
2557 | Slice("Round", 0, 35, CF(ECH) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.5, 0, 0.5)) | |
2558 | end | |
2559 | for e = 1, #HITBODIES do | |
2560 | if HITBODIES[e] ~= nil then | |
2561 | local BOD = HITBODIES[e] | |
2562 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
2563 | if TORS then | |
2564 | BOD:BreakJoints() | |
2565 | for _, c in pairs(BOD:GetChildren()) do | |
2566 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
2567 | local bv = Instance.new("BodyVelocity") | |
2568 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2569 | bv.velocity = CF(ECH, c.Position).lookVector * 250 | |
2570 | bv.Parent = c | |
2571 | Debris:AddItem(bv, 0.2) | |
2572 | end | |
2573 | end | |
2574 | end | |
2575 | end | |
2576 | end | |
2577 | end | |
2578 | ||
2579 | function Savage_Fire() | |
2580 | ATTACK = true | |
2581 | Rooted = true | |
2582 | VALUE1 = true | |
2583 | local HITBODIES = {} | |
2584 | local VISUAL = CreatePart(3, Effects, "Glass", 0, 0.99, "Maroon", "Vibrations", VT(4, 4, 4)) | |
2585 | MakeForm(VISUAL, "Ball") | |
2586 | VISUAL.CFrame = RootPart.CFrame | |
2587 | for i = 0, 1.2, 0.1 / Animation_Speed do | |
2588 | Swait() | |
2589 | VISUAL.Size = VISUAL.Size + VT(0.1, 0.1, 0.1) | |
2590 | VISUAL.Transparency = VISUAL.Transparency - 0.005 | |
2591 | if MRANDOM(1, 2) == 1 then | |
2592 | do | |
2593 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Magic", VT(1, 1, 1) * MRANDOM(2, 35) / 10) | |
2594 | SPHERE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) | |
2595 | MakeForm(SPHERE, "Ball") | |
2596 | coroutine.resume(coroutine.create(function() | |
2597 | for i = 1, 100 do | |
2598 | Swait() | |
2599 | SPHERE.CFrame = SPHERE.CFrame * CF(0, 0.3, 0) | |
2600 | SPHERE.Transparency = i / 100 | |
2601 | end | |
2602 | SPHERE:remove() | |
2603 | end)) | |
2604 | end | |
2605 | end | |
2606 | 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2607 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2608 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2609 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2610 | 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) | |
2611 | 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) | |
2612 | end | |
2613 | Character.Archivable = true | |
2614 | local X = 1 - VISUAL.Transparency | |
2615 | local ORIGINPOS = RootPart.Position | |
2616 | Transparency(1) | |
2617 | VALUE2 = true | |
2618 | RootPart.CFrame = CF(Mouse.Hit.p + VT(0, 5, 0), ORIGINPOS) | |
2619 | for i = 1, 50 do | |
2620 | Swait() | |
2621 | VISUAL.Transparency = VISUAL.Transparency + X / 50 | |
2622 | VISUAL.Size = VISUAL.Size + VT(0.05, 0.05, 0.05) | |
2623 | 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(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2624 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2625 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2626 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2627 | 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) | |
2628 | 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) | |
2629 | end | |
2630 | VISUAL:remove() | |
2631 | coroutine.resume(coroutine.create(function() | |
2632 | local PITS = {} | |
2633 | local HITFLOOR, HITPOS, NORMAL = Raycast(CLONE.Torso.Position, CF(CLONE.Torso.Position, CLONE.Torso.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) | |
2634 | MagicSphere(VT(0, 0, 0), 25, CF(CLONE.Torso.Position), "Really red", VT(2, 2, 2)) | |
2635 | MagicSphere(VT(1, 1, 1), 55, CF(CLONE.Torso.Position), "Really black", VT(2, 2, 2)) | |
2636 | if HITFLOOR ~= nil then | |
2637 | local POS = CLONE.Torso.Position | |
2638 | CLONE:remove() | |
2639 | for i = 1, 150 do | |
2640 | Swait() | |
2641 | local PEWSOUND = { | |
2642 | "907527750", | |
2643 | "907527912", | |
2644 | "907528019", | |
2645 | "907530553" | |
2646 | } | |
2647 | AddChildrenToTable(HITPOS, workspace, i, HITBODIES) | |
2648 | if MRANDOM(1, 2) == 1 then | |
2649 | local ICICLE = IT("CornerWedgePart", Effects) | |
2650 | ICICLE.Locked = true | |
2651 | ICICLE.CanCollide = false | |
2652 | ICICLE.Anchored = true | |
2653 | ICICLE.BrickColor = BRICKC("Really red") | |
2654 | ICICLE.Material = "Neon" | |
2655 | ICICLE.Size = VT(i / 10, i / 2, i / 10) | |
2656 | CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8) | |
2657 | ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 2, i / 2), 0, MRANDOM(-i / 2, i / 2)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25))) | |
2658 | table.insert(PITS, ICICLE) | |
2659 | for e = 1, #HITBODIES do | |
2660 | if HITBODIES[e] ~= nil then | |
2661 | local BOD = HITBODIES[e] | |
2662 | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso") | |
2663 | if TORS then | |
2664 | BOD:BreakJoints() | |
2665 | for _, c in pairs(BOD:GetChildren()) do | |
2666 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
2667 | local bv = Instance.new("BodyVelocity") | |
2668 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
2669 | bv.velocity = CF(POS, c.Position).lookVector * 250 | |
2670 | bv.Parent = c | |
2671 | Debris:AddItem(bv, 0.2) | |
2672 | end | |
2673 | end | |
2674 | end | |
2675 | end | |
2676 | end | |
2677 | HITBODIES = {} | |
2678 | end | |
2679 | end | |
2680 | coroutine.resume(coroutine.create(function() | |
2681 | for i = 1, 10 do | |
2682 | Swait() | |
2683 | for e = 1, #PITS do | |
2684 | if PITS[e] ~= nil then | |
2685 | local E = PITS[e] | |
2686 | E.Transparency = E.Transparency + 0.1 | |
2687 | end | |
2688 | end | |
2689 | end | |
2690 | for e = 1, #PITS do | |
2691 | if PITS[e] ~= nil then | |
2692 | local E = PITS[e] | |
2693 | E:remove() | |
2694 | end | |
2695 | end | |
2696 | end)) | |
2697 | end | |
2698 | end)) | |
2699 | VALUE2 = false | |
2700 | VALUE1 = false | |
2701 | ATTACK = false | |
2702 | Rooted = false | |
2703 | for i = 1, 10 do | |
2704 | Swait() | |
2705 | Transparency(1 - i / 10) | |
2706 | end | |
2707 | end | |
2708 | ||
2709 | function Blizzard() | |
2710 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2711 | if HITFLOOR ~= nil then | |
2712 | ATTACK = true | |
2713 | Rooted = true | |
2714 | local GYRO = IT("BodyGyro", RootPart) | |
2715 | GYRO.D = 100 | |
2716 | GYRO.P = 2000 | |
2717 | GYRO.MaxTorque = VT(0, 4000000, 0) | |
2718 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
2719 | for i = 0, 3.5, 0.1 / Animation_Speed do | |
2720 | Swait() | |
2721 | MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1) / 2) | |
2722 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
2723 | 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) | |
2724 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2725 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2726 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2727 | 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) | |
2728 | 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) | |
2729 | end | |
2730 | CreateSound("160772554", RightArm, 10, 0.7) | |
2731 | for i = 0, 0.15, 0.1 / Animation_Speed do | |
2732 | Swait() | |
2733 | MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1) / 2) | |
2734 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
2735 | 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(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2736 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2737 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2738 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2739 | 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) | |
2740 | 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) | |
2741 | end | |
2742 | coroutine.resume(coroutine.create(function() | |
2743 | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, SKILLTEXTCOLOR, "CenterPart", VT(0, 0, 0)) | |
2744 | CENTER.CFrame = RootPart.CFrame | |
2745 | for i = 1, 200 do | |
2746 | Swait() | |
2747 | CENTER.CFrame = CENTER.CFrame * CF(0, 0, -0.7) | |
2748 | for i = 1, 2 do | |
2749 | Slice("Round", 0, 45, CF(CENTER.Position + VT(0, MRANDOM(-15, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(5, 15) / 10) | |
2750 | end | |
2751 | freezenearest(CENTER.Position, 25) | |
2752 | end | |
2753 | CENTER:remove() | |
2754 | end)) | |
2755 | for i = 0, 1, 0.1 / Animation_Speed do | |
2756 | Swait() | |
2757 | 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(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2758 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
2759 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2760 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2761 | 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) | |
2762 | 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) | |
2763 | end | |
2764 | Rooted = true | |
2765 | GYRO:remove() | |
2766 | ATTACK = false | |
2767 | Rooted = false | |
2768 | end | |
2769 | end | |
2770 | function Sheer_Cold() | |
2771 | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) | |
2772 | if HITFLOOR ~= nil then | |
2773 | local HITBODIES = {} | |
2774 | ATTACK = true | |
2775 | Rooted = true | |
2776 | CreateSound("1225684085", RightArm, 10, 3) | |
2777 | for i = 1, 120 do | |
2778 | Swait() | |
2779 | Slice("Round", 0, 45, CF(RightArm.CFrame * CF(0, MRANDOM(-3, -2), 0).p) * ANGLES(RAD(0), RAD(MRANDOM(-180, 180)), RAD(0)), "Pearl", VT(0.01, 0, 0.01) * MRANDOM(2, 3)) | |
2780 | MagicSphere(VT(0, 0, 0), 15, CF(RightArm.CFrame * CF(0, -1.2, 0).p, RightArm.CFrame * CF(MRANDOM(-5, 5), -1.2 + MRANDOM(-25, 25), MRANDOM(-5, 5)).p), C3(0.5, 0.5, 1), VT(1, 0.1, 0.1)) | |
2781 | 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) | |
2782 | 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) | |
2783 | 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) | |
2784 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2785 | 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) | |
2786 | 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) | |
2787 | end | |
2788 | CreateSound("160772554", RightArm, 10, 0.7) | |
2789 | for i = 1, 25 do | |
2790 | Swait() | |
2791 | freezenearest(RootPart.Position, 80) | |
2792 | Slice("Round", 0, 45, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(2, 3)) | |
2793 | Slice("Thin", 0, 65, CF(RootPart.Position + VT(0, MRANDOM(-5, 15), 0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Pearl", VT(0.1, 0, 0.1) * MRANDOM(2, 3)) | |
2794 | 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) | |
2795 | 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) | |
2796 | 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) | |
2797 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2798 | 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) | |
2799 | 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) | |
2800 | end | |
2801 | ATTACK = false | |
2802 | Rooted = false | |
2803 | end | |
2804 | end | |
2805 | ||
2806 | --//=================================\\ | |
2807 | --|| ASSIGN THINGS TO KEYS | |
2808 | --\\=================================// | |
2809 | ||
2810 | function MouseDown(Mouse) | |
2811 | if ATTACK == false then | |
2812 | end | |
2813 | end | |
2814 | ||
2815 | function MouseUp(Mouse) | |
2816 | HOLD = false | |
2817 | end | |
2818 | ||
2819 | function KeyDown(Key) | |
2820 | KEYHOLD = true | |
2821 | if Key == "z" and ATTACK == false then | |
2822 | Morning_Star() | |
2823 | end | |
2824 | ||
2825 | if Key == "n" and ATTACK == false then | |
2826 | Blizzard() | |
2827 | end | |
2828 | ||
2829 | if Key == "m" and ATTACK == false then | |
2830 | Sheer_Cold() | |
2831 | end | |
2832 | ||
2833 | if Key == "t" and ATTACK == false then | |
2834 | Taunt() | |
2835 | end | |
2836 | ||
2837 | if Key == "c" and ATTACK == false then | |
2838 | Shell() | |
2839 | end | |
2840 | ||
2841 | if Key == "b" and ATTACK == false then | |
2842 | Savage_Fire() | |
2843 | end | |
2844 | ||
2845 | if Key == "v" and ATTACK == false then | |
2846 | Orbital_Devastor() | |
2847 | end | |
2848 | ||
2849 | if Key == "q" and ATTACK == false then | |
2850 | Teleport() | |
2851 | end | |
2852 | ||
2853 | if Key == "e" and ATTACK == false then | |
2854 | G() | |
2855 | end | |
2856 | ||
2857 | if Key == "r" and ATTACK == false then | |
2858 | Ruler() | |
2859 | end | |
2860 | ||
2861 | if Key == "f" and ATTACK == false then | |
2862 | Governor_Bomb() | |
2863 | end | |
2864 | ||
2865 | if Key == "g" and ATTACK == false then | |
2866 | Smite() | |
2867 | end | |
2868 | ||
2869 | if Key == "p" and ATTACK == false then | |
2870 | TakeOnMe() | |
2871 | end | |
2872 | end | |
2873 | ||
2874 | function KeyUp(Key) | |
2875 | KEYHOLD = false | |
2876 | end | |
2877 | ||
2878 | Mouse.Button1Down:connect(function(NEWKEY) | |
2879 | MouseDown(NEWKEY) | |
2880 | end) | |
2881 | Mouse.Button1Up:connect(function(NEWKEY) | |
2882 | MouseUp(NEWKEY) | |
2883 | end) | |
2884 | Mouse.KeyDown:connect(function(NEWKEY) | |
2885 | KeyDown(NEWKEY) | |
2886 | end) | |
2887 | Mouse.KeyUp:connect(function(NEWKEY) | |
2888 | KeyUp(NEWKEY) | |
2889 | end) | |
2890 | ||
2891 | --//=================================\\ | |
2892 | --\\=================================// | |
2893 | ||
2894 | ||
2895 | function unanchor() | |
2896 | if UNANCHOR == true then | |
2897 | g = Character:GetChildren() | |
2898 | for i = 1, #g do | |
2899 | if g[i].ClassName == "Part" then | |
2900 | g[i].Anchored = false | |
2901 | end | |
2902 | end | |
2903 | end | |
2904 | end | |
2905 | ||
2906 | ||
2907 | --//=================================\\ | |
2908 | --|| WRAP THE WHOLE SCRIPT UP | |
2909 | --\\=================================// | |
2910 | ||
2911 | Humanoid.Changed:connect(function(Jump) | |
2912 | if Jump == "Jump" and (Disable_Jump == true) then | |
2913 | Humanoid.Jump = false | |
2914 | end | |
2915 | end) | |
2916 | ||
2917 | local CONNECT = nil | |
2918 | ||
2919 | while true do | |
2920 | Swait() | |
2921 | ANIMATE.Parent = nil | |
2922 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2923 | Humanoid = IT("Humanoid",Character) | |
2924 | end | |
2925 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2926 | v:Stop(); | |
2927 | end | |
2928 | SINE = SINE + CHANGE | |
2929 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2930 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2931 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2932 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2933 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2934 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2935 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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) | |
2936 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2937 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2938 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2939 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2940 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2941 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2942 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2943 | end | |
2944 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2945 | ANIM = "Jump" | |
2946 | if ATTACK == false then | |
2947 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2948 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2949 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2950 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2951 | 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) | |
2952 | 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) | |
2953 | end | |
2954 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2955 | ANIM = "Fall" | |
2956 | if ATTACK == false then | |
2957 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2958 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2959 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2960 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2961 | 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) | |
2962 | 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) | |
2963 | end | |
2964 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2965 | ANIM = "Idle" | |
2966 | if ATTACK == false then | |
2967 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2968 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2969 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2970 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2971 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2972 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2973 | end | |
2974 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2975 | ANIM = "Walk" | |
2976 | if ATTACK == false then | |
2977 | Torso.Neck.C0=Clerp(Torso.Neck.C0,NECKC0*ANGLES(0,math.rad(-25),0)*ANGLES(math.rad(0 - 25 * math.cos(SINE / 0.1164)),math.rad(0 - 30 * math.cos(SINE / 0.25)),math.rad(0 - 30 * math.cos(SINE / 0.465))),.1) | |
2978 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2979 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2980 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140 - 12 * SIN(SINE / 12)), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2981 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2982 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2983 | end | |
2984 | end | |
2985 | unanchor() | |
2986 | Humanoid.MaxHealth = 1.0E298 | |
2987 | Humanoid.Health = 1.0E298 | |
2988 | if Rooted == false then | |
2989 | Disable_Jump = false | |
2990 | Humanoid.WalkSpeed = Speed | |
2991 | elseif Rooted == true then | |
2992 | Disable_Jump = true | |
2993 | Humanoid.WalkSpeed = 0 | |
2994 | end | |
2995 | sick.Parent = Torso | |
2996 | sick:resume() | |
2997 | sick.Volume = 0.3 | |
2998 | sick.Pitch = 1 | |
2999 | sick.SoundId = "rbxassetid://1547875818" | |
3000 | sick.Name = "MAD" | |
3001 | end | |
3002 | ||
3003 | --//=================================\\ | |
3004 | --\\=================================// | |
3005 | ||
3006 | ||
3007 | ||
3008 | ||
3009 | ||
3010 | --//====================================================\\-- | |
3011 | --|| END OF SCRIPT | |
3012 | --\\====================================================//-- |