SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ||
7 | wait(0.2) | |
8 | ||
9 | ||
10 | ||
11 | Player = game:GetService("Players").LocalPlayer | |
12 | PlayerGui = Player.PlayerGui | |
13 | Cam = workspace.CurrentCamera | |
14 | Backpack = Player.Backpack | |
15 | Character = Player.Character | |
16 | Humanoid = Character.Humanoid | |
17 | Mouse = Player:GetMouse() | |
18 | RootPart = Character["HumanoidRootPart"] | |
19 | Torso = Character["Torso"] | |
20 | Head = Character["Head"] | |
21 | RightArm = Character["Right Arm"] | |
22 | LeftArm = Character["Left Arm"] | |
23 | RightLeg = Character["Right Leg"] | |
24 | LeftLeg = Character["Left Leg"] | |
25 | RootJoint = RootPart["RootJoint"] | |
26 | Neck = Torso["Neck"] | |
27 | RightShoulder = Torso["Right Shoulder"] | |
28 | LeftShoulder = Torso["Left Shoulder"] | |
29 | RightHip = Torso["Right Hip"] | |
30 | LeftHip = Torso["Left Hip"] | |
31 | local sick = Instance.new("Sound",Character) | |
32 | sick.SoundId = "rbxassetid://342929664" | |
33 | sick.Looped = true | |
34 | sick.Pitch = 1 | |
35 | sick.Volume = 1 | |
36 | sick:Play() | |
37 | Humanoid.DisplayDistanceType = "None" | |
38 | ||
39 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
40 | local NEWMESH = IT(MESH) | |
41 | - | local naeeym2 = Instance.new("BillboardGui",Character) |
41 | + | |
42 | - | naeeym2.AlwaysOnTop = true |
42 | + | |
43 | - | naeeym2.Size = UDim2.new(5,35,2,35) |
43 | + | |
44 | - | naeeym2.StudsOffset = Vector3.new(0,1,0) |
44 | + | |
45 | - | naeeym2.Adornee = Character.Head |
45 | + | |
46 | - | naeeym2.Name = "Name" |
46 | + | |
47 | - | naeeym2.PlayerToHideFrom = Player |
47 | + | |
48 | - | local tecks2 = Instance.new("TextLabel",naeeym2) |
48 | + | |
49 | - | tecks2.BackgroundTransparency = 1 |
49 | + | |
50 | - | tecks2.TextScaled = true |
50 | + | |
51 | - | tecks2.BorderSizePixel = 0 |
51 | + | |
52 | - | tecks2.Text = "Duosis" |
52 | + | |
53 | - | tecks2.Font = "SciFi" |
53 | + | |
54 | - | tecks2.TextSize = 30 |
54 | + | |
55 | - | tecks2.TextStrokeTransparency = 0 |
55 | + | |
56 | - | tecks2.TextColor3 = Color3.new(0,0,0) |
56 | + | |
57 | - | tecks2.TextStrokeColor3 = Color3.new(1,1,1) |
57 | + | |
58 | - | tecks2.Size = UDim2.new(1,0,0.5,0) |
58 | + | |
59 | - | tecks2.Parent = naeeym2 |
59 | + | |
60 | NEWPART.Transparency = TRANSPARENCY | |
61 | - | IT = Instance.new |
61 | + | |
62 | - | CF = CFrame.new |
62 | + | |
63 | - | VT = Vector3.new |
63 | + | |
64 | - | RAD = math.rad |
64 | + | |
65 | - | C3 = Color3.new |
65 | + | |
66 | - | UD2 = UDim2.new |
66 | + | |
67 | - | BRICKC = BrickColor.new |
67 | + | |
68 | - | ANGLES = CFrame.Angles |
68 | + | |
69 | - | EULER = CFrame.fromEulerAnglesXYZ |
69 | + | |
70 | - | COS = math.cos |
70 | + | |
71 | - | ACOS = math.acos |
71 | + | |
72 | - | SIN = math.sin |
72 | + | |
73 | - | ASIN = math.asin |
73 | + | |
74 | - | ABS = math.abs |
74 | + | |
75 | - | MRANDOM = math.random |
75 | + | |
76 | - | FLOOR = math.floor |
76 | + | |
77 | --//=================================\\ | |
78 | --|| CUSTOMIZATION | |
79 | --\\=================================// | |
80 | ||
81 | Player_Size = 1 --Size of the player. | |
82 | Animation_Speed = 3 | |
83 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
84 | ||
85 | local Speed = 16 | |
86 | local Effects2 = {} | |
87 | ||
88 | --//=================================\\ | |
89 | --|| END OF CUSTOMIZATION | |
90 | --\\=================================// | |
91 | ||
92 | local function weldBetween(a, b) | |
93 | local weldd = Instance.new("ManualWeld") | |
94 | weldd.Part0 = a | |
95 | weldd.Part1 = b | |
96 | weldd.C0 = CFrame.new() | |
97 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
98 | weldd.Parent = a | |
99 | return weldd | |
100 | end | |
101 | ||
102 | --//=================================\\ | |
103 | --|| USEFUL VALUES | |
104 | --\\=================================// | |
105 | ||
106 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
107 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
108 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
109 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
110 | local CHANGEDEFENSE = 0 | |
111 | local CHANGEDAMAGE = 0 | |
112 | local CHANGEMOVEMENT = 0 | |
113 | local ANIM = "Idle" | |
114 | local ATTACK = false | |
115 | local EQUIPPED = false | |
116 | local HOLD = false | |
117 | local COMBO = 1 | |
118 | local Rooted = false | |
119 | local SINE = 0 | |
120 | local KEYHOLD = false | |
121 | local CHANGE = 2 / Animation_Speed | |
122 | local WALKINGANIM = false | |
123 | local WALK = 0 | |
124 | local VALUE1 = false | |
125 | local VALUE2 = false | |
126 | local ROBLOXIDLEANIMATION = IT("Animation") | |
127 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
128 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
129 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
130 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
131 | WEAPONGUI.Name = "Weapon GUI" | |
132 | local Weapon = IT("Model") | |
133 | Weapon.Name = "Adds" | |
134 | local Effects = IT("Folder", Weapon) | |
135 | Effects.Name = "Effects" | |
136 | local ANIMATOR = Humanoid.Animator | |
137 | local ANIMATE = Character.Animate | |
138 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
139 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
140 | local LIGHTHITSOUNDS = {"1177780949","1177781153","1177784554"} | |
141 | - | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) |
141 | + | |
142 | - | local acs = Instance.new("Part") |
142 | + | |
143 | - | acs.CanCollide = false |
143 | + | |
144 | - | acs.Anchored = false |
144 | + | |
145 | - | acs.Size = Vector3.new(0,0,0) |
145 | + | |
146 | - | acs.CFrame = attachmentpart.CFrame |
146 | + | |
147 | - | acs.Parent = Character |
147 | + | |
148 | - | acs.BrickColor = color |
148 | + | |
149 | - | local meshs = Instance.new("SpecialMesh") |
149 | + | |
150 | - | meshs.MeshId = mesh |
150 | + | |
151 | - | meshs.TextureId = texture |
151 | + | |
152 | - | meshs.Parent = acs |
152 | + | |
153 | - | meshs.Scale = scale |
153 | + | |
154 | - | meshs.Offset = offset |
154 | + | |
155 | - | weldBetween(attachmentpart,acs) |
155 | + | |
156 | ||
157 | script:WaitForChild("ArtificialHB") | |
158 | - | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) |
158 | + | |
159 | - | if TYPE == "Gem" then |
159 | + | |
160 | - | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) |
160 | + | |
161 | - | acs.Anchored = false |
161 | + | |
162 | - | acs.CanCollide = false |
162 | + | |
163 | - | acs.CFrame = PART.CFrame |
163 | + | |
164 | - | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) |
164 | + | |
165 | - | weldBetween(PART,acs) |
165 | + | |
166 | - | elseif TYPE == "Skull" then |
166 | + | |
167 | - | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) |
167 | + | |
168 | - | acs.Anchored = false |
168 | + | |
169 | - | acs.CanCollide = false |
169 | + | |
170 | - | acs.CFrame = PART.CFrame |
170 | + | |
171 | - | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) |
171 | + | |
172 | - | weldBetween(PART,acs) |
172 | + | |
173 | - | elseif TYPE == "Eye" then |
173 | + | |
174 | - | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) |
174 | + | |
175 | - | acs.Anchored = false |
175 | + | |
176 | - | acs.CanCollide = false |
176 | + | |
177 | - | acs.CFrame = PART.CFrame |
177 | + | |
178 | - | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) |
178 | + | |
179 | - | weldBetween(PART,acs) |
179 | + | |
180 | else | |
181 | tf = tf - frame * math.floor(tf / frame) | |
182 | end | |
183 | end | |
184 | end) | |
185 | ||
186 | --//=================================\\ | |
187 | --\\=================================// | |
188 | ||
189 | ||
190 | ||
191 | ||
192 | ||
193 | --//=================================\\ | |
194 | --|| SOME FUNCTIONS | |
195 | --\\=================================// | |
196 | ||
197 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
198 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
199 | end | |
200 | ||
201 | function PositiveAngle(NUMBER) | |
202 | if NUMBER >= 0 then | |
203 | NUMBER = 0 | |
204 | end | |
205 | return NUMBER | |
206 | end | |
207 | ||
208 | function NegativeAngle(NUMBER) | |
209 | if NUMBER <= 0 then | |
210 | NUMBER = 0 | |
211 | end | |
212 | return NUMBER | |
213 | end | |
214 | ||
215 | function Swait(NUMBER) | |
216 | if NUMBER == 0 or NUMBER == nil then | |
217 | ArtificialHB.Event:wait() | |
218 | else | |
219 | for i = 1, NUMBER do | |
220 | ArtificialHB.Event:wait() | |
221 | end | |
222 | end | |
223 | end | |
224 | ||
225 | function QuaternionFromCFrame(cf) | |
226 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
227 | local trace = m00 + m11 + m22 | |
228 | if trace > 0 then | |
229 | local s = math.sqrt(1 + trace) | |
230 | local recip = 0.5 / s | |
231 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
232 | else | |
233 | local i = 0 | |
234 | if m11 > m00 then | |
235 | i = 1 | |
236 | end | |
237 | if m22 > (i == 0 and m00 or m11) then | |
238 | i = 2 | |
239 | end | |
240 | if i == 0 then | |
241 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
242 | local recip = 0.5 / s | |
243 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
244 | elseif i == 1 then | |
245 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
246 | local recip = 0.5 / s | |
247 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
248 | elseif i == 2 then | |
249 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
250 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
251 | end | |
252 | end | |
253 | end | |
254 | ||
255 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
256 | local xs, ys, zs = x + x, y + y, z + z | |
257 | local wx, wy, wz = w * xs, w * ys, w * zs | |
258 | local xx = x * xs | |
259 | local xy = x * ys | |
260 | local xz = x * zs | |
261 | local yy = y * ys | |
262 | local yz = y * zs | |
263 | local zz = z * zs | |
264 | 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)) | |
265 | end | |
266 | ||
267 | function QuaternionSlerp(a, b, t) | |
268 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
269 | local startInterp, finishInterp; | |
270 | if cosTheta >= 0.0001 then | |
271 | if (1 - cosTheta) > 0.0001 then | |
272 | local theta = ACOS(cosTheta) | |
273 | local invSinTheta = 1 / SIN(theta) | |
274 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
275 | finishInterp = SIN(t * theta) * invSinTheta | |
276 | else | |
277 | startInterp = 1 - t | |
278 | finishInterp = t | |
279 | end | |
280 | else | |
281 | if (1 + cosTheta) > 0.0001 then | |
282 | local theta = ACOS(-cosTheta) | |
283 | local invSinTheta = 1 / SIN(theta) | |
284 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
285 | finishInterp = SIN(t * theta) * invSinTheta | |
286 | else | |
287 | startInterp = t - 1 | |
288 | finishInterp = t | |
289 | end | |
290 | end | |
291 | 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 | |
292 | end | |
293 | ||
294 | function Clerp(a, b, t) | |
295 | local qa = {QuaternionFromCFrame(a)} | |
296 | local qb = {QuaternionFromCFrame(b)} | |
297 | local ax, ay, az = a.x, a.y, a.z | |
298 | local bx, by, bz = b.x, b.y, b.z | |
299 | local _t = 1 - t | |
300 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
301 | end | |
302 | ||
303 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
304 | local frame = IT("Frame") | |
305 | frame.BackgroundTransparency = TRANSPARENCY | |
306 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
307 | frame.Position = POSITION | |
308 | frame.Size = SIZE | |
309 | frame.BackgroundColor3 = COLOR | |
310 | frame.BorderColor3 = BORDERCOLOR | |
311 | frame.Name = NAME | |
312 | frame.Parent = PARENT | |
313 | return frame | |
314 | end | |
315 | ||
316 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
317 | local label = IT("TextLabel") | |
318 | label.BackgroundTransparency = 1 | |
319 | label.Size = UD2(1, 0, 1, 0) | |
320 | label.Position = UD2(0, 0, 0, 0) | |
321 | label.TextColor3 = TEXTCOLOR | |
322 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
323 | label.TextTransparency = TRANSPARENCY | |
324 | label.FontSize = TEXTFONTSIZE | |
325 | label.Font = TEXTFONT | |
326 | label.BorderSizePixel = BORDERSIZEPIXEL | |
327 | label.TextScaled = false | |
328 | label.Text = TEXT | |
329 | label.Name = NAME | |
330 | label.Parent = PARENT | |
331 | return label | |
332 | end | |
333 | ||
334 | function NoOutlines(PART) | |
335 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
336 | end | |
337 | ||
338 | ||
339 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
340 | local NEWWELD = IT(TYPE) | |
341 | NEWWELD.Part0 = PART0 | |
342 | NEWWELD.Part1 = PART1 | |
343 | NEWWELD.C0 = C0 | |
344 | NEWWELD.C1 = C1 | |
345 | NEWWELD.Parent = PARENT | |
346 | return NEWWELD | |
347 | end | |
348 | ||
349 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
350 | local NEWSOUND = nil | |
351 | coroutine.resume(coroutine.create(function() | |
352 | NEWSOUND = IT("Sound", PARENT) | |
353 | NEWSOUND.Volume = VOLUME | |
354 | NEWSOUND.Pitch = PITCH | |
355 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
356 | Swait() | |
357 | NEWSOUND:play() | |
358 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
359 | end)) | |
360 | return NEWSOUND | |
361 | end | |
362 | ||
363 | function CFrameFromTopBack(at, top, back) | |
364 | local right = top:Cross(back) | |
365 | 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) | |
366 | end | |
367 | ||
368 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
369 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
370 | local mesh = IT("SpecialMesh",wave) | |
371 | mesh.MeshType = "FileMesh" | |
372 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
373 | mesh.Scale = SIZE | |
374 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
375 | wave.CFrame = CFRAME | |
376 | coroutine.resume(coroutine.create(function(PART) | |
377 | for i = 1, WAIT do | |
378 | Swait() | |
379 | mesh.Scale = mesh.Scale + GROW | |
380 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
381 | if DOESROT == true then | |
382 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
383 | end | |
384 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
385 | if wave.Transparency > 0.99 then | |
386 | wave:remove() | |
387 | end | |
388 | end | |
389 | end)) | |
390 | end | |
391 | ||
392 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW,MATERIAL) | |
393 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
394 | local mesh = IT("SpecialMesh",wave) | |
395 | mesh.MeshType = "Sphere" | |
396 | mesh.Scale = SIZE | |
397 | mesh.Offset = VT(0,0,0) | |
398 | wave.CFrame = CFRAME | |
399 | coroutine.resume(coroutine.create(function(PART) | |
400 | for i = 1, WAIT do | |
401 | Swait() | |
402 | mesh.Scale = mesh.Scale + GROW | |
403 | wave.Transparency = wave.Transparency + (1/WAIT) | |
404 | if wave.Transparency > 0.99 then | |
405 | wave:remove() | |
406 | end | |
407 | end | |
408 | end)) | |
409 | end | |
410 | ||
411 | function MakeForm(PART,TYPE) | |
412 | if TYPE == "Cyl" then | |
413 | local MSH = IT("CylinderMesh",PART) | |
414 | elseif TYPE == "Ball" then | |
415 | local MSH = IT("SpecialMesh",PART) | |
416 | MSH.MeshType = "Sphere" | |
417 | elseif TYPE == "Wedge" then | |
418 | local MSH = IT("SpecialMesh",PART) | |
419 | MSH.MeshType = "Wedge" | |
420 | elseif TYPE == "Head" then | |
421 | local MSH = IT("SpecialMesh",PART) | |
422 | MSH.Scale = VT(1.25,1.25,1.25) | |
423 | end | |
424 | end | |
425 | ||
426 | function CheckTableForString(Table, String) | |
427 | for i, v in pairs(Table) do | |
428 | if string.find(string.lower(String), string.lower(v)) then | |
429 | return true | |
430 | end | |
431 | end | |
432 | return false | |
433 | end | |
434 | ||
435 | function CheckIntangible(Hit) | |
436 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
437 | if Hit and Hit.Parent then | |
438 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
439 | return true | |
440 | end | |
441 | end | |
442 | return false | |
443 | end | |
444 | ||
445 | Debris = game:GetService("Debris") | |
446 | ||
447 | function CreateGUICircle(TARGET) | |
448 | local GUI = Instance.new("BillboardGui",Character) | |
449 | GUI.Size = UDim2.new(15,0,15,0) | |
450 | GUI.Adornee = TARGET | |
451 | local GUI2 = IT("ImageLabel",GUI) | |
452 | GUI2.BackgroundTransparency = 1 | |
453 | GUI2.BorderSizePixel = 0 | |
454 | GUI2.Size = UDim2.new(1,0,0,0) | |
455 | GUI2.Position = UDim2.new(0,0,0.5,0) | |
456 | GUI2.SizeConstraint = "RelativeYY" | |
457 | GUI.AlwaysOnTop = true | |
458 | GUI2.Image = "http://www.roblox.com/asset/?id=74329608" | |
459 | return GUI,GUI2 | |
460 | end | |
461 | ||
462 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
463 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
464 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
465 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
466 | if RayHit and CheckIntangible(RayHit) then | |
467 | if DelayIfHit then | |
468 | wait() | |
469 | end | |
470 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
471 | end | |
472 | return RayHit, RayPos, RayNormal | |
473 | end | |
474 | ||
475 | function turnto(position) | |
476 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
477 | end | |
478 | ||
479 | --//=================================\\ | |
480 | --|| WEAPON CREATION | |
481 | --\\=================================// | |
482 | ||
483 | local face = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(0.501,1.001,1.001),false) | |
484 | local weld = CreateWeldOrSnapOrMotor("Weld", face, Head, face, CF(0.25,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
485 | local body = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(1.001,2.001,1.001),false) | |
486 | local weld = CreateWeldOrSnapOrMotor("Weld", body, Torso, body, CF(0.5,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
487 | local body = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(1.001,2.001,1.001),false) | |
488 | local weld = CreateWeldOrSnapOrMotor("Weld", body, RightArm, body, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
489 | local body = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Black side", VT(1.001,2.001,1.001),false) | |
490 | local weld = CreateWeldOrSnapOrMotor("Weld", body, RightLeg, body, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
491 | ||
492 | ||
493 | for _, c in pairs(Weapon:GetChildren()) do | |
494 | if c.ClassName == "Part" then | |
495 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
496 | end | |
497 | end | |
498 | ||
499 | Weapon.Parent = Character | |
500 | ||
501 | Humanoid.Died:connect(function() | |
502 | ATTACK = true | |
503 | end) | |
504 | ||
505 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
506 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
507 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
508 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
509 | --local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
510 | ||
511 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Light array", C3(1,1,1), 6, "Fantasy", 0, 2, 1, "Text 1") | |
512 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Shadow field", C3(0,0,0), 7, "Antique", 0, 2, 1, "Text 2") | |
513 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Oblivion", C3(1,1,1), 6, "Fantasy", 0, 2, 1, "Text 3") | |
514 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Shadow eye", C3(0,0,0), 7, "Antique", 0, 2, 1, "Text 4") | |
515 | --local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Ability 5", C3(), 6, "Legacy", 0, 2, 1, "Text 5") | |
516 | ||
517 | --//=================================\\ | |
518 | --|| DAMAGE FUNCTIONS | |
519 | --\\=================================// | |
520 | ||
521 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
522 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
523 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
524 | local BODYGYRO = IT("BodyGyro", STATPART) | |
525 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
526 | BODYPOSITION.P = 2000 | |
527 | BODYPOSITION.D = 100 | |
528 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
529 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
530 | game:GetService("Debris"):AddItem(STATPART ,5) | |
531 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
532 | BILLBOARDGUI.Adornee = STATPART | |
533 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
534 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
535 | BILLBOARDGUI.AlwaysOnTop = true | |
536 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
537 | TEXTLABEL.BackgroundTransparency = 1 | |
538 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
539 | TEXTLABEL.Text = TEXT | |
540 | TEXTLABEL.Font = "SciFi" | |
541 | TEXTLABEL.FontSize="Size42" | |
542 | TEXTLABEL.TextColor3 = COLOR | |
543 | TEXTLABEL.TextStrokeTransparency = 1 | |
544 | TEXTLABEL.TextScaled = true | |
545 | TEXTLABEL.TextWrapped = true | |
546 | Debris:AddItem(STATPART,10) | |
547 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
548 | if LABELTYPE == "Normal" then | |
549 | for i = 1, 10 do | |
550 | wait() | |
551 | STATPART.Position = STATPART.Position + VT(0, (5-i)/10 ,0) | |
552 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10) | |
553 | end | |
554 | elseif LABELTYPE == "Debuff" then | |
555 | for i = 1, 10 do | |
556 | wait() | |
557 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
558 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10) | |
559 | end | |
560 | elseif LABELTYPE == "Shock" then | |
561 | local ORIGIN = STATPART.Position | |
562 | for i = 1, 10 do | |
563 | wait() | |
564 | STATPART.Position = ORIGIN + VT(MRANDOM(-1,1),MRANDOM(-1,1),MRANDOM(-1,1)) | |
565 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/10) | |
566 | end | |
567 | end | |
568 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
569 | end | |
570 | ||
571 | --//=================================\\ | |
572 | --|| DAMAGING | |
573 | --\\=================================// | |
574 | ||
575 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
576 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
577 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
578 | local dmg = math.random(min,max) | |
579 | if humanoid.Health > 0 then | |
580 | if beserk == true then | |
581 | humanoid.Health = 0 | |
582 | else | |
583 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
584 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
585 | if math.random(1,100) < critrate+1 then | |
586 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
587 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
588 | else | |
589 | humanoid.Health = humanoid.Health - dmg | |
590 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
591 | end | |
592 | local defence = Instance.new("BoolValue",hit.Parent) | |
593 | defence.Name = ("HitBy"..Player.Name) | |
594 | game:GetService("Debris"):AddItem(defence, 0.5) | |
595 | end | |
596 | end | |
597 | end | |
598 | end | |
599 | ||
600 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,doespoison) | |
601 | local dmg = math.random(min,max) | |
602 | for i,v in ipairs(workspace:GetChildren()) do | |
603 | if v:FindFirstChild("HitBy"..Player.Name) == nil and v ~= Character then | |
604 | local body = v:GetChildren() | |
605 | for part = 1, #body do | |
606 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
607 | if(body[part].Position - position).Magnitude < radius then | |
608 | if v.ClassName == "Model" then | |
609 | if v:FindFirstChildOfClass("Humanoid") then | |
610 | if v.Humanoid.Health ~= 0 then | |
611 | if CanBeDodgedByJumping == true then | |
612 | if body[part].Position.Y < position.Y+5 then | |
613 | if math.random(1,100) < critrate+1 then | |
614 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg*critmultiplier | |
615 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
616 | else | |
617 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg | |
618 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
619 | end | |
620 | local defence = Instance.new("BoolValue",v) | |
621 | defence.Name = ("HitBy"..Player.Name) | |
622 | game:GetService("Debris"):AddItem(defence, 0.005) | |
623 | end | |
624 | else | |
625 | if beserk == true then | |
626 | v.Humanoid.Health = 0 | |
627 | end | |
628 | if math.random(1,100) < critrate+1 then | |
629 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg*critmultiplier | |
630 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
631 | else | |
632 | v:FindFirstChildOfClass("Humanoid").Health = v:FindFirstChildOfClass("Humanoid").Health - dmg | |
633 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
634 | end | |
635 | local defence = Instance.new("BoolValue",v) | |
636 | defence.Name = ("HitBy"..Player.Name) | |
637 | game:GetService("Debris"):AddItem(defence, 0.005) | |
638 | end | |
639 | end | |
640 | end | |
641 | end | |
642 | if doespoison == true and v:FindFirstChildOfClass("Humanoid") then | |
643 | Poison(v:FindFirstChildOfClass("Humanoid"),MRANDOM(5,15)*2,MRANDOM(4,7)) | |
644 | end | |
645 | if maxstrength < 0 then | |
646 | local bv = Instance.new("BodyVelocity") | |
647 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
648 | bv.velocity = CF(position,body[part].Position).lookVector*maxstrength | |
649 | bv.Parent = body[part] | |
650 | bv.Name = "PROJECTILEVELOCITY" | |
651 | Debris:AddItem(bv,0.2) | |
652 | else | |
653 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
654 | end | |
655 | end | |
656 | end | |
657 | end | |
658 | end | |
659 | end | |
660 | end | |
661 | ||
662 | function AoEStun(POS,RANGE,LAST) | |
663 | for i,v in ipairs(workspace:GetChildren()) do | |
664 | if v:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
665 | local body = v:GetChildren() | |
666 | for part = 1, #body do | |
667 | if(v:FindFirstChild("StunnedBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
668 | if(body[part].Position - POS).Magnitude < RANGE then | |
669 | if v.ClassName == "Model" then | |
670 | if v:FindFirstChild("Humanoid") then | |
671 | if v.Humanoid.Health ~= 0 then | |
672 | Stun(v.Humanoid,LAST) | |
673 | local defence = Instance.new("BoolValue",v) | |
674 | defence.Name = ("StunnedBy"..Player.Name) | |
675 | game:GetService("Debris"):AddItem(defence, 0.1) | |
676 | end | |
677 | end | |
678 | end | |
679 | end | |
680 | end | |
681 | end | |
682 | end | |
683 | end | |
684 | end | |
685 | ||
686 | function Stun(HUMANOID,LAST) | |
687 | if HUMANOID.Parent:FindFirstChild("StunnedBy"..Player.Name) == nil then | |
688 | HUMANOID.PlatformStand = true | |
689 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
690 | defence.Name = ("StunnedBy"..Player.Name) | |
691 | game:GetService("Debris"):AddItem(defence, LAST) | |
692 | if HUMANOID.Parent:FindFirstChild("Head") then | |
693 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0 + (HUMANOID.Parent.Head.Size.z - 1), 0), "Stunned!", C3(0.3, 0.3, 0.3)) | |
694 | end | |
695 | coroutine.resume(coroutine.create(function() | |
696 | Swait(LAST*50) | |
697 | HUMANOID.PlatformStand = false | |
698 | end)) | |
699 | end | |
700 | end | |
701 | ||
702 | function Poison(HUMANOID,LAST,DAMAGE) | |
703 | if HUMANOID.Parent:FindFirstChild("PoisonedBy"..Player.Name) == nil then | |
704 | local defence = Instance.new("BoolValue",HUMANOID.Parent) | |
705 | defence.Name = ("PoisonedBy"..Player.Name) | |
706 | game:GetService("Debris"):AddItem(defence, LAST) | |
707 | coroutine.resume(coroutine.create(function() | |
708 | for i = 1, LAST/2 do | |
709 | if HUMANOID then | |
710 | if HUMANOID.Health == 0 then | |
711 | break | |
712 | end | |
713 | if HUMANOID.Parent:FindFirstChild("Head") then | |
714 | StatLabel("Normal", HUMANOID.Parent.Head.CFrame * CF(0, 0, 0), DAMAGE, C3(1,1,1)) | |
715 | end | |
716 | Swait(50) | |
717 | HUMANOID.Health = HUMANOID.Health - DAMAGE | |
718 | end | |
719 | end | |
720 | end)) | |
721 | end | |
722 | end | |
723 | ||
724 | function killnearest(position,range,maxstrength) | |
725 | for i,v in ipairs(workspace:GetChildren()) do | |
726 | local body = v:GetChildren() | |
727 | for part = 1, #body do | |
728 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
729 | if(body[part].Position - position).Magnitude < range then | |
730 | if v.ClassName == "Model" then | |
731 | v:BreakJoints() | |
732 | end | |
733 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
734 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
735 | end | |
736 | end | |
737 | end | |
738 | if v.ClassName == "Part" then | |
739 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
740 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
741 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
742 | end | |
743 | end | |
744 | end | |
745 | end | |
746 | ||
747 | --//=================================\\ | |
748 | --|| ATTACK FUNCTIONS AND STUFF | |
749 | --\\=================================// | |
750 | ||
751 | function AttackTemplate() | |
752 | ATTACK = true | |
753 | Rooted = false | |
754 | for i=0, 1, 0.1 / Animation_Speed do | |
755 | Swait() | |
756 | 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) | |
757 | 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) | |
758 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
759 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
760 | 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) | |
761 | 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) | |
762 | end | |
763 | ATTACK = false | |
764 | Rooted = false | |
765 | end | |
766 | ||
767 | function clerp(a, b, t) | |
768 | return a:lerp(b, t) | |
769 | end | |
770 | ||
771 | function newBezier(startpos, pos2, pos3, endpos, t) | |
772 | local A = clerp(startpos, pos2, t) | |
773 | local B = clerp(pos2, pos3, t) | |
774 | local C = clerp(pos3, endpos, t) | |
775 | local lerp1 = clerp(A, B, t) | |
776 | local lerp2 = clerp(B, C, t) | |
777 | local cubic = clerp(lerp1, lerp2, t) | |
778 | return cubic | |
779 | end | |
780 | ||
781 | function Mortar(Target) | |
782 | local newball = Instance.new("Part", workspace) | |
783 | newball.Anchored = true | |
784 | newball.Shape = "Ball" | |
785 | newball.Material = "Neon" | |
786 | newball.Size = Vector3.new(0,0,0) | |
787 | newball.CanCollide = false | |
788 | newball.CFrame = CF(Target) | |
789 | newball.Color = C3(1,1,1) | |
790 | newball.Transparency = 1 | |
791 | local POS = Mouse.Hit.p | |
792 | local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
793 | local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
794 | local A1 = IT("Attachment",newball) | |
795 | A1.Position = Vector3.new(0, 2.5, 0) | |
796 | local A2 = IT("Attachment",newball) | |
797 | A2.Position = Vector3.new(0, -2.5, 0) | |
798 | local Trail = IT("Trail",newball) | |
799 | Trail.LightEmission = 1 | |
800 | Trail.FaceCamera = true | |
801 | Trail.Texture = "rbxassetid://945758042" | |
802 | Trail.Attachment0 = A1 | |
803 | Trail.Attachment1 = A2 | |
804 | Trail.Lifetime = 1 | |
805 | Trail.MinLength = 0 | |
806 | Trail.Transparency = NumberSequence.new(0, 1) | |
807 | Trail.Color = ColorSequence.new(newball.Color) | |
808 | coroutine.resume(coroutine.create(function() | |
809 | for i = 0, 1, 0.07 do | |
810 | Swait() | |
811 | MagicSphere(VT(2,2,2),50,newball.CFrame,"Pearl",VT(-0.01,-0.01,-0.01)) | |
812 | newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i)) | |
813 | end | |
814 | AoEDamage(newball.Position,5,5,8,0,false,2,2,false,true) | |
815 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], newball, 10, 1) | |
816 | MagicSphere(VT(0,0,0),55,newball.CFrame,"Pearl",VT(0.06,0.5,0.06)) | |
817 | for i = 1, 10 do | |
818 | 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) | |
819 | end | |
820 | game:GetService("Debris"):AddItem(newball, 5) | |
821 | end)) | |
822 | end | |
823 | ||
824 | function LightArray() | |
825 | ATTACK = true | |
826 | Rooted = false | |
827 | for i=0, 1, 0.1 / Animation_Speed do | |
828 | Swait() | |
829 | turnto(Mouse.Hit.p) | |
830 | 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) | |
831 | 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) | |
832 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
833 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
834 | 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) | |
835 | 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) | |
836 | end | |
837 | local LOOP = 0 | |
838 | for i = 1, 30 do | |
839 | Swait() | |
840 | turnto(Mouse.Hit.p) | |
841 | LOOP = LOOP + 1 | |
842 | if LOOP == 10 then | |
843 | LOOP = 0 | |
844 | Mortar(LeftArm.CFrame*CF(0,-1,0).p) | |
845 | end | |
846 | end | |
847 | ATTACK = false | |
848 | Rooted = false | |
849 | end | |
850 | ||
851 | function ShadowField() | |
852 | ATTACK = true | |
853 | Rooted = true | |
854 | for i=0, 2, 0.1 / Animation_Speed do | |
855 | Swait() | |
856 | turnto(Mouse.Hit.p) | |
857 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.4 / Animation_Speed) | |
858 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(-75)), 0.2 / Animation_Speed) | |
859 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(140)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
860 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
861 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
862 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
863 | end | |
864 | for i=0, 0.5, 0.1 / Animation_Speed do | |
865 | Swait() | |
866 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
867 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(10)), 0.5 / Animation_Speed) | |
868 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
869 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(25), RAD(-25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
870 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
871 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
872 | end | |
873 | local Target = RightArm.CFrame*CF(0,-1,0).p | |
874 | local newball = Instance.new("Part", workspace) | |
875 | newball.Anchored = true | |
876 | newball.Shape = "Ball" | |
877 | newball.Material = "Neon" | |
878 | newball.Size = Vector3.new(0,0,0) | |
879 | newball.CanCollide = false | |
880 | newball.CFrame = CF(Target) | |
881 | newball.BrickColor = BRICKC"Really black" | |
882 | newball.Transparency = 1 | |
883 | local POS = Mouse.Hit.p | |
884 | local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
885 | local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
886 | local A1 = IT("Attachment",newball) | |
887 | A1.Position = Vector3.new(0, 2.5, 0) | |
888 | local A2 = IT("Attachment",newball) | |
889 | A2.Position = Vector3.new(0, -2.5, 0) | |
890 | local Trail = IT("Trail",newball) | |
891 | Trail.LightEmission = 0 | |
892 | Trail.FaceCamera = true | |
893 | Trail.Texture = "rbxassetid://945758042" | |
894 | Trail.Attachment0 = A1 | |
895 | Trail.Attachment1 = A2 | |
896 | Trail.Lifetime = 1 | |
897 | Trail.MinLength = 0 | |
898 | Trail.Transparency = NumberSequence.new(0, 1) | |
899 | Trail.Color = ColorSequence.new(C3(0,0,0)) | |
900 | for i = 0, 1, 0.07 do | |
901 | Swait() | |
902 | newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i)) | |
903 | end | |
904 | MagicSphere(VT(25,25,25),55,Torso.CFrame,"Really black",VT(-0.5,-0.5,-0.5)) | |
905 | UNANCHOR = false | |
906 | RootPart.Anchored = true | |
907 | RootPart.CFrame = CF(newball.Position,Mouse.Hit.p) | |
908 | for i=0, 0.5, 0.1 / Animation_Speed do | |
909 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
910 | 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) | |
911 | --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
912 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
913 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
914 | 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) | |
915 | 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) | |
916 | end | |
917 | CreateSound("1021477796", newball, 10, 0.6) | |
918 | for i = 1, 100 do | |
919 | Swait(5) | |
920 | MagicSphere(VT(75,75,75),15,newball.CFrame,"Really black",VT(-5,-5,-5)) | |
921 | MagicSphere(VT(5,5,85),15,CF(newball.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,newball.Position),"Really black",VT(-0.005,-0.005,0.03),0) | |
922 | AoEDamage(newball.Position,25,1,1,-15,false,2,2,false,false) | |
923 | end | |
924 | game:GetService("Debris"):AddItem(newball, 15) | |
925 | UNANCHOR = true | |
926 | ATTACK = false | |
927 | Rooted = false | |
928 | end | |
929 | ||
930 | function Oblivion() | |
931 | ATTACK = true | |
932 | Rooted = true | |
933 | for i=0, 2, 0.1 / Animation_Speed do | |
934 | Swait() | |
935 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
936 | 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) | |
937 | --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
938 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
939 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
940 | 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) | |
941 | 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) | |
942 | end | |
943 | for i=0, 0.5, 0.1 / Animation_Speed do | |
944 | Swait() | |
945 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
946 | 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) | |
947 | --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
948 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
949 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
950 | 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) | |
951 | 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) | |
952 | end | |
953 | for i = 1, 75 do | |
954 | Swait() | |
955 | 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) | |
956 | end | |
957 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
958 | CreateSound(LIGHTHITSOUNDS[MRANDOM(1,#LIGHTHITSOUNDS)], Torso, 10, 0.5) | |
959 | AoEDamage(Torso.Position,45,45,58,0,false,2,2,false,true) | |
960 | MagicSphere(VT(0,0,0),25,Torso.CFrame,"Pearl",VT(5,5,5)) | |
961 | MagicSphere(VT(0,0,0),50,Torso.CFrame,"Pearl",VT(2.5,2.5,2.5)) | |
962 | 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)) | |
963 | 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)) | |
964 | ATTACK = false | |
965 | Rooted = false | |
966 | end | |
967 | ||
968 | function ShadowEye() | |
969 | ATTACK = true | |
970 | Rooted = true | |
971 | for i=0, 2, 0.1 / Animation_Speed do | |
972 | Swait() | |
973 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
974 | 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) | |
975 | --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
976 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
977 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
978 | 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) | |
979 | 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) | |
980 | end | |
981 | for i=0, 0.5, 0.1 / Animation_Speed do | |
982 | Swait() | |
983 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
984 | 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) | |
985 | --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
986 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
987 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
988 | 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) | |
989 | 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) | |
990 | end | |
991 | local POS = CreatePart(3, Weapon, "Neon", 0, 1, "Really black", "Black side", VT(0,0,0)) | |
992 | POS.CFrame = CF(Mouse.Hit.p) | |
993 | local GUI,GUI2 = CreateGUICircle(Torso) | |
994 | local GUI3,GUI4 = CreateGUICircle(POS) | |
995 | CreateSound("1021477796", POS, 10, 0.6) | |
996 | for i = 1, 75 do | |
997 | Swait() | |
998 | GUI2.Size = UDim2.new(1,0,i/75,0) | |
999 | GUI2.Position = GUI2.Position - UDim2.new(0,0,0.5/75,0) | |
1000 | GUI4.Size = UDim2.new(1,0,i/75,0) | |
1001 | GUI4.Position = GUI4.Position - UDim2.new(0,0,0.5/75,0) | |
1002 | end | |
1003 | for i = 1, 90 do | |
1004 | Swait(5) | |
1005 | MagicSphere(VT(75,75,75),5,POS.CFrame,"Really black",VT(-15,-15,-15)) | |
1006 | AoEDamage(POS.Position,35,1,1,-15,false,0,2,false,false) | |
1007 | --MagicSphere(VT(0.5,0.5,15),50,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Really black",VT(-0.005,-0.005,0.03),0) | |
1008 | MagicSphere(VT(0.5,0.5,15),50,CF(POS.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,POS.Position),"Really black",VT(-0.005,-0.005,0.03),0) | |
1009 | end | |
1010 | for i = 1, 25 do | |
1011 | Swait() | |
1012 | GUI2.Size = UDim2.new(1,0,1-(i/25),0) | |
1013 | GUI2.Position = GUI2.Position + UDim2.new(0,0,0.5/25,0) | |
1014 | GUI4.Size = UDim2.new(1,0,1-(i/25),0) | |
1015 | GUI4.Position = GUI4.Position + UDim2.new(0,0,0.5/25,0) | |
1016 | end | |
1017 | GUI:remove() | |
1018 | GUI3:remove() | |
1019 | ATTACK = false | |
1020 | Rooted = false | |
1021 | end | |
1022 | ||
1023 | function Taunt() | |
1024 | ATTACK = true | |
1025 | Rooted = true | |
1026 | for i = 1, 3 do | |
1027 | for i=0, 0.7, 0.1 / Animation_Speed do | |
1028 | Swait() | |
1029 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
1030 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
1031 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5) | |
1032 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5) | |
1033 | 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.25 / Animation_Speed) | |
1034 | 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.25 / Animation_Speed) | |
1035 | end | |
1036 | for i=0, 0.7, 0.1 / Animation_Speed do | |
1037 | Swait() | |
1038 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
1039 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
1040 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(145)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.5) | |
1041 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-145)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 0.5) | |
1042 | 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.25 / Animation_Speed) | |
1043 | 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.25 / Animation_Speed) | |
1044 | end | |
1045 | end | |
1046 | ATTACK = false | |
1047 | Rooted = false | |
1048 | end | |
1049 | ||
1050 | --//=================================\\ | |
1051 | --|| ASSIGN THINGS TO KEYS | |
1052 | --\\=================================// | |
1053 | ||
1054 | function MouseDown(Mouse) | |
1055 | if ATTACK == false then | |
1056 | end | |
1057 | end | |
1058 | ||
1059 | function MouseUp(Mouse) | |
1060 | HOLD = false | |
1061 | end | |
1062 | ||
1063 | function KeyDown(Key) | |
1064 | KEYHOLD = true | |
1065 | if Key == "z" and ATTACK == false then | |
1066 | LightArray() | |
1067 | end | |
1068 | ||
1069 | if Key == "b" and ATTACK == false then | |
1070 | ShadowField() | |
1071 | end | |
1072 | ||
1073 | if Key == "c" and ATTACK == false then | |
1074 | Oblivion() | |
1075 | end | |
1076 | ||
1077 | if Key == "v" and ATTACK == false then | |
1078 | ShadowEye() | |
1079 | end | |
1080 | ||
1081 | if Key == "t" and ATTACK == false then | |
1082 | Taunt() | |
1083 | end | |
1084 | end | |
1085 | ||
1086 | function KeyUp(Key) | |
1087 | KEYHOLD = false | |
1088 | end | |
1089 | ||
1090 | Mouse.Button1Down:connect(function(NEWKEY) | |
1091 | MouseDown(NEWKEY) | |
1092 | end) | |
1093 | Mouse.Button1Up:connect(function(NEWKEY) | |
1094 | MouseUp(NEWKEY) | |
1095 | end) | |
1096 | Mouse.KeyDown:connect(function(NEWKEY) | |
1097 | KeyDown(NEWKEY) | |
1098 | end) | |
1099 | Mouse.KeyUp:connect(function(NEWKEY) | |
1100 | KeyUp(NEWKEY) | |
1101 | end) | |
1102 | ||
1103 | --//=================================\\ | |
1104 | --\\=================================// | |
1105 | ||
1106 | ||
1107 | function unanchor() | |
1108 | if UNANCHOR == true then | |
1109 | g = Character:GetChildren() | |
1110 | for i = 1, #g do | |
1111 | if g[i].ClassName == "Part" then | |
1112 | g[i].Anchored = false | |
1113 | end | |
1114 | end | |
1115 | end | |
1116 | end | |
1117 | ||
1118 | ||
1119 | --//=================================\\ | |
1120 | --|| WRAP THE WHOLE SCRIPT UP | |
1121 | --\\=================================// | |
1122 | ||
1123 | Humanoid.Changed:connect(function(Jump) | |
1124 | if Jump == "Jump" and (Disable_Jump == true) then | |
1125 | Humanoid.Jump = false | |
1126 | end | |
1127 | end) | |
1128 | ||
1129 | Speed = 65 | |
1130 | ||
1131 | while true do | |
1132 | Swait() | |
1133 | ANIMATE.Parent = nil | |
1134 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1135 | IDLEANIMATION:Play() | |
1136 | SINE = SINE + CHANGE | |
1137 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1138 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1139 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1140 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1141 | local WALKSPEEDVALUE = 3 | |
1142 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1143 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1144 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1145 | 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) | |
1146 | 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) | |
1147 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1148 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1149 | 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) | |
1150 | 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) | |
1151 | 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) | |
1152 | end | |
1153 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1154 | ANIM = "Jump" | |
1155 | if ATTACK == false then | |
1156 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1157 | 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) | |
1158 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1159 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1160 | 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) | |
1161 | 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) | |
1162 | end | |
1163 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1164 | ANIM = "Fall" | |
1165 | if ATTACK == false then | |
1166 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1167 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1168 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1169 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1170 | 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) | |
1171 | 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) | |
1172 | end | |
1173 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1174 | ANIM = "Idle" | |
1175 | if ATTACK == false then | |
1176 | 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) | |
1177 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1178 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1179 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1180 | 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) | |
1181 | 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) | |
1182 | end | |
1183 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1184 | ANIM = "Walk" | |
1185 | WALK = WALK + 1 / Animation_Speed | |
1186 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1187 | WALK = 0 | |
1188 | if WALKINGANIM == true then | |
1189 | WALKINGANIM = false | |
1190 | elseif WALKINGANIM == false then | |
1191 | WALKINGANIM = true | |
1192 | end | |
1193 | end | |
1194 | --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) | |
1195 | --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) | |
1196 | if ATTACK == false then | |
1197 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1198 | 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) | |
1199 | --PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.26,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1200 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1201 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-120 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1202 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, -0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1203 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1204 | end | |
1205 | end | |
1206 | if #Effects2>0 then | |
1207 | for e=1,#Effects2 do | |
1208 | if Effects2[e]~=nil then | |
1209 | local Thing=Effects2[e] | |
1210 | if Thing~=nil then | |
1211 | local Part=Thing[1] | |
1212 | local Mode=Thing[2] | |
1213 | local Delay=Thing[3] | |
1214 | local IncX=Thing[4] | |
1215 | local IncY=Thing[5] | |
1216 | local IncZ=Thing[6] | |
1217 | local Part2=Thing[8] | |
1218 | if Thing[1].Transparency<=1 then | |
1219 | if Thing[2]=="Block1" then | |
1220 | Thing[1].CFrame=Thing[1].CFrame | |
1221 | Mesh=Thing[1].Mesh | |
1222 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1223 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1224 | elseif Thing[2]=="Cylinder" then | |
1225 | Mesh=Thing[1].Mesh | |
1226 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1227 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1228 | elseif Thing[2]=="Blood" then | |
1229 | Mesh=Thing[7] | |
1230 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
1231 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1232 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1233 | elseif Thing[2]=="Elec" then | |
1234 | Mesh=Thing[1].Mesh | |
1235 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
1236 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1237 | elseif Thing[2]=="Disappear" then | |
1238 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1239 | end | |
1240 | else | |
1241 | Part.Parent=nil | |
1242 | table.remove(Effects2,e) | |
1243 | end | |
1244 | end | |
1245 | end | |
1246 | end | |
1247 | end | |
1248 | unanchor() | |
1249 | Humanoid.MaxHealth = "inf" | |
1250 | Humanoid.Health = "inf" | |
1251 | if Rooted == false then | |
1252 | Disable_Jump = false | |
1253 | Humanoid.WalkSpeed = Speed | |
1254 | elseif Rooted == true then | |
1255 | Disable_Jump = true | |
1256 | Humanoid.WalkSpeed = 0 | |
1257 | end | |
1258 | if Head:FindFirstChild("face") then | |
1259 | Head.face:remove() | |
1260 | end | |
1261 | ||
1262 | ||
1263 | --//=================================\\ | |
1264 | --\\=================================// | |
1265 | ||
1266 | ||
1267 | ||
1268 | ||
1269 | ||
1270 | --//====================================================\\-- | |
1271 | --|| END OF SCRIPT | |
1272 | --\\====================================================//-- |