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 | - | Player = game:GetService("Players").LocalPlayer |
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 | - | Mouse = Player:GetMouse() |
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 | --//====================================================\\-- | |
88 | --|| CREATED BY SHACKLUSTER | |
89 | --\\====================================================//-- | |
90 | local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"} | |
91 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
92 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
93 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
94 | local dmg = math.random(min,max) | |
95 | if humanoid.Health > 0 then | |
96 | if beserk == true then | |
97 | humanoid.Health = 0 | |
98 | else | |
99 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
100 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
101 | if math.random(1,100) < critrate+ 1 then | |
102 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
103 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
104 | else | |
105 | humanoid.Health = humanoid.Health - dmg | |
106 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
107 | end | |
108 | local defence = Instance.new("BoolValue",hit.Parent) | |
109 | defence.Name = ("HitBy"..Player.Name) | |
110 | game:GetService("Debris"):AddItem(defence, 0.5) | |
111 | end | |
112 | end | |
113 | end | |
114 | end | |
115 | function turnto(position) | |
116 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
117 | end | |
118 | Player = owner | |
119 | PlayerGui = Player.PlayerGui | |
120 | Cam = workspace.CurrentCamera | |
121 | Backpack = Player.Backpack | |
122 | Character = Player.Character | |
123 | Humanoid = Character.Humanoid | |
124 | Humanoid.Name = "Hi :):" | |
125 | RootPart = Character["HumanoidRootPart"] | |
126 | Torso = Character["Torso"] | |
127 | Head = Character["Head"] | |
128 | RightArm = Character["Right Arm"] | |
129 | LeftArm = Character["Left Arm"] | |
130 | RightLeg = Character["Right Leg"] | |
131 | LeftLeg = Character["Left Leg"] | |
132 | RootJoint = RootPart["RootJoint"] | |
133 | Neck = Torso["Neck"] | |
134 | RightShoulder = Torso["Right Shoulder"] | |
135 | LeftShoulder = Torso["Left Shoulder"] | |
136 | RightHip = Torso["Right Hip"] | |
137 | LeftHip = Torso["Left Hip"] | |
138 | local sick = Instance.new("Sound",Character) | |
139 | sick.SoundId = "rbxassetid://1140435341" | |
140 | sick.Looped = true | |
141 | sick.Pitch = 1 | |
142 | sick.Volume = 50 | |
143 | sick:Play() | |
144 | ||
145 | ||
146 | IT = Instance.new | |
147 | CF = CFrame.new | |
148 | VT = Vector3.new | |
149 | RAD = math.rad | |
150 | C3 = Color3.new | |
151 | UD2 = UDim2.new | |
152 | BRICKC = BrickColor.new | |
153 | ANGLES = CFrame.Angles | |
154 | EULER = CFrame.fromEulerAnglesXYZ | |
155 | COS = math.cos | |
156 | ACOS = math.acos | |
157 | SIN = math.sin | |
158 | ASIN = math.asin | |
159 | ABS = math.abs | |
160 | MRANDOM = math.random | |
161 | FLOOR = math.floor | |
162 | ||
163 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
164 | local NEWMESH = IT(MESH) | |
165 | if MESH == "SpecialMesh" then | |
166 | NEWMESH.MeshType = MESHTYPE | |
167 | if MESHID ~= "nil" and MESHID ~= "" then | |
168 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
169 | end | |
170 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
171 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
172 | end | |
173 | end | |
174 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
175 | NEWMESH.Scale = SCALE | |
176 | NEWMESH.Parent = PARENT | |
177 | return NEWMESH | |
178 | end | |
179 | ||
180 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
181 | local NEWPART = IT("Part") | |
182 | NEWPART.formFactor = FORMFACTOR | |
183 | NEWPART.Reflectance = REFLECTANCE | |
184 | NEWPART.Transparency = TRANSPARENCY | |
185 | NEWPART.CanCollide = false | |
186 | NEWPART.Locked = true | |
187 | NEWPART.Anchored = true | |
188 | if ANCHOR == false then | |
189 | NEWPART.Anchored = false | |
190 | end | |
191 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
192 | NEWPART.Name = NAME | |
193 | NEWPART.Size = SIZE | |
194 | NEWPART.Position = Torso.Position | |
195 | NEWPART.Material = MATERIAL | |
196 | NEWPART:BreakJoints() | |
197 | NEWPART.Parent = PARENT | |
198 | return NEWPART | |
199 | end | |
200 | ||
201 | ||
202 | --//=================================\\ | |
203 | --|| CUSTOMIZATION | |
204 | --\\=================================// | |
205 | ||
206 | Player_Size = 1 --Size of the player. | |
207 | Animation_Speed = 3 | |
208 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
209 | ||
210 | local Speed = 16 | |
211 | local Effects2 = {} | |
212 | ||
213 | --//=================================\\ | |
214 | --|| END OF CUSTOMIZATION | |
215 | --\\=================================// | |
216 | ||
217 | local function weldBetween(a, b) | |
218 | local weldd = Instance.new("ManualWeld") | |
219 | weldd.Part0 = a | |
220 | weldd.Part1 = b | |
221 | weldd.C0 = CFrame.new() | |
222 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
223 | weldd.Parent = a | |
224 | return weldd | |
225 | end | |
226 | ||
227 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
228 | local acs = Instance.new("Part") | |
229 | acs.CanCollide = false | |
230 | acs.Anchored = false | |
231 | acs.Size = Vector3.new(0,0,0) | |
232 | acs.CFrame = attachmentpart.CFrame | |
233 | acs.Parent = Character | |
234 | acs.BrickColor = color | |
235 | local meshs = Instance.new("SpecialMesh") | |
236 | meshs.MeshId = mesh | |
237 | meshs.TextureId = texture | |
238 | meshs.Parent = acs | |
239 | meshs.Scale = scale | |
240 | meshs.Offset = offset | |
241 | weldBetween(attachmentpart,acs) | |
242 | end | |
243 | ||
244 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
245 | if TYPE == "Gem" then | |
246 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
247 | acs.Anchored = false | |
248 | acs.CanCollide = false | |
249 | acs.CFrame = PART.CFrame | |
250 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
251 | weldBetween(PART,acs) | |
252 | elseif TYPE == "Skull" then | |
253 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
254 | acs.Anchored = false | |
255 | acs.CanCollide = false | |
256 | acs.CFrame = PART.CFrame | |
257 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
258 | weldBetween(PART,acs) | |
259 | elseif TYPE == "Eye" then | |
260 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
261 | acs.Anchored = false | |
262 | acs.CanCollide = false | |
263 | acs.CFrame = PART.CFrame | |
264 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
265 | weldBetween(PART,acs) | |
266 | end | |
267 | end | |
268 | ||
269 | --//=================================\\ | |
270 | --|| USEFUL VALUES | |
271 | --\\=================================// | |
272 | ||
273 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
274 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
275 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
276 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
277 | local CHANGEDEFENSE = 0 | |
278 | local CHANGEDAMAGE = 0 | |
279 | local CHANGEMOVEMENT = 0 | |
280 | local ANIM = "Idle" | |
281 | local ATTACK = false | |
282 | local EQUIPPED = false | |
283 | local HOLD = false | |
284 | local COMBO = 1 | |
285 | local Rooted = false | |
286 | local SINE = 0 | |
287 | local KEYHOLD = false | |
288 | local CHANGE = 2 / Animation_Speed | |
289 | local WALKINGANIM = false | |
290 | local WALK = 0 | |
291 | local VALUE1 = false | |
292 | local VALUE2 = false | |
293 | ||
294 | local ROBLOXIDLEANIMATION = IT("Animation") | |
295 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
296 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
297 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
298 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
299 | WEAPONGUI.Name = "Weapon GUI" | |
300 | local Weapon = IT("Model") | |
301 | Weapon.Name = "Adds" | |
302 | local Effects = IT("Folder", Weapon) | |
303 | Effects.Name = "Effects" | |
304 | local ANIMATOR = Humanoid.Animator | |
305 | local ANIMATE = Character.Animate | |
306 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
307 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
308 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
309 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
310 | local UNANCHOR = true | |
311 | ||
312 | local SKILLTEXTCOLOR = C3(0,0,0) | |
313 | local CHOSENBRICK = "Royal purple" | |
314 | ||
315 | --//=================================\\ | |
316 | --\\=================================// | |
317 | ||
318 | ||
319 | --//=================================\\ | |
320 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
321 | --\\=================================// | |
322 | ||
323 | ArtificialHB = Instance.new("BindableEvent", script) | |
324 | ArtificialHB.Name = "ArtificialHB" | |
325 | ||
326 | script:WaitForChild("ArtificialHB") | |
327 | ||
328 | frame = Frame_Speed | |
329 | tf = 0 | |
330 | allowframeloss = false | |
331 | tossremainder = false | |
332 | lastframe = tick() | |
333 | script.ArtificialHB:Fire() | |
334 | ||
335 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
336 | tf = tf + s | |
337 | if tf >= frame then | |
338 | if allowframeloss then | |
339 | script.ArtificialHB:Fire() | |
340 | lastframe = tick() | |
341 | else | |
342 | for i = 1, math.floor(tf / frame) do | |
343 | script.ArtificialHB:Fire() | |
344 | end | |
345 | lastframe = tick() | |
346 | end | |
347 | if tossremainder then | |
348 | tf = 0 | |
349 | else | |
350 | tf = tf - frame * math.floor(tf / frame) | |
351 | end | |
352 | end | |
353 | end) | |
354 | ||
355 | --//=================================\\ | |
356 | --\\=================================// | |
357 | ||
358 | ||
359 | ||
360 | ||
361 | ||
362 | --//=================================\\ | |
363 | --|| SOME FUNCTIONS | |
364 | --\\=================================// | |
365 | ||
366 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
367 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
368 | end | |
369 | ||
370 | function PositiveAngle(NUMBER) | |
371 | if NUMBER >= 0 then | |
372 | NUMBER = 0 | |
373 | end | |
374 | return NUMBER | |
375 | end | |
376 | ||
377 | function NegativeAngle(NUMBER) | |
378 | if NUMBER <= 0 then | |
379 | NUMBER = 0 | |
380 | end | |
381 | return NUMBER | |
382 | end | |
383 | ||
384 | function Swait(NUMBER) | |
385 | if NUMBER == 0 or NUMBER == nil then | |
386 | ArtificialHB.Event:wait() | |
387 | else | |
388 | for i = 1, NUMBER do | |
389 | ArtificialHB.Event:wait() | |
390 | end | |
391 | end | |
392 | end | |
393 | ||
394 | function QuaternionFromCFrame(cf) | |
395 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
396 | local trace = m00 + m11 + m22 | |
397 | if trace > 0 then | |
398 | local s = math.sqrt(1 + trace) | |
399 | local recip = 0.5 / s | |
400 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
401 | else | |
402 | local i = 0 | |
403 | if m11 > m00 then | |
404 | i = 1 | |
405 | end | |
406 | if m22 > (i == 0 and m00 or m11) then | |
407 | i = 2 | |
408 | end | |
409 | if i == 0 then | |
410 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
411 | local recip = 0.5 / s | |
412 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
413 | elseif i == 1 then | |
414 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
415 | local recip = 0.5 / s | |
416 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
417 | elseif i == 2 then | |
418 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
419 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
420 | end | |
421 | end | |
422 | end | |
423 | ||
424 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
425 | local xs, ys, zs = x + x, y + y, z + z | |
426 | local wx, wy, wz = w * xs, w * ys, w * zs | |
427 | local xx = x * xs | |
428 | local xy = x * ys | |
429 | local xz = x * zs | |
430 | local yy = y * ys | |
431 | local yz = y * zs | |
432 | local zz = z * zs | |
433 | 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)) | |
434 | end | |
435 | ||
436 | function QuaternionSlerp(a, b, t) | |
437 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
438 | local startInterp, finishInterp; | |
439 | if cosTheta >= 0.0001 then | |
440 | if (1 - cosTheta) > 0.0001 then | |
441 | local theta = ACOS(cosTheta) | |
442 | local invSinTheta = 1 / SIN(theta) | |
443 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
444 | finishInterp = SIN(t * theta) * invSinTheta | |
445 | else | |
446 | startInterp = 1 - t | |
447 | finishInterp = t | |
448 | end | |
449 | else | |
450 | if (1 + cosTheta) > 0.0001 then | |
451 | local theta = ACOS(-cosTheta) | |
452 | local invSinTheta = 1 / SIN(theta) | |
453 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
454 | finishInterp = SIN(t * theta) * invSinTheta | |
455 | else | |
456 | startInterp = t - 1 | |
457 | finishInterp = t | |
458 | end | |
459 | end | |
460 | 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 | |
461 | end | |
462 | ||
463 | function Clerp(a, b, t) | |
464 | local qa = {QuaternionFromCFrame(a)} | |
465 | local qb = {QuaternionFromCFrame(b)} | |
466 | local ax, ay, az = a.x, a.y, a.z | |
467 | local bx, by, bz = b.x, b.y, b.z | |
468 | local _t = 1 - t | |
469 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
470 | end | |
471 | ||
472 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
473 | local frame = IT("Frame") | |
474 | frame.BackgroundTransparency = TRANSPARENCY | |
475 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
476 | frame.Position = POSITION | |
477 | frame.Size = SIZE | |
478 | frame.BackgroundColor3 = COLOR | |
479 | frame.BorderColor3 = BORDERCOLOR | |
480 | frame.Name = NAME | |
481 | frame.Parent = PARENT | |
482 | return frame | |
483 | end | |
484 | ||
485 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
486 | local label = IT("TextLabel") | |
487 | label.BackgroundTransparency = 1 | |
488 | label.Size = UD2(1, 0, 1, 0) | |
489 | label.Position = UD2(0, 0, 0, 0) | |
490 | label.TextColor3 = TEXTCOLOR | |
491 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
492 | label.TextTransparency = TRANSPARENCY | |
493 | label.FontSize = TEXTFONTSIZE | |
494 | label.Font = TEXTFONT | |
495 | label.BorderSizePixel = BORDERSIZEPIXEL | |
496 | label.TextScaled = false | |
497 | label.Text = TEXT | |
498 | label.Name = NAME | |
499 | label.Parent = PARENT | |
500 | return label | |
501 | end | |
502 | ||
503 | function NoOutlines(PART) | |
504 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
505 | end | |
506 | ||
507 | ||
508 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
509 | local NEWWELD = IT(TYPE) | |
510 | NEWWELD.Part0 = PART0 | |
511 | NEWWELD.Part1 = PART1 | |
512 | NEWWELD.C0 = C0 | |
513 | NEWWELD.C1 = C1 | |
514 | NEWWELD.Parent = PARENT | |
515 | return NEWWELD | |
516 | end | |
517 | ||
518 | ||
519 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
520 | local NEWSOUND = nil | |
521 | coroutine.resume(coroutine.create(function() | |
522 | NEWSOUND = IT("Sound", PARENT) | |
523 | NEWSOUND.Volume = VOLUME | |
524 | NEWSOUND.Pitch = PITCH | |
525 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
526 | Swait() | |
527 | NEWSOUND:play() | |
528 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
529 | end)) | |
530 | return NEWSOUND | |
531 | end | |
532 | ||
533 | function CFrameFromTopBack(at, top, back) | |
534 | local right = top:Cross(back) | |
535 | 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) | |
536 | end | |
537 | ||
538 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
539 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
540 | local mesh = IT("SpecialMesh",wave) | |
541 | mesh.MeshType = "FileMesh" | |
542 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
543 | mesh.Scale = SIZE | |
544 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
545 | wave.CFrame = CFRAME | |
546 | coroutine.resume(coroutine.create(function(PART) | |
547 | for i = 1, WAIT do | |
548 | Swait() | |
549 | mesh.Scale = mesh.Scale + GROW | |
550 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
551 | if DOESROT == true then | |
552 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
553 | end | |
554 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
555 | if wave.Transparency > 0.99 then | |
556 | wave:remove() | |
557 | end | |
558 | end | |
559 | end)) | |
560 | end | |
561 | ||
562 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
563 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
564 | local mesh = IT("SpecialMesh",wave) | |
565 | mesh.MeshType = "FileMesh" | |
566 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
567 | mesh.Scale = SIZE | |
568 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
569 | wave.CFrame = CFRAME | |
570 | coroutine.resume(coroutine.create(function(PART) | |
571 | for i = 1, WAIT do | |
572 | Swait() | |
573 | mesh.Scale = mesh.Scale + GROW | |
574 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
575 | if DOESROT == true then | |
576 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
577 | end | |
578 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
579 | if wave.Transparency > 0.99 then | |
580 | wave:remove() | |
581 | end | |
582 | end | |
583 | end)) | |
584 | end | |
585 | ||
586 | function clerp(a, b, t) | |
587 | return a:lerp(b, t) | |
588 | end | |
589 | ||
590 | function newBezier(startpos, pos2, pos3, endpos, t) | |
591 | local A = clerp(startpos, pos2, t) | |
592 | local B = clerp(pos2, pos3, t) | |
593 | local C = clerp(pos3, endpos, t) | |
594 | local lerp1 = clerp(A, B, t) | |
595 | local lerp2 = clerp(B, C, t) | |
596 | local cubic = clerp(lerp1, lerp2, t) | |
597 | return cubic | |
598 | end | |
599 | ||
600 | function CreateIceCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
601 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
602 | local mesh = IT("SpecialMesh",wave) | |
603 | mesh.MeshType = "FileMesh" | |
604 | mesh.MeshId = "http://www.roblox.com/asset/?id=1323306" | |
605 | mesh.Scale = SIZE | |
606 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
607 | wave.CFrame = CFRAME | |
608 | coroutine.resume(coroutine.create(function(PART) | |
609 | for i = 1, WAIT do | |
610 | Swait() | |
611 | mesh.Scale = mesh.Scale + GROW | |
612 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
613 | if DOESROT == true then | |
614 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
615 | end | |
616 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
617 | if wave.Transparency > 0.99 then | |
618 | wave:remove() | |
619 | end | |
620 | end | |
621 | end)) | |
622 | end | |
623 | ||
624 | function CreateSpikeball(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
625 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
626 | local mesh = IT("SpecialMesh",wave) | |
627 | mesh.MeshType = "FileMesh" | |
628 | mesh.MeshId = "http://www.roblox.com/asset/?id=9982590" | |
629 | mesh.Scale = SIZE | |
630 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
631 | wave.CFrame = CFRAME | |
632 | coroutine.resume(coroutine.create(function(PART) | |
633 | for i = 1, WAIT do | |
634 | Swait() | |
635 | mesh.Scale = mesh.Scale + GROW | |
636 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
637 | if DOESROT == true then | |
638 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
639 | end | |
640 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
641 | if wave.Transparency > 0.99 then | |
642 | wave:remove() | |
643 | end | |
644 | end | |
645 | end)) | |
646 | end | |
647 | ||
648 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
649 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
650 | local mesh = IT("SpecialMesh",wave) | |
651 | mesh.MeshType = "FileMesh" | |
652 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
653 | mesh.Scale = SIZE | |
654 | wave.CFrame = CFRAME | |
655 | coroutine.resume(coroutine.create(function(PART) | |
656 | for i = 1, WAIT do | |
657 | Swait() | |
658 | mesh.Scale = mesh.Scale + GROW | |
659 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
660 | if DOESROT == true then | |
661 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
662 | end | |
663 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
664 | if wave.Transparency > 0.99 then | |
665 | wave:remove() | |
666 | end | |
667 | end | |
668 | end)) | |
669 | end | |
670 | ||
671 | function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
672 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
673 | local mesh = IT("SpecialMesh",wave) | |
674 | mesh.MeshType = "FileMesh" | |
675 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
676 | mesh.Scale = SIZE | |
677 | wave.CFrame = CFRAME | |
678 | coroutine.resume(coroutine.create(function(PART) | |
679 | for i = 1, WAIT do | |
680 | Swait() | |
681 | mesh.Scale = mesh.Scale + GROW | |
682 | if DOESROT == true then | |
683 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
684 | end | |
685 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
686 | if wave.Transparency > 0.99 then | |
687 | wave:remove() | |
688 | end | |
689 | end | |
690 | end)) | |
691 | end | |
692 | ||
693 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
694 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
695 | local mesh = IT("SpecialMesh",wave) | |
696 | mesh.MeshType = "FileMesh" | |
697 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
698 | mesh.Scale = SIZE | |
699 | mesh.Offset = VT(0,0,0) | |
700 | wave.CFrame = CFRAME | |
701 | coroutine.resume(coroutine.create(function(PART) | |
702 | for i = 1, WAIT do | |
703 | Swait() | |
704 | mesh.Scale = mesh.Scale + GROW | |
705 | if DOESROT == true then | |
706 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
707 | end | |
708 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
709 | if wave.Transparency > 0.99 then | |
710 | wave:remove() | |
711 | end | |
712 | end | |
713 | end)) | |
714 | end | |
715 | ||
716 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
717 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
718 | local mesh = IT("SpecialMesh",wave) | |
719 | mesh.MeshType = "Sphere" | |
720 | mesh.Scale = SIZE | |
721 | mesh.Offset = VT(0,0,0) | |
722 | wave.CFrame = CFRAME | |
723 | coroutine.resume(coroutine.create(function(PART) | |
724 | for i = 1, WAIT do | |
725 | Swait() | |
726 | mesh.Scale = mesh.Scale + GROW | |
727 | wave.Transparency = wave.Transparency + (1/WAIT) | |
728 | if wave.Transparency > 0.99 then | |
729 | wave:remove() | |
730 | end | |
731 | end | |
732 | end)) | |
733 | end | |
734 | ||
735 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
736 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
737 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
738 | wave.CFrame = CFRAME | |
739 | coroutine.resume(coroutine.create(function(PART) | |
740 | for i = 1, WAIT do | |
741 | Swait() | |
742 | mesh.Scale = mesh.Scale * GROW | |
743 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
744 | if wave.Transparency > 0.99 then | |
745 | wave:remove() | |
746 | end | |
747 | end | |
748 | end)) | |
749 | end | |
750 | ||
751 | function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW) | |
752 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
753 | local mesh = IT("BlockMesh",wave) | |
754 | wave.CFrame = CFRAME | |
755 | coroutine.resume(coroutine.create(function(PART) | |
756 | for i = 1, WAIT do | |
757 | Swait() | |
758 | mesh.Scale = mesh.Scale + GROW | |
759 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
760 | wave.Transparency = wave.Transparency + (1/WAIT) | |
761 | if wave.Transparency > 0.99 then | |
762 | wave:remove() | |
763 | end | |
764 | end | |
765 | end)) | |
766 | end | |
767 | ||
768 | function MakeForm(PART,TYPE) | |
769 | if TYPE == "Cyl" then | |
770 | local MSH = IT("CylinderMesh",PART) | |
771 | elseif TYPE == "Ball" then | |
772 | local MSH = IT("SpecialMesh",PART) | |
773 | MSH.MeshType = "Sphere" | |
774 | elseif TYPE == "Wedge" then | |
775 | local MSH = IT("SpecialMesh",PART) | |
776 | MSH.MeshType = "Wedge" | |
777 | end | |
778 | end | |
779 | ||
780 | function CheckTableForString(Table, String) | |
781 | for i, v in pairs(Table) do | |
782 | if string.find(string.lower(String), string.lower(v)) then | |
783 | return true | |
784 | end | |
785 | end | |
786 | return false | |
787 | end | |
788 | ||
789 | function CheckIntangible(Hit) | |
790 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
791 | if Hit and Hit.Parent then | |
792 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
793 | return true | |
794 | end | |
795 | end | |
796 | return false | |
797 | end | |
798 | ||
799 | Debris = game:GetService("Debris") | |
800 | ||
801 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
802 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
803 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
804 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
805 | if RayHit and CheckIntangible(RayHit) then | |
806 | if DelayIfHit then | |
807 | wait() | |
808 | end | |
809 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
810 | end | |
811 | return RayHit, RayPos, RayNormal | |
812 | end | |
813 | ||
814 | function turnto(position) | |
815 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
816 | end | |
817 | ||
818 | --//=================================\\ | |
819 | --|| WEAPON CREATION | |
820 | --\\=================================// | |
821 | ||
822 | local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false) | |
823 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.7, 0.7, 0.5) * ANGLES(RAD(50), RAD(0), RAD(15)), CF(0, 0, 0)) | |
824 | local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.7,1.4,0.7),false) | |
825 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
826 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Flame", VT(0.65,1.4,0.65),false) | |
827 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
828 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false) | |
829 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
830 | ||
831 | local DECAL = IT("Decal",Part) | |
832 | DECAL.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
833 | DECAL.Face = "Top" | |
834 | ||
835 | local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false) | |
836 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.6, 0, 0.5) * ANGLES(RAD(80), RAD(0), RAD(15)), CF(0, 0, 0)) | |
837 | local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.5,1.4,0.5),false) | |
838 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
839 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Earth green", "Radioactive", VT(0.45,1.4,0.45),false) | |
840 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
841 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false) | |
842 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
843 | ||
844 | local DECAL = IT("Decal",Part) | |
845 | DECAL.Texture = "http://www.roblox.com/asset/?id=1172964487" | |
846 | DECAL.Face = "Top" | |
847 | ||
848 | local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false) | |
849 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(-0.5, -0.5, 0.45) * ANGLES(RAD(110), RAD(0), RAD(15)), CF(0, 0, 0)) | |
850 | local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.4,1.4,0.4),false) | |
851 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
852 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Crimson", "Light", VT(0.35,1.4,0.35),false) | |
853 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
854 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false) | |
855 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
856 | ||
857 | local DECAL = IT("Decal",Part) | |
858 | DECAL.Texture = "http://www.roblox.com/asset/?id=68854060" | |
859 | DECAL.Face = "Top" | |
860 | ||
861 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,1.1),false) | |
862 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
863 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.55,0.7,1.1),false) | |
864 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(0.25, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
865 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,0.525),false) | |
866 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, Part, CF(-0.28, 0, 0) * ANGLES(RAD(180), RAD(90), RAD(0)), CF(0, 0, 0)) | |
867 | MakeForm(Part,"Wedge") | |
868 | ||
869 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) | |
870 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(-0.75, 0.51, 0) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
871 | MakeForm(Part,"Wedge") | |
872 | ||
873 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) | |
874 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
875 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
876 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) | |
877 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
878 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) | |
879 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) | |
880 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
881 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.5,0.5,1.25),false) | |
882 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
883 | ||
884 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.1,0.2,0.1),false) | |
885 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(-0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
886 | MakeForm(Part,"Ball") | |
887 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.1,0.2,0.1),false) | |
888 | CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
889 | MakeForm(Part,"Ball") | |
890 | ||
891 | local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false) | |
892 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(0.7, 0.7, 0.5) * ANGLES(RAD(50), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
893 | local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.7,1.4,0.7),false) | |
894 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
895 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Carnation pink", "Love", VT(0.65,1.4,0.65),false) | |
896 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
897 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.8,0.5,0.8),false) | |
898 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
899 | ||
900 | local FAKECHARACTER = IT("Model",Effects) | |
901 | FAKECHARACTER.Name = "NeonDoll" | |
902 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
903 | CreateWeldOrSnapOrMotor("Weld", Part, Part, TORS, CF(0,0.5,0), CF(0,0,0)) | |
904 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
905 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(-90), RAD(0), RAD(15)), CF(0,0.15,0)) | |
906 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
907 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(-90), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
908 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
909 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(30)), CF(0,0.15,0)) | |
910 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
911 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-30)), CF(0,0.15,0)) | |
912 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
913 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
914 | ||
915 | local DECAL = IT("Decal",Part) | |
916 | DECAL.Texture = "http://www.roblox.com/asset/?id=301069998" | |
917 | DECAL.Face = "Top" | |
918 | ||
919 | local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false) | |
920 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(0.6, 0, 0.5) * ANGLES(RAD(80), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
921 | local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.5,1.4,0.5),false) | |
922 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
923 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Dark Matter", VT(0.10,1.4,0.10),false) | |
924 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
925 | local FAKECHARACTER = IT("Model",Effects) | |
926 | FAKECHARACTER.Name = "NeonDoll" | |
927 | ||
928 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
929 | CreateWeldOrSnapOrMotor("Weld", Part, Part, TORS, CF(0,0,0), CF(0,0,0)) | |
930 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
931 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
932 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
933 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
934 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
935 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(10)), CF(0,0.15,0)) | |
936 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
937 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-10)), CF(0,0.15,0)) | |
938 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
939 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
940 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.6,0.5,0.6),false) | |
941 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
942 | ||
943 | local DECAL = IT("Decal",Part) | |
944 | DECAL.Texture = "http://www.roblox.com/asset/?id=332392312" | |
945 | DECAL.Face = "Top" | |
946 | ||
947 | local StartPart = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false) | |
948 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, StartPart, CF(0.5, -0.5, 0.45) * ANGLES(RAD(110), RAD(0), RAD(-15)), CF(0, 0, 0)) | |
949 | local Part = CreatePart(3, Weapon, "Glass", 0, 0.5, "Stone grey", "Glass", VT(0.4,1.4,0.4),false) | |
950 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
951 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "White", "Light", VT(0.35,1.4,0.35),false) | |
952 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
953 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.5,0.5,0.5),false) | |
954 | CreateWeldOrSnapOrMotor("Weld", StartPart, StartPart, Part, CF(0, 1.4, 0) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
955 | ||
956 | local DECAL = IT("Decal",Part) | |
957 | DECAL.Texture = "http://www.roblox.com/asset/?id=50184258" | |
958 | DECAL.Face = "Top" | |
959 | ||
960 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,1.1),false) | |
961 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0, 0.7, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
962 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.55,0.7,1.1),false) | |
963 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(-0.25, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
964 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,0.7,0.525),false) | |
965 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Part, CF(0.28, 0, 0) * ANGLES(RAD(-180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
966 | MakeForm(Part,"Wedge") | |
967 | ||
968 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1.1,1,0.525),false) | |
969 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0.75, 0.51, 0) * ANGLES(RAD(-180), RAD(90), RAD(0)), CF(0, 0, 0)) | |
970 | MakeForm(Part,"Wedge") | |
971 | ||
972 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(1,1,1.2),false) | |
973 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
974 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
975 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), CF(0, 0, 0)) | |
976 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Stone grey", "Metal", VT(0.3,1.7,1.15),false) | |
977 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), CF(0, 0, 0)) | |
978 | local Part = CreatePart(3, Weapon, "DiamondPlate", 0, 0, "Dark stone grey", "Metal", VT(0.8,0.8,1.225),false) | |
979 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
980 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Royal purple", "Eon", VT(0.5,0.5,1.25),false) | |
981 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Part, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
982 | ||
983 | for _, c in pairs(Weapon:GetChildren()) do | |
984 | if c.ClassName == "Part" then | |
985 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
986 | end | |
987 | end | |
988 | ||
989 | ||
990 | Weapon.Parent = Character | |
991 | ||
992 | Humanoid.Died:connect(function() | |
993 | ATTACK = true | |
994 | end) | |
995 | ||
996 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
997 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
998 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
999 | ||
1000 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ability 1", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 1") | |
1001 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ability 2", SKILLTEXTCOLOR, 7, "SciFi", 0, 2, 1, "Text 2") | |
1002 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Toggle tanks", C3(0,0,0), 8, "SciFi", 0, 2, 1, "Text 3") | |
1003 | --//=================================\\ | |
1004 | --|| DAMAGE FUNCTIONS | |
1005 | --\\=================================// | |
1006 | ||
1007 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1008 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1009 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1010 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1011 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1012 | BODYPOSITION.P = 2000 | |
1013 | BODYPOSITION.D = 100 | |
1014 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1015 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1016 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1017 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1018 | BILLBOARDGUI.Adornee = STATPART | |
1019 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1020 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1021 | BILLBOARDGUI.AlwaysOnTop = false | |
1022 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1023 | TEXTLABEL.BackgroundTransparency = 1 | |
1024 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1025 | TEXTLABEL.Text = TEXT | |
1026 | TEXTLABEL.Font = "SciFi" | |
1027 | TEXTLABEL.FontSize="Size42" | |
1028 | TEXTLABEL.TextColor3 = COLOR | |
1029 | TEXTLABEL.TextStrokeTransparency = 1 | |
1030 | TEXTLABEL.TextScaled = true | |
1031 | TEXTLABEL.TextWrapped = true | |
1032 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1033 | if LABELTYPE == "Normal" then | |
1034 | for i = 1, 30 do | |
1035 | Swait() | |
1036 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
1037 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1038 | end | |
1039 | elseif LABELTYPE == "Debuff" then | |
1040 | for i = 1, 30 do | |
1041 | Swait() | |
1042 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
1043 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1044 | end | |
1045 | elseif LABELTYPE == "Shock" then | |
1046 | local ORIGIN = STATPART.Position | |
1047 | for i = 1, 30 do | |
1048 | Swait() | |
1049 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
1050 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1051 | end | |
1052 | end | |
1053 | THEPART.Parent = nil | |
1054 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1055 | end | |
1056 | ||
1057 | --//=================================\\ | |
1058 | --|| DAMAGING | |
1059 | --\\=================================// | |
1060 | ||
1061 | function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier) | |
1062 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1063 | defence.Name = ("HitBy"..Player.Name) | |
1064 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1065 | Humanoid.Health = Humanoid.Health - Damage | |
1066 | if Humanoid.Parent:FindFirstChild("Head") then | |
1067 | StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
1068 | end | |
1069 | end | |
1070 | ||
1071 | ||
1072 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping) | |
1073 | local dmg = math.random(min,max) | |
1074 | for i,v in ipairs(workspace:GetChildren()) do | |
1075 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1076 | local body = v:GetChildren() | |
1077 | for part = 1, #body do | |
1078 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1079 | if(body[part].Position - position).Magnitude < radius then | |
1080 | if v.ClassName == "Model" then | |
1081 | if v:FindFirstChildOfClass("Humanoid") then | |
1082 | if CanBeDodgedByJumping == true then | |
1083 | if body[part].Position.Y < position.Y+5 then | |
1084 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
1085 | end | |
1086 | else | |
1087 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
1088 | end | |
1089 | local bv = Instance.new("BodyVelocity") | |
1090 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1091 | bv.velocity = RootPart.CFrame.lookVector*maxstrength | |
1092 | bv.Parent = body[part] | |
1093 | Debris:AddItem(bv,0.2) | |
1094 | end | |
1095 | end | |
1096 | end | |
1097 | end | |
1098 | end | |
1099 | end | |
1100 | if v:FindFirstChild("HitBy"..Player.Name) then | |
1101 | v:FindFirstChild("HitBy"..Player.Name):remove() | |
1102 | end | |
1103 | end | |
1104 | end | |
1105 | ||
1106 | function AoEStun(POS,RANGE,LAST) | |
1107 | for i,v in ipairs(workspace:GetChildren()) do | |
1108 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1109 | local body = v:GetChildren() | |
1110 | for part = 1, #body do | |
1111 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1112 | if(body[part].Position - POS).Magnitude < RANGE then | |
1113 | if v.ClassName == "Model" then | |
1114 | if v:FindFirstChild("Humanoid") then | |
1115 | if v.Humanoid.Health ~= 0 then | |
1116 | Stun(v.Humanoid,LAST) | |
1117 | local defence = Instance.new("BoolValue",v) | |
1118 | defence.Name = ("StunnedBy"..Player.Name) | |
1119 | game:GetService("Debris"):AddItem(defence, 0.1) | |
1120 | end | |
1121 | end | |
1122 | end | |
1123 | end | |
1124 | end | |
1125 | end | |
1126 | end | |
1127 | end | |
1128 | end | |
1129 | ||
1130 | function Stun(HUMANOID,LAST) | |
1131 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
1132 | HUMANOID.PlatformStand = true | |
1133 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
1134 | defence.Name = ("StunnedBy"..Player.Name) | |
1135 | game:GetService("Debris"):AddItem(defence, LAST) | |
1136 | if HUMANOID.Parent:FindFirstChild("Head") then | |
1137 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3)) | |
1138 | end | |
1139 | coroutine.resume(coroutine.create(function() | |
1140 | Swait(LAST*100) | |
1141 | HUMANOID.PlatformStand = false | |
1142 | end)) | |
1143 | end | |
1144 | end | |
1145 | ||
1146 | function Poison(HUMANOID,LAST,DAMAGE) | |
1147 | if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then | |
1148 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
1149 | defence.Name = ("PoisonedBy"..Player.Name) | |
1150 | game:GetService("Debris"):AddItem(defence, LAST) | |
1151 | coroutine.resume(coroutine.create(function() | |
1152 | for i = 1, LAST/2 do | |
1153 | if HUMANOID.Parent:FindFirstChild("Head") then | |
1154 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "POISON/"..DAMAGE, C3(0,1,0)) | |
1155 | end | |
1156 | Swait(2) | |
1157 | HUMANOID.Health = HUMANOID.Health - DAMAGE | |
1158 | end | |
1159 | end)) | |
1160 | end | |
1161 | end | |
1162 | ||
1163 | function killnearest(position,range,maxstrength) | |
1164 | for i,v in ipairs(workspace:GetChildren()) do | |
1165 | local body = v:GetChildren() | |
1166 | for part = 1, #body do | |
1167 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1168 | if(body[part].Position - position).Magnitude < range then | |
1169 | if v.ClassName == "Model" then | |
1170 | v:BreakJoints() | |
1171 | end | |
1172 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1173 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1174 | end | |
1175 | end | |
1176 | end | |
1177 | if v.ClassName == "Part" then | |
1178 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1179 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1180 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1181 | end | |
1182 | end | |
1183 | end | |
1184 | end | |
1185 | ||
1186 | --//=================================\\ | |
1187 | --|| ATTACK FUNCTIONS AND STUFF | |
1188 | --\\=================================// | |
1189 | ||
1190 | function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine) | |
1191 | if DoesCourontine == false then | |
1192 | local Direction = CF(Part.Position,ToLocation) | |
1193 | local Distance = (Part.Position - ToLocation).magnitude | |
1194 | for i = 1, AmountOfTime do | |
1195 | Swait() | |
1196 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
1197 | Direction = Part.CFrame | |
1198 | end | |
1199 | elseif DoesCourontine == true then | |
1200 | coroutine.resume(coroutine.create(function() | |
1201 | local Direction = CF(Part.Position,ToLocation) | |
1202 | local Distance = (Part.Position - ToLocation).magnitude | |
1203 | for i = 1, AmountOfTime do | |
1204 | Swait() | |
1205 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
1206 | Direction = Part.CFrame | |
1207 | end | |
1208 | end)) | |
1209 | end | |
1210 | end | |
1211 | ||
1212 | function impale(chain,hit) | |
1213 | if hit.Parent ~= Character and hit.Parent:FindFirstChildOfClass("Humanoid") then | |
1214 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1215 | if humanoid.Health ~= 0 then | |
1216 | hit.Parent:BreakJoints() | |
1217 | getbloody(hit,15) | |
1218 | local prtcl = asd:Clone() | |
1219 | prtcl.Parent = chain | |
1220 | prtcl.Enabled = true | |
1221 | prtcl.Speed = NumberRange.new(0) | |
1222 | prtcl.Size = NumberSequence.new(0.2) | |
1223 | end | |
1224 | end | |
1225 | end | |
1226 | ||
1227 | function CreateMagicCircle() | |
1228 | local sinkhole = IT("Part") | |
1229 | sinkhole.Size = VT(0,0,0) | |
1230 | sinkhole.Parent = Effects | |
1231 | sinkhole.Material = "Neon" | |
1232 | sinkhole.Color = C3(0,0,0) | |
1233 | sinkhole.Anchored = true | |
1234 | sinkhole.CanCollide = false | |
1235 | sinkhole.Transparency = 1 | |
1236 | local decal = IT("Decal",sinkhole) | |
1237 | decal.Face = "Top" | |
1238 | decal.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
1239 | local decal2 = IT("Decal",sinkhole) | |
1240 | decal2.Face = "Bottom" | |
1241 | decal2.Texture = "http://www.roblox.com/asset/?id=1260793696" | |
1242 | return sinkhole | |
1243 | end | |
1244 | ||
1245 | function Chain() | |
1246 | ATTACK = true | |
1247 | Rooted = false | |
1248 | for i=0, 2, 0.1 / Animation_Speed do | |
1249 | turnto(Mouse.Hit.p) | |
1250 | Swait() | |
1251 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 0.25 / Animation_Speed) | |
1252 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.25 / Animation_Speed) | |
1253 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
1254 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
1255 | 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) | |
1256 | 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) | |
1257 | end | |
1258 | CreateSound("1208650519", RightArm, 10, 2) | |
1259 | local RING = CreateMagicCircle() | |
1260 | RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) | |
1261 | for i = 1, 5 do | |
1262 | turnto(Mouse.Hit.p) | |
1263 | Swait() | |
1264 | local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position) | |
1265 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1266 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1267 | RING.CFrame = RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(0),RAD(i*2),RAD(0)) | |
1268 | RING.Size = RING.Size + VT(1,0,1) | |
1269 | end | |
1270 | coroutine.resume(coroutine.create(function() | |
1271 | local POS = Mouse.Hit.p | |
1272 | local A = IT("Attachment",RING) | |
1273 | for i = 1, 15 do | |
1274 | Swait(MRANDOM(0,5)) | |
1275 | coroutine.resume(coroutine.create(function() | |
1276 | local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false) | |
1277 | --print("Chain start") | |
1278 | Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3)) | |
1279 | Front.CanCollide = true | |
1280 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1) | |
1281 | local B = IT("Attachment",Front) | |
1282 | local ChainLink = IT("Beam",RING) | |
1283 | ChainLink.Texture = "rbxassetid://1262544869" | |
1284 | ChainLink.TextureSpeed = 0 | |
1285 | ChainLink.FaceCamera = true | |
1286 | ChainLink.Width0 = 3 | |
1287 | ChainLink.Attachment0 = A | |
1288 | ChainLink.Attachment1 = B | |
1289 | ChainLink.CurveSize0 = MRANDOM(-5,5) | |
1290 | ChainLink.CurveSize1 = MRANDOM(-5,5) | |
1291 | ChainLink.TextureMode = "Static" | |
1292 | local bv = Instance.new("BodyVelocity") | |
1293 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1294 | bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500 | |
1295 | bv.Parent = Front | |
1296 | bv.Name = "MOVE" | |
1297 | --print("Chain made") | |
1298 | coroutine.resume(coroutine.create(function() | |
1299 | Swait(50) | |
1300 | bv:remove() | |
1301 | local POS = Front.Position | |
1302 | Front.CanCollide = false | |
1303 | local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5)) | |
1304 | local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5)) | |
1305 | for i = 0, 1, 0.07 do | |
1306 | Swait() | |
1307 | Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i)) | |
1308 | end | |
1309 | Front:remove() | |
1310 | ChainLink:remove() | |
1311 | end)) | |
1312 | local harm = Front.Touched:Connect(function(hit) | |
1313 | impale(Front,hit) | |
1314 | end) | |
1315 | end)) | |
1316 | end | |
1317 | Swait(60) | |
1318 | for i = 1, 5 do | |
1319 | Swait() | |
1320 | RING.Size = RING.Size - VT(1,0,1) | |
1321 | end | |
1322 | RING:remove() | |
1323 | end)) | |
1324 | ATTACK = false | |
1325 | Rooted = false | |
1326 | end | |
1327 | ||
1328 | function MegaChain() | |
1329 | ATTACK = true | |
1330 | Rooted = true | |
1331 | for i=0, 1, 0.1 / Animation_Speed do | |
1332 | Swait() | |
1333 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1334 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1335 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, -1) * ANGLES(RAD(60), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1336 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 , 0) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed/8) | |
1337 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 * Player_Size, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.5 / Animation_Speed/8) | |
1338 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, 0) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.5 / Animation_Speed/8) | |
1339 | end | |
1340 | local RING = CreateMagicCircle() | |
1341 | CreateSound("1208650519", RING, 10, 1.5) | |
1342 | RING.CFrame = RootPart.CFrame * CF(0,-2.8,0) | |
1343 | local FRAME = RootPart.CFrame * CF(0,-2.8,0) | |
1344 | for i = 1, 75 do | |
1345 | Swait() | |
1346 | local FRAME = CF(RightArm.CFrame * CF(MRANDOM(-5,5),MRANDOM(0,7.5),MRANDOM(-5,5)).p,RightArm.Position) | |
1347 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1348 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1349 | RING.CFrame = RING.CFrame * ANGLES(RAD(0),RAD(i/5),RAD(0)) | |
1350 | RING.Size = RING.Size + VT(1,0,1) | |
1351 | end | |
1352 | coroutine.resume(coroutine.create(function() | |
1353 | for i = 1, 450 do | |
1354 | Swait(2) | |
1355 | local FRAME = CF(RING.CFrame * CF(MRANDOM(-25,25),MRANDOM(0,35),MRANDOM(-25,25)).p,RING.Position) | |
1356 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1357 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1358 | MagicSphere(VT(0,0,0),10,RING.CFrame,"Royal purple",VT(2,4,2)) | |
1359 | MagicSphere(VT(0,0,0),10,RING.CFrame,"Really black",VT(1.8,3.8,1.8)) | |
1360 | local A = IT("Attachment",RING) | |
1361 | local POS = RING.CFrame * CF(MRANDOM(-150,150),MRANDOM(5,50),MRANDOM(-150,150)).p | |
1362 | coroutine.resume(coroutine.create(function() | |
1363 | local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false) | |
1364 | --print("Chain start") | |
1365 | Front.CFrame = RING.CFrame*CF(MRANDOM(-3,3),0,MRANDOM(-3,3)) | |
1366 | Front.CanCollide = false | |
1367 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 2, 1) | |
1368 | local B = IT("Attachment",Front) | |
1369 | local ChainLink = IT("Beam",RING) | |
1370 | ChainLink.Texture = "rbxassetid://1262544869" | |
1371 | ChainLink.TextureSpeed = 0 | |
1372 | ChainLink.FaceCamera = true | |
1373 | ChainLink.Width0 = 3 | |
1374 | ChainLink.Attachment0 = A | |
1375 | ChainLink.Attachment1 = B | |
1376 | ChainLink.CurveSize0 = MRANDOM(-5,5) | |
1377 | ChainLink.CurveSize1 = MRANDOM(-5,5) | |
1378 | ChainLink.TextureMode = "Static" | |
1379 | local bv = Instance.new("BodyVelocity") | |
1380 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1381 | bv.velocity = CF(Front.Position,VT(POS.X+MRANDOM(-3,3),POS.Y+MRANDOM(-3,3),POS.Z+MRANDOM(-3,3))).lookVector*500 | |
1382 | bv.Parent = Front | |
1383 | bv.Name = "MOVE" | |
1384 | --print("Chain made") | |
1385 | coroutine.resume(coroutine.create(function() | |
1386 | Swait(50) | |
1387 | bv:remove() | |
1388 | local POS = Front.Position | |
1389 | Front.CanCollide = false | |
1390 | local onefourth = POS:Lerp(RING.Position, 0.25) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5)) | |
1391 | local threefourths = POS:Lerp(RING.Position, 0.75) + Vector3.new(math.random(-5, 5), math.random(-5, 5),math.random(-5, 5)) | |
1392 | for i = 0, 1, 0.07 do | |
1393 | Swait() | |
1394 | Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, RING.Position, i)) | |
1395 | end | |
1396 | Front:remove() | |
1397 | ChainLink:remove() | |
1398 | end)) | |
1399 | local harm = Front.Touched:Connect(function(hit) | |
1400 | impale(Front,hit) | |
1401 | end) | |
1402 | end)) | |
1403 | AoEDamage(RING.Position,75,0,0,0,0,0,0,0,0,0,true) | |
1404 | RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(5),RAD(0)) | |
1405 | end | |
1406 | Swait(65) | |
1407 | for i = 1, 75 do | |
1408 | Swait() | |
1409 | RING.CFrame = RING.CFrame* ANGLES(RAD(0),RAD(-i/5),RAD(0)) | |
1410 | RING.Size = RING.Size - VT(1,0,1) | |
1411 | end | |
1412 | RING:remove() | |
1413 | end)) | |
1414 | ATTACK = false | |
1415 | Rooted = false | |
1416 | end | |
1417 | ||
1418 | function PowerOutburst() | |
1419 | ATTACK = true | |
1420 | Rooted = false | |
1421 | for i=0, 1, 0.1 / Animation_Speed do | |
1422 | Swait() | |
1423 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1424 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1425 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1426 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1427 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1428 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1429 | end | |
1430 | Head.face.Texture = "rbxassetid://1297068763" | |
1431 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1432 | Swait() | |
1433 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1434 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1435 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1436 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1437 | 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)), 3 / Animation_Speed) | |
1438 | 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)),3 / Animation_Speed) | |
1439 | end | |
1440 | for i=0, 3, 0.1 / Animation_Speed do | |
1441 | local COLORS = {"Earth green","Lime green","New Yeller"} | |
1442 | coroutine.resume(coroutine.create(function() | |
1443 | local FIRE = CreatePart(3, Effects, "Neon", 0, 0.8, COLORS[MRANDOM(1,#COLORS)], "FirePart", VT(0,0,0)) | |
1444 | FIRE.CFrame = Head.CFrame*CF(0,-0.25,-0.5) | |
1445 | MakeForm(FIRE,"Ball") | |
1446 | for i = 1, 25 do | |
1447 | Swait() | |
1448 | FIRE.CFrame = FIRE.CFrame*CF(0,0,-0.1) | |
1449 | FIRE.Transparency = FIRE.Transparency + (0.2/25) | |
1450 | FIRE.Size = FIRE.Size * 1.35 | |
1451 | end | |
1452 | AoEDamage(FIRE.Position,FIRE.Size.Y/2.5,2,3,0,6,1.5,false) | |
1453 | FIRE:remove() | |
1454 | end)) | |
1455 | Slice(0.6,15,Head.CFrame*CF(0,-0.25,-1.5)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15) | |
1456 | Swait() | |
1457 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1458 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-90 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1459 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1460 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1461 | 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)), 3 / Animation_Speed) | |
1462 | 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)),3 / Animation_Speed) | |
1463 | end | |
1464 | ATTACK = false | |
1465 | Rooted = false | |
1466 | end | |
1467 | ||
1468 | function RadioactiveSludge() | |
1469 | ATTACK = true | |
1470 | Rooted = false | |
1471 | local COLORS = {"Earth green","Slime green"} | |
1472 | local COLOR = COLORS[MRANDOM(1,#COLORS)] | |
1473 | local FIRE = CreatePart(3, Effects, "Neon", 0, 0, "Earth green", "FirePart", VT(0,0,0)) | |
1474 | MakeForm(FIRE,"Ball") | |
1475 | FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3) | |
1476 | local LIGHT = IT("PointLight",FIRE) | |
1477 | LIGHT.Range = 0.05 | |
1478 | LIGHT.Brightness = 100 | |
1479 | LIGHT.Color = C3(0,1,0) | |
1480 | for i=0, 1.5, 0.1 / Animation_Speed do | |
1481 | Swait() | |
1482 | turnto(Mouse.Hit.p) | |
1483 | FIRE.Size = FIRE.Size * 1.1 | |
1484 | FIRE.CFrame = RootPart.CFrame*CF(0,-0.25,-3) | |
1485 | LIGHT.Range = LIGHT.Range * 1.1 | |
1486 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1487 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1488 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1489 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(125), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1490 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1491 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed) | |
1492 | end | |
1493 | Rooted = true | |
1494 | coroutine.resume(coroutine.create(function() | |
1495 | local COLORS2 = {"Earth green","Lime green","New Yeller"} | |
1496 | FireArc(FIRE,Mouse.Hit.p,30,7,false) | |
1497 | local FLOOR = CreatePart(3, Effects, "Neon", 0, 0, "Earth green", "FirePart", VT(0,0,0)) | |
1498 | local HIT, POS = Raycast(FIRE.Position, CF(FIRE.Position,FIRE.Position+VT(0,-1,0)).lookVector, 2, Character) | |
1499 | MakeForm(FLOOR,"Cyl") | |
1500 | FLOOR.CFrame = CF(POS) | |
1501 | LIGHT.Parent = FLOOR | |
1502 | for i = 1, 50 do | |
1503 | Swait() | |
1504 | LIGHT.Range = LIGHT.Range + 0.3 | |
1505 | AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false) | |
1506 | Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15) | |
1507 | FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0) | |
1508 | FLOOR.Size = FLOOR.Size + VT(0.7,0,0.7) | |
1509 | end | |
1510 | FIRE:remove() | |
1511 | for i = 1, 300 do | |
1512 | Swait() | |
1513 | AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false) | |
1514 | Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15) | |
1515 | end | |
1516 | for i = 1, 25 do | |
1517 | Swait() | |
1518 | LIGHT.Range = LIGHT.Range - 0.8 | |
1519 | AoEDamage(FLOOR.Position,FLOOR.Size.Z,0,2,3,0,6,1.5,false) | |
1520 | Slice(FLOOR.Size.Z/20,15,FLOOR.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS2[MRANDOM(1,#COLORS2)],1.15) | |
1521 | FIRE.CFrame = FIRE.CFrame * CF(0,-0.1,0) | |
1522 | FLOOR.Size = FLOOR.Size - VT(1.4,0,1.4) | |
1523 | end | |
1524 | FLOOR:remove() | |
1525 | end)) | |
1526 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1527 | Swait() | |
1528 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1529 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-45 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1530 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1531 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.8) * ANGLES(RAD(160), RAD(0), RAD(12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1532 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 3 / Animation_Speed) | |
1533 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)),3 / Animation_Speed) | |
1534 | end | |
1535 | ATTACK = false | |
1536 | Rooted = false | |
1537 | end | |
1538 | ||
1539 | function CastProperRay(StartPos, Vec, Length, Ignore) | |
1540 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
1541 | local Ignore = type(Ignore) == "table" and Ignore or {Ignore} | |
1542 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
1543 | return RayHit, RayPos, RayNormal | |
1544 | end | |
1545 | ||
1546 | function BanishBullet() | |
1547 | ATTACK = true | |
1548 | Rooted = false | |
1549 | for i = 0, 0.4, 0.1 / Animation_Speed do | |
1550 | Swait() | |
1551 | turnto(Mouse.Hit.p) | |
1552 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1553 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1554 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1555 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1556 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1557 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1558 | end | |
1559 | repeat | |
1560 | for i = 0, 0.2, 0.1 / Animation_Speed do | |
1561 | Swait() | |
1562 | turnto(Mouse.Hit.p) | |
1563 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1564 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1565 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1566 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1567 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1568 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1569 | end | |
1570 | CreateSound("238353911", RightArm, 10, MRANDOM(9, 11) / 10) | |
1571 | MagicSphere(VT(0.1, 0.1, 0.1), 45, RightArm.CFrame, "Crimson", VT(0.1, 0.1, 0.1)) | |
1572 | MagicSphere(VT(0.1, 0.1, 0.1), 45, RightArm.CFrame, "Crimson", VT(0.05, 0.05, 0.05)) | |
1573 | local RayHit, Way = CastProperRay(RightArm.Position, Mouse.Hit.p, 1500, Character) | |
1574 | local distance = (RightArm.Position - Way).magnitude | |
1575 | for i = 1, 5 do | |
1576 | local laser = Instance.new("Part", Effects) | |
1577 | laser.Transparency = 0 | |
1578 | laser.CanCollide = false | |
1579 | laser.Anchored = true | |
1580 | laser.Color = C3(1, 0, 0) | |
1581 | laser.Material = "Neon" | |
1582 | laser.formFactor = Enum.FormFactor.Custom | |
1583 | laser.Size = Vector3.new(0.15, 0.15, distance) | |
1584 | laser.CFrame = CFrame.new(RightArm.Position, Way) * CFrame.new(0, 0, -distance / 2) | |
1585 | MagicSphere(VT(0.1, 0.1, 0.1), 45, CF(Way), "Crimson", VT(0.05, 0.05, 0.05)) | |
1586 | for i = 1, 5 do | |
1587 | MagicSphere(VT(0.2, 0.2, 1), 65, CF(CF(Way) * CF(MRANDOM(-1, 1), MRANDOM(-1, 1), MRANDOM(-1, 1)).p, Way), "Crimson", VT(0.001, 0.001, 0), 0.5) | |
1588 | end | |
1589 | table.insert(Effects2, { | |
1590 | laser, | |
1591 | "Disappear", | |
1592 | 0.1, | |
1593 | 1, | |
1594 | 1, | |
1595 | 1, | |
1596 | 2 | |
1597 | }) | |
1598 | if RayHit ~= nil then | |
1599 | local v = RayHit.Parent | |
1600 | if v ~= nil and v.ClassName == "Model" then | |
1601 | CastWarpOutlines(v) | |
1602 | v.Parent = nil | |
1603 | if game.Players:FindFirstChild(v.Name) then | |
1604 | local Value = IT("BoolValue", Delete) | |
1605 | Value.Name = v.Name | |
1606 | end | |
1607 | end | |
1608 | end | |
1609 | end | |
1610 | for i = 0, 0.3, 0.1 / Animation_Speed do | |
1611 | Swait() | |
1612 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1613 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1614 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1615 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1616 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1617 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1618 | end | |
1619 | until KEYHOLD == false | |
1620 | ATTACK = false | |
1621 | Rooted = false | |
1622 | end | |
1623 | function Dark_blade() | |
1624 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character) | |
1625 | if HITFLOOR ~= nil then | |
1626 | ATTACK = true | |
1627 | Rooted = true | |
1628 | local GYRO = IT("BodyGyro",RootPart) | |
1629 | GYRO.D = 100 | |
1630 | GYRO.P = 2000 | |
1631 | GYRO.MaxTorque = VT(0,4000000,0) | |
1632 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1633 | CreateSound("429459101", RightArm, 10, 0.8) | |
1634 | for i=0, 3.5, 0.1 / Animation_Speed do | |
1635 | Swait() | |
1636 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1637 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(-0.01,0,-0.01)) | |
1638 | 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) | |
1639 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1640 | 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) | |
1641 | 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) | |
1642 | 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) | |
1643 | 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) | |
1644 | end | |
1645 | GYRO:remove() | |
1646 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1647 | Swait() | |
1648 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1649 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Royal purple",VT(-0.01,0,-0.01)) | |
1650 | 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) | |
1651 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1652 | 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) | |
1653 | 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) | |
1654 | 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) | |
1655 | 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) | |
1656 | end | |
1657 | local BOMBSPOTS = {} | |
1658 | for i = 1, 25 do | |
1659 | local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Relly blue", "Blade", VT(8,1,8)) | |
1660 | SPOT.Color = SKILLTEXTCOLOR | |
1661 | SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5) | |
1662 | table.insert(BOMBSPOTS,SPOT) | |
1663 | MakeForm(SPOT,"Cyl") | |
1664 | end | |
1665 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1666 | Swait() | |
1667 | 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) | |
1668 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1669 | 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) | |
1670 | 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) | |
1671 | 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) | |
1672 | 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) | |
1673 | end | |
1674 | ATTACK = false | |
1675 | Rooted = false | |
1676 | coroutine.resume(coroutine.create(function() | |
1677 | Swait(3) | |
1678 | for i = 1, #BOMBSPOTS do | |
1679 | if BOMBSPOTS[i] ~= nil then | |
1680 | local E = BOMBSPOTS[i] | |
1681 | coroutine.resume(coroutine.create(function() | |
1682 | local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly blue", "Blade", VT(0,0,0)) | |
1683 | BLADE.Color = SKILLTEXTCOLOR | |
1684 | CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0)) | |
1685 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6) | |
1686 | BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15))) | |
1687 | for i = 1, 10 do | |
1688 | Swait() | |
1689 | MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0)) | |
1690 | killnearest(BLADE.Position,6,80) | |
1691 | BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0) | |
1692 | BLADE.Transparency = BLADE.Transparency - 0.1 | |
1693 | end | |
1694 | Swait(45) | |
1695 | for i = 1, 100 do | |
1696 | Swait() | |
1697 | BLADE.Transparency = BLADE.Transparency + 0.01 | |
1698 | E.Transparency = E.Transparency + 0.01 | |
1699 | end | |
1700 | BLADE:remove() | |
1701 | E:remove() | |
1702 | end)) | |
1703 | end | |
1704 | end | |
1705 | end)) | |
1706 | end | |
1707 | end | |
1708 | ||
1709 | function CreateGUICircle(TARGET) | |
1710 | local GUI = Instance.new("BillboardGui",Character) | |
1711 | GUI.Size = UDim2.new(0,0,0,0) | |
1712 | GUI.Adornee = TARGET | |
1713 | local GUI2 = IT("ImageLabel",GUI) | |
1714 | GUI2.BackgroundTransparency = 1 | |
1715 | GUI2.BorderSizePixel = 0 | |
1716 | GUI2.Size = UDim2.new(1,0,1,0) | |
1717 | GUI2.SizeConstraint = "RelativeYY" | |
1718 | GUI.AlwaysOnTop = true | |
1719 | GUI2.Image = "http://www.roblox.com/asset/?id=1260793696" | |
1720 | return GUI,GUI2 | |
1721 | end | |
1722 | ||
1723 | function CastWarpOutlines(TARGET) | |
1724 | coroutine.resume(coroutine.create(function() | |
1725 | local T = TARGET:GetChildren() | |
1726 | for i = 1, # T do | |
1727 | local child = T[i] | |
1728 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
1729 | local clone = child:Clone() | |
1730 | clone.Parent = Effects | |
1731 | clone.Anchored = true | |
1732 | clone.CanCollide = false | |
1733 | clone:ClearAllChildren() | |
1734 | clone.CFrame = child.CFrame | |
1735 | if clone.Name == "Head" then | |
1736 | clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y) | |
1737 | end | |
1738 | if clone.ClassName == "MeshPart" then | |
1739 | clone.TextureID = "" | |
1740 | end | |
1741 | clone.BrickColor = BRICKC"Black" | |
1742 | clone.Material = "Neon" | |
1743 | coroutine.resume(coroutine.create(function() | |
1744 | for i = 1, 200 do | |
1745 | Swait() | |
1746 | clone.Transparency = clone.Transparency + 0.005 | |
1747 | clone.Size = clone.Size + VT(0.001,0.001,0.001) | |
1748 | end | |
1749 | clone:remove() | |
1750 | end)) | |
1751 | end | |
1752 | end | |
1753 | end)) | |
1754 | end | |
1755 | ||
1756 | function Sink(position,radius) | |
1757 | for i,v in ipairs(workspace:GetChildren()) do | |
1758 | if v:FindFirstChild("Hit2By"..Player.Name) == nil then | |
1759 | local body = v:GetChildren() | |
1760 | for part = 1, #body do | |
1761 | if(v:FindFirstChild("Hit2By"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1762 | if(body[part].Position - position).Magnitude < radius then | |
1763 | if v.ClassName == "Model" then | |
1764 | if v:FindFirstChild("Humanoid") then | |
1765 | local defence = Instance.new("BoolValue",v) | |
1766 | defence.Name = ("Hit2By"..Player.Name) | |
1767 | if v.Humanoid.Health ~= 0 then | |
1768 | local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1769 | if TORS ~= nil then | |
1770 | local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + VT(0, -1, 0))).lookVector, 5 * TORS.Size.Y/2, v) | |
1771 | coroutine.resume(coroutine.create(function() | |
1772 | if HITFLOOR2 ~= nil then | |
1773 | TORS.Anchored = true | |
1774 | table.insert(Effects2,{v}) | |
1775 | repeat | |
1776 | Swait() | |
1777 | TORS.CFrame = TORS.CFrame * CF(0,-1,0) | |
1778 | until TORS.Position.Y<position.Y-4 | |
1779 | v:remove() | |
1780 | end | |
1781 | end)) | |
1782 | end | |
1783 | end | |
1784 | end | |
1785 | end | |
1786 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1787 | end | |
1788 | end | |
1789 | end | |
1790 | end | |
1791 | end | |
1792 | end | |
1793 | ||
1794 | function Shadowpuddle() | |
1795 | ATTACK = true | |
1796 | Rooted = true | |
1797 | CreateSound(ALONE, Head, 10, 1) | |
1798 | for i=0, 2, 0.1 / Animation_Speed do | |
1799 | Swait() | |
1800 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1801 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1802 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1803 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1804 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1805 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1806 | end | |
1807 | CreateSound("1075001850", RootPart, 10, 3) | |
1808 | UNANCHOR = false | |
1809 | RootPart.Anchored = true | |
1810 | local GATE = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Heart", VT(1,0.2,1)) | |
1811 | MakeForm(GATE,"Cyl") | |
1812 | GATE.Color = C3(0,0,0) | |
1813 | GATE.CFrame = CF(RootPart.Position)*CF(0,-3,0) | |
1814 | for i=1, 250 do | |
1815 | Swait() | |
1816 | UNANCHOR = false | |
1817 | GATE.Size = GATE.Size + VT(1,0,1) | |
1818 | --AURA.Size = GATE.Size + VT(0.1,0.1,0.1) | |
1819 | RootPart.Anchored = true | |
1820 | Sink(GATE.Position,GATE.Size.Z/2.2) | |
1821 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -20) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.005 / Animation_Speed) | |
1822 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1823 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1824 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1825 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1826 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1827 | end | |
1828 | repeat Swait() until #Effects2 == 0 | |
1829 | for i=1, 25 do | |
1830 | Swait() | |
1831 | GATE.Size = GATE.Size - VT(10,0,10) | |
1832 | --AURA.Size = GATE.Size + VT(0.1,0.1,0.1) | |
1833 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1834 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1835 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0, -0.3) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1836 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1837 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1838 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1839 | end | |
1840 | GATE:remove() | |
1841 | RootPart.Anchored = false | |
1842 | UNANCHOR = true | |
1843 | ATTACK = false | |
1844 | Rooted = false | |
1845 | end | |
1846 | ||
1847 | function Mortar(Target) | |
1848 | local newball = Instance.new("Part", workspace) | |
1849 | newball.Anchored = true | |
1850 | newball.Shape = "Ball" | |
1851 | newball.Material = "Neon" | |
1852 | newball.Size = Vector3.new(0,0,0) | |
1853 | newball.CanCollide = false | |
1854 | newball.CFrame = CF(Target) | |
1855 | newball.Color = C3(1,1,1) | |
1856 | newball.Transparency = 1 | |
1857 | local POS = Mouse.Hit.p | |
1858 | local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
1859 | local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
1860 | local A1 = IT("Attachment",newball) | |
1861 | A1.Position = Vector3.new(0, 2.5, 0) | |
1862 | local A2 = IT("Attachment",newball) | |
1863 | A2.Position = Vector3.new(0, -2.5, 0) | |
1864 | local Trail = IT("Trail",newball) | |
1865 | Trail.LightEmission = 1 | |
1866 | Trail.FaceCamera = true | |
1867 | Trail.Texture = "rbxassetid://945758042" | |
1868 | Trail.Attachment0 = A1 | |
1869 | Trail.Attachment1 = A2 | |
1870 | Trail.Lifetime = 1 | |
1871 | Trail.MinLength = 0 | |
1872 | Trail.Transparency = NumberSequence.new(0, 1) | |
1873 | Trail.Color = ColorSequence.new(newball.Color) | |
1874 | coroutine.resume(coroutine.create(function() | |
1875 | for i = 0, 1, 0.07 do | |
1876 | Swait() | |
1877 | MagicSphere(VT(2,2,2),50,newball.CFrame,"Pearl",VT(-0.01,-0.01,-0.01)) | |
1878 | newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i)) | |
1879 | end | |
1880 | AoEDamage(newball.Position,5,5,8,0,false,2,2,false,true) | |
1881 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], newball, 10, 1) | |
1882 | MagicSphere(VT(0,0,0),55,newball.CFrame,"Pearl",VT(0.06,0.5,0.06)) | |
1883 | for i = 1, 10 do | |
1884 | MagicSphere(VT(0.5,0.5,3),50,CF(newball.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,newball.Position),"Pearl",VT(-0.005,-0.005,0.03),0) | |
1885 | end | |
1886 | game:GetService("Debris"):AddItem(newball, 5) | |
1887 | end)) | |
1888 | end | |
1889 | ||
1890 | ||
1891 | function LightArray() | |
1892 | ATTACK = true | |
1893 | Rooted = false | |
1894 | for i=0, 1, 0.1 / Animation_Speed do | |
1895 | Swait() | |
1896 | turnto(Mouse.Hit.p) | |
1897 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.5 / Animation_Speed) | |
1898 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 0.25 / Animation_Speed) | |
1899 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1900 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1901 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1902 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1903 | end | |
1904 | local LOOP = 0 | |
1905 | for i = 1, 30 do | |
1906 | Swait() | |
1907 | turnto(Mouse.Hit.p) | |
1908 | LOOP = LOOP + 1 | |
1909 | if LOOP == 10 then | |
1910 | LOOP = 0 | |
1911 | Mortar(LeftArm.CFrame*CF(0,-1,0).p) | |
1912 | end | |
1913 | end | |
1914 | ATTACK = false | |
1915 | Rooted = false | |
1916 | end | |
1917 | ||
1918 | function Oblivion() | |
1919 | ATTACK = true | |
1920 | Rooted = true | |
1921 | for i=0, 2, 0.1 / Animation_Speed do | |
1922 | Swait() | |
1923 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1924 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1925 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1926 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1927 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1928 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1929 | end | |
1930 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1931 | Swait() | |
1932 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1933 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1934 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1935 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1936 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
1937 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
1938 | end | |
1939 | for i = 1, 75 do | |
1940 | Swait() | |
1941 | MagicSphere(VT(0.5,0.5,5),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(-0.005,-0.005,0.03),0) | |
1942 | end | |
1943 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
1944 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
1945 | AoEDamage(Torso.Position,45,45,58,0,false,2,2,false,true) | |
1946 | MagicSphere(VT(0,0,0),25,Torso.CFrame,"Pearl",VT(5,5,5)) | |
1947 | MagicSphere(VT(0,0,0),50,Torso.CFrame,"Pearl",VT(2.5,2.5,2.5)) | |
1948 | MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6)) | |
1949 | MagicSphere(VT(0,0.2,0),30,Torso.CFrame*ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))),"Pearl",VT(6,0,6)) | |
1950 | ATTACK = false | |
1951 | Rooted = false | |
1952 | end | |
1953 | ||
1954 | function kiss() | |
1955 | ATTACK = true | |
1956 | Rooted = false | |
1957 | local HASGRABBED = false | |
1958 | local GRABTARGET = nil | |
1959 | local TORS = nil | |
1960 | local WELD = nil | |
1961 | for i=0, 1, 0.1 / Animation_Speed do | |
1962 | Swait() | |
1963 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1964 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1965 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1966 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1967 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1968 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1969 | end | |
1970 | local GRAB1 = RightArm.Touched:Connect(function(hit) | |
1971 | if hit.Parent:FindFirstChild("Humanoid") then | |
1972 | if hit.Parent.Humanoid.Health ~= 0 then | |
1973 | UNANCHOR = false | |
1974 | RootPart.Anchored = true | |
1975 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1976 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
1977 | WELD = weldBetween(RootPart,TORS) | |
1978 | HASGRABBED = true | |
1979 | Rooted = true | |
1980 | end | |
1981 | end | |
1982 | end) | |
1983 | local GRAB2 = LeftArm.Touched:Connect(function(hit) | |
1984 | if hit.Parent:FindFirstChild("Humanoid") then | |
1985 | if hit.Parent.Humanoid.Health ~= 0 then | |
1986 | UNANCHOR = false | |
1987 | RootPart.Anchored = true | |
1988 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1989 | TORS.CFrame = RootPart.CFrame * CF(0,0,-1.8) * ANGLES(RAD(0),RAD(180),RAD(0)) | |
1990 | WELD = weldBetween(RootPart,TORS) | |
1991 | HASGRABBED = true | |
1992 | Rooted = true | |
1993 | end | |
1994 | end | |
1995 | end) | |
1996 | for i=0, 1, 0.1 / Animation_Speed do | |
1997 | Swait() | |
1998 | if HASGRABBED == true then | |
1999 | break | |
2000 | end | |
2001 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2002 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2003 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2004 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2005 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2006 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2007 | end | |
2008 | GRAB1:disconnect() | |
2009 | GRAB2:disconnect() | |
2010 | if HASGRABBED == true then | |
2011 | TORS.Anchored = false | |
2012 | GRABTARGET = TORS.Parent | |
2013 | HED = GRABTARGET:FindFirstChild("Head") | |
2014 | for i=0, 2, 0.1 / Animation_Speed do | |
2015 | Swait() | |
2016 | 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) | |
2017 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2018 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2019 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2020 | 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) | |
2021 | 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) | |
2022 | end | |
2023 | local heart = CreatePart(1, HED, "SmoothPlastic", 0, 0, "Carnation pink", "Heart", VT(1,1,1), false) | |
2024 | local msh = CreateMesh("SpecialMesh", heart, "FileMesh", "431221914", "", VT(0.3, 0.3, 0.3), VT(0,0,0)) | |
2025 | CreateWeldOrSnapOrMotor("Weld", HED, heart, HED,CF(0, -2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
2026 | local ECH = 0 | |
2027 | CreateSound("247269322", Head, 10, 0.8) | |
2028 | Head.face.Texture = "rbxassetid://47425887" | |
2029 | for i=0, 8, 0.1 / Animation_Speed do | |
2030 | Swait() | |
2031 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2032 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-17.5 - 2.5 * SIN(SINE / 12)), RAD(25 * SIN(SINE / 3)), RAD(0)), 0.5 / Animation_Speed) | |
2033 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2034 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35, 0.5, -1) * ANGLES(RAD(110), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2035 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2036 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(22.5), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2037 | end | |
2038 | WELD:remove() | |
2039 | end | |
2040 | UNANCHOR = true | |
2041 | ATTACK = false | |
2042 | Rooted = false | |
2043 | end | |
2044 | ||
2045 | function friend() | |
2046 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2047 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
2048 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
2049 | local ARM = HUM.Parent:FindFirstChild("Right Arm") or HUM.Parent:FindFirstChild("RightUpperArm") | |
2050 | if TORSO and ARM then | |
2051 | ATTACK = true | |
2052 | local FAKECHARACTER = IT("Model",Effects) | |
2053 | FAKECHARACTER.Name = "NeonDoll" | |
2054 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
2055 | CreateWeldOrSnapOrMotor("Weld", HUM, ARM, TORS, CF(0,1.2,0), CF(0,0,0)) | |
2056 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
2057 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(90), RAD(0), RAD(15)), CF(0,0.15,0)) | |
2058 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
2059 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(90), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
2060 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
2061 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(30)), CF(0,0.15,0)) | |
2062 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
2063 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-30)), CF(0,0.15,0)) | |
2064 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 0.4, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
2065 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
2066 | ATTACK = false | |
2067 | repeat | |
2068 | wait(1) | |
2069 | ApplyDamage(HUM,5,5,2,5) | |
2070 | until HUM.health == 0 | |
2071 | end | |
2072 | end | |
2073 | end | |
2074 | ||
2075 | function Debree(POS, SWAIT) | |
2076 | coroutine.resume(coroutine.create(function() | |
2077 | local HOLDER = IT("Model", Effects) | |
2078 | HOLDER.Name = "Debree" | |
2079 | local HITFLOOR = Raycast(POS, CF(POS, POS + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character) | |
2080 | MagicSphere(VT(15, 1, 15), SWAIT, CF(POS), "Really red", VT(0, 0, 0)) | |
2081 | MagicSphere(VT(13, 1, 13), SWAIT, CF(POS), "Really red", VT(0, 0, 0)) | |
2082 | MagicSphere(VT(12, 1, 12), SWAIT, CF(POS), "Really red", VT(0, 0, 0)) | |
2083 | repeat | |
2084 | Swait() | |
2085 | until HITFLOOR ~= nil | |
2086 | local O = 0 | |
2087 | for i = 1, 18 do | |
2088 | do | |
2089 | local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3)) | |
2090 | Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
2091 | O = O - 2.25 + i / 4 | |
2092 | coroutine.resume(coroutine.create(function() | |
2093 | Swait(SWAIT) | |
2094 | for i = 1, 60 do | |
2095 | Swait() | |
2096 | local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace) | |
2097 | Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
2098 | end | |
2099 | for i = 1, 50 do | |
2100 | Swait() | |
2101 | Part.Size = Part.Size * 0.9 | |
2102 | end | |
2103 | end)) | |
2104 | end | |
2105 | end | |
2106 | local O = 0 | |
2107 | for i = 1, 18 do | |
2108 | do | |
2109 | local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3, 3, 3)) | |
2110 | Part.CFrame = CF(CF(POS) * CF(10 - i, 0, O).p) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
2111 | O = O + 2.25 - i / 4 | |
2112 | coroutine.resume(coroutine.create(function() | |
2113 | Swait(SWAIT) | |
2114 | for i = 1, 60 do | |
2115 | Swait() | |
2116 | local RayHit, Way = CastProperRay(Part.Position, POS, 0.1, workspace) | |
2117 | Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
2118 | end | |
2119 | for i = 1, 50 do | |
2120 | Swait() | |
2121 | Part.Size = Part.Size * 0.9 | |
2122 | end | |
2123 | end)) | |
2124 | end | |
2125 | end | |
2126 | Swait(SWAIT + 110) | |
2127 | HOLDER:remove() | |
2128 | end)) | |
2129 | end | |
2130 | ||
2131 | function Banishtele() | |
2132 | ATTACK = true | |
2133 | Rooted = true | |
2134 | for i = 0, 1, 0.1 / Animation_Speed do | |
2135 | Swait() | |
2136 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2137 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2138 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2139 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2140 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2141 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2142 | end | |
2143 | Debree(CF(RootPart.Position) * CF(0, -2.8, 0).p, 75) | |
2144 | UNANCHOR = false | |
2145 | RootPart.Anchored = true | |
2146 | for i = 0, 2, 0.1 / Animation_Speed do | |
2147 | Swait() | |
2148 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2149 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2150 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2151 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2152 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2153 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2154 | end | |
2155 | local POS = RootPart.Position | |
2156 | RootPart.CFrame = CF(CF(Mouse.Hit.p) * CF(0, 2.8, 0).p, POS) | |
2157 | Debree(CF(RootPart.Position) * CF(0, -2.5, 0).p, 150) | |
2158 | for i = 0, 2, 0.1 / Animation_Speed do | |
2159 | Swait() | |
2160 | 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) | |
2161 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2162 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2163 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2164 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2165 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2166 | end | |
2167 | ATTACK = false | |
2168 | Rooted = false | |
2169 | end | |
2170 | --//=================================\\ | |
2171 | --|| ASSIGN THINGS TO KEYS | |
2172 | --\\=================================// | |
2173 | ||
2174 | function MouseDown(Mouse) | |
2175 | if ATTACK == false then | |
2176 | end | |
2177 | end | |
2178 | ||
2179 | function MouseUp(Mouse) | |
2180 | HOLD = false | |
2181 | end | |
2182 | ||
2183 | ||
2184 | ||
2185 | ||
2186 | function KeyDown(Key) | |
2187 | KEYHOLD = true | |
2188 | if Key == "z" and ATTACK == false then | |
2189 | if CHOSENBRICK == "Royal purple" then | |
2190 | Chain() | |
2191 | elseif CHOSENBRICK == "Earth green" then | |
2192 | PowerOutburst() | |
2193 | elseif CHOSENBRICK == "Crimson" then | |
2194 | BanishBullet() | |
2195 | elseif CHOSENBRICK == "Carnation pink" then | |
2196 | kiss() | |
2197 | elseif CHOSENBRICK == "Really black" then | |
2198 | Dark_blade() | |
2199 | elseif CHOSENBRICK == "White" then | |
2200 | LightArray() | |
2201 | end | |
2202 | end | |
2203 | ||
2204 | if Key == "v" and ATTACK == false then | |
2205 | if CHOSENBRICK == "Royal purple" then | |
2206 | MegaChain() | |
2207 | elseif CHOSENBRICK == "Earth green" then | |
2208 | RadioactiveSludge() | |
2209 | elseif CHOSENBRICK == "Crimson" then | |
2210 | Banishtele() | |
2211 | elseif CHOSENBRICK == "Carnation pink" then | |
2212 | friend() | |
2213 | elseif CHOSENBRICK == "Really black" then | |
2214 | Shadowpuddle() | |
2215 | elseif CHOSENBRICK == "White" then | |
2216 | Oblivion() | |
2217 | return | |
2218 | end | |
2219 | end | |
2220 | ||
2221 | if Key == "x" and ATTACK == false then | |
2222 | if CHOSENBRICK == "Crimson" then | |
2223 | Delete:ClearAllChildren() | |
2224 | end | |
2225 | end | |
2226 | if Key == "c" and ATTACK == false then | |
2227 | if CHOSENBRICK == "Royal purple" then | |
2228 | CHOSENBRICK = "Earth green" | |
2229 | elseif CHOSENBRICK == "Earth green" then | |
2230 | CHOSENBRICK = "Crimson" | |
2231 | elseif CHOSENBRICK == "Crimson" then | |
2232 | CHOSENBRICK = "Carnation pink" | |
2233 | elseif CHOSENBRICK == "Carnation pink" then | |
2234 | CHOSENBRICK = "Really black" | |
2235 | elseif CHOSENBRICK == "Really black" then | |
2236 | CHOSENBRICK = "White" | |
2237 | elseif CHOSENBRICK == "White" then | |
2238 | CHOSENBRICK = "Royal purple" | |
2239 | end | |
2240 | end | |
2241 | ||
2242 | if Key == "t" and ATTACK == false then | |
2243 | Taunt() | |
2244 | end | |
2245 | if Key == "q" and ATTACK == false then | |
2246 | Dark_blade() | |
2247 | end | |
2248 | end | |
2249 | ||
2250 | function KeyUp(Key) | |
2251 | KEYHOLD = false | |
2252 | end | |
2253 | ||
2254 | Mouse.Button1Down:connect(function(NEWKEY) | |
2255 | MouseDown(NEWKEY) | |
2256 | end) | |
2257 | Mouse.Button1Up:connect(function(NEWKEY) | |
2258 | MouseUp(NEWKEY) | |
2259 | end) | |
2260 | Mouse.KeyDown:connect(function(NEWKEY) | |
2261 | KeyDown(NEWKEY) | |
2262 | end) | |
2263 | Mouse.KeyUp:connect(function(NEWKEY) | |
2264 | KeyUp(NEWKEY) | |
2265 | end) | |
2266 | ||
2267 | --//=================================\\ | |
2268 | --\\=================================// | |
2269 | ||
2270 | ||
2271 | function unanchor() | |
2272 | if UNANCHOR == true then | |
2273 | g = Character:GetChildren() | |
2274 | for i = 1, #g do | |
2275 | if g[i].ClassName == "Part" then | |
2276 | g[i].Anchored = false | |
2277 | end | |
2278 | end | |
2279 | end | |
2280 | end | |
2281 | ||
2282 | ||
2283 | --//=================================\\ | |
2284 | --|| WRAP THE WHOLE SCRIPT UP | |
2285 | --\\=================================// | |
2286 | Humanoid.Changed:connect(function(Jump) | |
2287 | if Jump == "Jump" and (Disable_Jump == true) then | |
2288 | Humanoid.Jump = false | |
2289 | end | |
2290 | end) | |
2291 | ||
2292 | while true do | |
2293 | Swait() | |
2294 | ANIMATE.Parent = nil | |
2295 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2296 | IDLEANIMATION:Play() | |
2297 | SINE = SINE + CHANGE | |
2298 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2299 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2300 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2301 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2302 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2303 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2304 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2305 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2306 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2307 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2308 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2309 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2310 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2311 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2312 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2313 | end | |
2314 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2315 | ANIM = "Jump" | |
2316 | if ATTACK == false then | |
2317 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2318 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2319 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2320 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2321 | 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) | |
2322 | 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) | |
2323 | end | |
2324 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2325 | ANIM = "Fall" | |
2326 | if ATTACK == false then | |
2327 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2328 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2329 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2330 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2331 | 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) | |
2332 | 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) | |
2333 | end | |
2334 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2335 | ANIM = "Idle" | |
2336 | if ATTACK == false then | |
2337 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2338 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2339 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2340 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2341 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2342 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2343 | end | |
2344 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2345 | ANIM = "Walk" | |
2346 | WALK = WALK + 1 / Animation_Speed | |
2347 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
2348 | WALK = 0 | |
2349 | if WALKINGANIM == true then | |
2350 | WALKINGANIM = false | |
2351 | elseif WALKINGANIM == false then | |
2352 | WALKINGANIM = true | |
2353 | end | |
2354 | end | |
2355 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2356 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2357 | if ATTACK == false then | |
2358 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.25, -0.25 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(22.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2359 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2360 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2361 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(22.5), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2362 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2363 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2364 | end | |
2365 | end | |
2366 | unanchor() | |
2367 | Humanoid.MaxHealth = "inf" | |
2368 | Humanoid.Health = "inf" | |
2369 | if Rooted == false then | |
2370 | Disable_Jump = false | |
2371 | Humanoid.WalkSpeed = Speed | |
2372 | elseif Rooted == true then | |
2373 | Disable_Jump = true | |
2374 | Humanoid.WalkSpeed = 0 | |
2375 | end | |
2376 | sick.Parent = Character | |
2377 | ||
2378 | if Head:FindFirstChild("face") and ATTACK == false then | |
2379 | Head.face.Texture = "rbxassetid://1297067294" | |
2380 | end | |
2381 | for _, c in pairs(Weapon:GetChildren()) do | |
2382 | if c.Name == "Eon" then | |
2383 | c.BrickColor = BRICKC(CHOSENBRICK) | |
2384 | end | |
2385 | end | |
2386 | SKILL1TEXT.TextColor3 = BRICKC(CHOSENBRICK).Color | |
2387 | SKILL2TEXT.TextColor3 = BRICKC(CHOSENBRICK).Color | |
2388 | if CHOSENBRICK == "Royal purple" then | |
2389 | SKILL1TEXT.Text = "[Z] Void Chain" | |
2390 | SKILL2TEXT.Text = "[V] Mega Chain" | |
2391 | sick.SoundId = "rbxassetid://1369353534" | |
2392 | elseif CHOSENBRICK == "Earth green" then | |
2393 | SKILL1TEXT.Text = "[Z] Power Outburst" | |
2394 | SKILL2TEXT.Text = "[V] Radioactive Sludge" | |
2395 | sick.SoundId = "rbxassetid://968287483" | |
2396 | elseif CHOSENBRICK == "Crimson" then | |
2397 | SKILL1TEXT.Text = "[Z] Limited Banish" | |
2398 | SKILL2TEXT.Text = "[V] Banish Teleport" | |
2399 | sick.SoundId = "rbxassetid://1140442110" | |
2400 | elseif CHOSENBRICK == "Carnation pink" then | |
2401 | SKILL1TEXT.Text = "[Z] Loving Kizzu" | |
2402 | SKILL2TEXT.Text = "[V] Heart Friend" | |
2403 | sick.SoundId = "rbxassetid://1131624146" | |
2404 | elseif CHOSENBRICK == "Really black" then | |
2405 | SKILL1TEXT.Text = "[Z] Dark Blades" | |
2406 | SKILL2TEXT.Text = "[V] Black Hole Puddle" | |
2407 | sick.SoundId = "rbxassetid://342929664" | |
2408 | elseif CHOSENBRICK == "White" then | |
2409 | SKILL1TEXT.Text = "[Z] Light Array" | |
2410 | SKILL2TEXT.Text = "[V] Oblivion" | |
2411 | sick.SoundId = "rbxassetid://395351949" | |
2412 | end | |
2413 | end | |
2414 | ||
2415 | --//=================================\\ | |
2416 | --\\=================================// | |
2417 | ||
2418 | ||
2419 | ||
2420 | ||
2421 | ||
2422 | --//====================================================\\-- | |
2423 | --|| END OF SCRIPT | |
2424 | --\\====================================================//-- |