SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | |
3 | - | --\\====================================================//-- |
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 | - | Player = game:GetService("Players").LocalPlayer |
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 | - | Mouse = Player:GetMouse() |
17 | + | t.connect = t.Connect |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | wait(0.2) | |
88 | ||
89 | ||
90 | ||
91 | Player = owner | |
92 | PlayerGui = Player.PlayerGui | |
93 | Cam = workspace.CurrentCamera | |
94 | Backpack = Player.Backpack | |
95 | Character = Player.Character | |
96 | Humanoid = Character.Humanoid | |
97 | ||
98 | RootPart = Character["HumanoidRootPart"] | |
99 | Torso = Character["Torso"] | |
100 | Head = Character["Head"] | |
101 | RightArm = Character["Right Arm"] | |
102 | LeftArm = Character["Left Arm"] | |
103 | RightLeg = Character["Right Leg"] | |
104 | LeftLeg = Character["Left Leg"] | |
105 | RootJoint = RootPart["RootJoint"] | |
106 | Neck = Torso["Neck"] | |
107 | RightShoulder = Torso["Right Shoulder"] | |
108 | LeftShoulder = Torso["Left Shoulder"] | |
109 | RightHip = Torso["Right Hip"] | |
110 | LeftHip = Torso["Left Hip"] | |
111 | local sick = Instance.new("Sound",Character) | |
112 | sick.SoundId = "rbxassetid://733414830" | |
113 | sick.Looped = true | |
114 | sick.Pitch = 1 | |
115 | sick.Volume = 1 | |
116 | sick:Play() | |
117 | Humanoid.HipHeight = 15 | |
118 | Humanoid.DisplayDistanceType = "None" | |
119 | local LightningBolts = {} | |
120 | Humanoid.Name = "Sin" | |
121 | ||
122 | IT = Instance.new | |
123 | CF = CFrame.new | |
124 | VT = Vector3.new | |
125 | RAD = math.rad | |
126 | C3 = Color3.new | |
127 | UD2 = UDim2.new | |
128 | BRICKC = BrickColor.new | |
129 | ANGLES = CFrame.Angles | |
130 | EULER = CFrame.fromEulerAnglesXYZ | |
131 | COS = math.cos | |
132 | ACOS = math.acos | |
133 | SIN = math.sin | |
134 | ASIN = math.asin | |
135 | ABS = math.abs | |
136 | MRANDOM = math.random | |
137 | FLOOR = math.floor | |
138 | ||
139 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
140 | local NEWMESH = IT(MESH) | |
141 | if MESH == "SpecialMesh" then | |
142 | NEWMESH.MeshType = MESHTYPE | |
143 | if MESHID ~= "nil" and MESHID ~= "" then | |
144 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
145 | end | |
146 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
147 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
148 | end | |
149 | end | |
150 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
151 | NEWMESH.Scale = SCALE | |
152 | NEWMESH.Parent = PARENT | |
153 | return NEWMESH | |
154 | end | |
155 | ||
156 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHR) | |
157 | local NEWPART = IT("Part") | |
158 | NEWPART.formFactor = FORMFACTOR | |
159 | NEWPART.Reflectance = REFLECTANCE | |
160 | NEWPART.Transparency = TRANSPARENCY | |
161 | NEWPART.CanCollide = false | |
162 | NEWPART.Locked = true | |
163 | NEWPART.Anchored = true | |
164 | if ANCHR == false then | |
165 | NEWPART.Anchored = false | |
166 | end | |
167 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
168 | NEWPART.Name = NAME | |
169 | NEWPART.Size = SIZE | |
170 | NEWPART.Position = Torso.Position | |
171 | NEWPART.Material = MATERIAL | |
172 | NEWPART:BreakJoints() | |
173 | NEWPART.Parent = PARENT | |
174 | return NEWPART | |
175 | end | |
176 | ||
177 | ||
178 | --//=================================\\ | |
179 | --|| CUSTOMIZATION | |
180 | --\\=================================// | |
181 | ||
182 | Class_Name = "Sin Unleashed" | |
183 | Weapon_Name = "Add-ons" | |
184 | ||
185 | Custom_Colors = { | |
186 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
187 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
188 | ||
189 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
190 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
191 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
192 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
193 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
194 | ||
195 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
196 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
197 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
198 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
199 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
200 | } | |
201 | ||
202 | ||
203 | Player_Size = 1 --Size of the player. | |
204 | Animation_Speed = 2 | |
205 | Animation_Speed2 = 1 | |
206 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
207 | ||
208 | local Speed = 28 | |
209 | Humanoid.JumpPower = 80 | |
210 | local Effects2 = {} | |
211 | ||
212 | --//=================================\\ | |
213 | --|| END OF CUSTOMIZATION | |
214 | --\\=================================// | |
215 | ||
216 | local function weldBetween(a, b) | |
217 | local weldd = Instance.new("ManualWeld") | |
218 | weldd.Part0 = a | |
219 | weldd.Part1 = b | |
220 | weldd.C0 = CFrame.new() | |
221 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
222 | weldd.Parent = a | |
223 | return weldd | |
224 | end | |
225 | ||
226 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
227 | local acs = Instance.new("Part") | |
228 | acs.CanCollide = false | |
229 | acs.Anchored = false | |
230 | acs.Size = Vector3.new(0,0,0) | |
231 | acs.CFrame = attachmentpart.CFrame | |
232 | acs.Parent = Character | |
233 | acs.BrickColor = color | |
234 | local meshs = Instance.new("SpecialMesh") | |
235 | meshs.MeshId = mesh | |
236 | meshs.TextureId = texture | |
237 | meshs.Parent = acs | |
238 | meshs.Scale = scale | |
239 | meshs.Offset = offset | |
240 | weldBetween(attachmentpart,acs) | |
241 | end | |
242 | ||
243 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
244 | if TYPE == "Gem" then | |
245 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
246 | acs.Anchored = false | |
247 | acs.CanCollide = false | |
248 | acs.CFrame = PART.CFrame | |
249 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
250 | weldBetween(PART,acs) | |
251 | elseif TYPE == "Skull" then | |
252 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
253 | acs.Anchored = false | |
254 | acs.CanCollide = false | |
255 | acs.CFrame = PART.CFrame | |
256 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
257 | weldBetween(PART,acs) | |
258 | elseif TYPE == "Eye" then | |
259 | local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
260 | acs.Anchored = false | |
261 | acs.CanCollide = false | |
262 | acs.CFrame = PART.CFrame | |
263 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
264 | weldBetween(PART,acs) | |
265 | end | |
266 | end | |
267 | ||
268 | --//=================================\\ | |
269 | --|| USEFUL VALUES | |
270 | --\\=================================// | |
271 | ||
272 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
273 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
274 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
275 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
276 | local CO1 = 0 | |
277 | local CO2 = 0 | |
278 | local CO3 = 0 | |
279 | local CO4 = 0 | |
280 | local CHANGEDEFENSE = 0 | |
281 | local CHANGEDAMAGE = 0 | |
282 | local CHANGEMOVEMENT = 0 | |
283 | local ANIM = "Idle" | |
284 | local ATTACK = false | |
285 | local EQUIPPED = false | |
286 | local HOLD = false | |
287 | local COMBO = 1 | |
288 | local LASTPOINT = nil | |
289 | local BLCF = nil | |
290 | local SCFR = nil | |
291 | local STAGGERHITANIM = false | |
292 | local STAGGERANIM = false | |
293 | local STUNANIM = false | |
294 | local CRITCHANCENUMBER = 0 | |
295 | local IDLENUMBER = 0 | |
296 | local DONUMBER = 0 | |
297 | local HANDIDLE = false | |
298 | local Rooted = false | |
299 | local KEYHOLD = false | |
300 | local SINE = 0 | |
301 | local CHANGE = 2 / Animation_Speed | |
302 | local WALKINGANIM = false | |
303 | local WALK = 0 | |
304 | local DEAD = false | |
305 | local ROBLOXIDLEANIMATION = IT("Animation") | |
306 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
307 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
308 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
309 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
310 | WEAPONGUI.Name = "Weapon GUI" | |
311 | local Weapon = IT("Model") | |
312 | Weapon.Name = Weapon_Name | |
313 | local Effects = IT("Folder", Weapon) | |
314 | Effects.Name = "Effects" | |
315 | local ANIMATOR = Humanoid.Animator | |
316 | local ANIMATE = Character.Animate | |
317 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
318 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
319 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
320 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
321 | local UNANCHOR = true | |
322 | local MAGICPARTICLE = "655109389" | |
323 | ||
324 | local SKILLTEXTCOLOR = C3(0.7,0,0) | |
325 | ||
326 | --//=================================\\ | |
327 | --\\=================================// | |
328 | ||
329 | ||
330 | --//=================================\\ | |
331 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
332 | --\\=================================// | |
333 | ||
334 | ArtificialHB = Instance.new("BindableEvent", script) | |
335 | ArtificialHB.Name = "ArtificialHB" | |
336 | ||
337 | script:WaitForChild("ArtificialHB") | |
338 | ||
339 | frame = Frame_Speed | |
340 | tf = 0 | |
341 | allowframeloss = false | |
342 | tossremainder = false | |
343 | lastframe = tick() | |
344 | script.ArtificialHB:Fire() | |
345 | ||
346 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
347 | tf = tf + s | |
348 | if tf >= frame then | |
349 | if allowframeloss then | |
350 | script.ArtificialHB:Fire() | |
351 | lastframe = tick() | |
352 | else | |
353 | for i = 1, math.floor(tf / frame) do | |
354 | script.ArtificialHB:Fire() | |
355 | end | |
356 | lastframe = tick() | |
357 | end | |
358 | if tossremainder then | |
359 | tf = 0 | |
360 | else | |
361 | tf = tf - frame * math.floor(tf / frame) | |
362 | end | |
363 | end | |
364 | end) | |
365 | ||
366 | --//=================================\\ | |
367 | --\\=================================// | |
368 | ||
369 | ||
370 | ||
371 | ||
372 | ||
373 | --//=================================\\ | |
374 | --|| SOME FUNCTIONS | |
375 | --\\=================================// | |
376 | ||
377 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
378 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
379 | end | |
380 | ||
381 | function PositiveAngle(NUMBER) | |
382 | if NUMBER >= 0 then | |
383 | NUMBER = 0 | |
384 | end | |
385 | return NUMBER | |
386 | end | |
387 | ||
388 | function NegativeAngle(NUMBER) | |
389 | if NUMBER <= 0 then | |
390 | NUMBER = 0 | |
391 | end | |
392 | return NUMBER | |
393 | end | |
394 | ||
395 | function Swait(NUMBER) | |
396 | if NUMBER == 0 or NUMBER == nil then | |
397 | ArtificialHB.Event:wait() | |
398 | else | |
399 | for i = 1, NUMBER do | |
400 | ArtificialHB.Event:wait() | |
401 | end | |
402 | end | |
403 | end | |
404 | ||
405 | function QuaternionFromCFrame(cf) | |
406 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
407 | local trace = m00 + m11 + m22 | |
408 | if trace > 0 then | |
409 | local s = math.sqrt(1 + trace) | |
410 | local recip = 0.5 / s | |
411 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
412 | else | |
413 | local i = 0 | |
414 | if m11 > m00 then | |
415 | i = 1 | |
416 | end | |
417 | if m22 > (i == 0 and m00 or m11) then | |
418 | i = 2 | |
419 | end | |
420 | if i == 0 then | |
421 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
422 | local recip = 0.5 / s | |
423 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
424 | elseif i == 1 then | |
425 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
426 | local recip = 0.5 / s | |
427 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
428 | elseif i == 2 then | |
429 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
430 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
431 | end | |
432 | end | |
433 | end | |
434 | ||
435 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
436 | local xs, ys, zs = x + x, y + y, z + z | |
437 | local wx, wy, wz = w * xs, w * ys, w * zs | |
438 | local xx = x * xs | |
439 | local xy = x * ys | |
440 | local xz = x * zs | |
441 | local yy = y * ys | |
442 | local yz = y * zs | |
443 | local zz = z * zs | |
444 | 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)) | |
445 | end | |
446 | ||
447 | function QuaternionSlerp(a, b, t) | |
448 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
449 | local startInterp, finishInterp; | |
450 | if cosTheta >= 0.0001 then | |
451 | if (1 - cosTheta) > 0.0001 then | |
452 | local theta = ACOS(cosTheta) | |
453 | local invSinTheta = 1 / SIN(theta) | |
454 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
455 | finishInterp = SIN(t * theta) * invSinTheta | |
456 | else | |
457 | startInterp = 1 - t | |
458 | finishInterp = t | |
459 | end | |
460 | else | |
461 | if (1 + cosTheta) > 0.0001 then | |
462 | local theta = ACOS(-cosTheta) | |
463 | local invSinTheta = 1 / SIN(theta) | |
464 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
465 | finishInterp = SIN(t * theta) * invSinTheta | |
466 | else | |
467 | startInterp = t - 1 | |
468 | finishInterp = t | |
469 | end | |
470 | end | |
471 | 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 | |
472 | end | |
473 | ||
474 | function Clerp(a, b, t) | |
475 | local qa = {QuaternionFromCFrame(a)} | |
476 | local qb = {QuaternionFromCFrame(b)} | |
477 | local ax, ay, az = a.x, a.y, a.z | |
478 | local bx, by, bz = b.x, b.y, b.z | |
479 | local _t = 1 - t | |
480 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
481 | end | |
482 | ||
483 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
484 | local frame = IT("Frame") | |
485 | frame.BackgroundTransparency = TRANSPARENCY | |
486 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
487 | frame.Position = POSITION | |
488 | frame.Size = SIZE | |
489 | frame.BackgroundColor3 = COLOR | |
490 | frame.BorderColor3 = BORDERCOLOR | |
491 | frame.Name = NAME | |
492 | frame.Parent = PARENT | |
493 | return frame | |
494 | end | |
495 | ||
496 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
497 | local label = IT("TextLabel") | |
498 | label.BackgroundTransparency = 1 | |
499 | label.Size = UD2(1, 0, 1, 0) | |
500 | label.Position = UD2(0, 0, 0, 0) | |
501 | label.TextColor3 = TEXTCOLOR | |
502 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
503 | label.TextTransparency = TRANSPARENCY | |
504 | label.FontSize = TEXTFONTSIZE | |
505 | label.Font = TEXTFONT | |
506 | label.BorderSizePixel = BORDERSIZEPIXEL | |
507 | label.TextScaled = false | |
508 | label.Text = TEXT | |
509 | label.Name = NAME | |
510 | label.Parent = PARENT | |
511 | return label | |
512 | end | |
513 | ||
514 | function NoOutlines(PART) | |
515 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
516 | end | |
517 | ||
518 | ||
519 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
520 | local NEWWELD = IT(TYPE) | |
521 | NEWWELD.Part0 = PART0 | |
522 | NEWWELD.Part1 = PART1 | |
523 | NEWWELD.C0 = C0 | |
524 | NEWWELD.C1 = C1 | |
525 | NEWWELD.Parent = PARENT | |
526 | return NEWWELD | |
527 | end | |
528 | ||
529 | local sound = IT("Sound") | |
530 | ||
531 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
532 | local NEWSOUND = nil | |
533 | coroutine.resume(coroutine.create(function() | |
534 | NEWSOUND = sound:Clone() | |
535 | NEWSOUND.Parent = PARENT | |
536 | NEWSOUND.Volume = VOLUME | |
537 | NEWSOUND.Pitch = PITCH | |
538 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
539 | Swait() | |
540 | NEWSOUND:play() | |
541 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
542 | end)) | |
543 | return NEWSOUND | |
544 | end | |
545 | ||
546 | function CFrameFromTopBack(at, top, back) | |
547 | local right = top:Cross(back) | |
548 | 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) | |
549 | end | |
550 | ||
551 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,offset,color) | |
552 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
553 | local mesh = IT("SpecialMesh",wave) | |
554 | mesh.MeshType = "FileMesh" | |
555 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
556 | mesh.Scale = VT(size,size,size) | |
557 | mesh.Offset = VT(0,0,-size/8) | |
558 | wave.CFrame = cframe | |
559 | coroutine.resume(coroutine.create(function(PART) | |
560 | for i = 1, waitt do | |
561 | Swait() | |
562 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
563 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
564 | if doesrotate == true then | |
565 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
566 | end | |
567 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
568 | if wave.Transparency > 0.99 then | |
569 | wave:remove() | |
570 | end | |
571 | end | |
572 | end)) | |
573 | end | |
574 | ||
575 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,offset,color) | |
576 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
577 | local mesh = IT("SpecialMesh",wave) | |
578 | mesh.MeshType = "FileMesh" | |
579 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
580 | mesh.Scale = VT(size,size,size) | |
581 | wave.CFrame = cframe | |
582 | coroutine.resume(coroutine.create(function(PART) | |
583 | for i = 1, waitt do | |
584 | Swait() | |
585 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
586 | if doesrotate == true then | |
587 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
588 | end | |
589 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
590 | if wave.Transparency > 0.99 then | |
591 | wave:remove() | |
592 | end | |
593 | end | |
594 | end)) | |
595 | end | |
596 | ||
597 | function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,part,offset,color) | |
598 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
599 | local mesh = IT("SpecialMesh",wave) | |
600 | mesh.MeshType = "FileMesh" | |
601 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
602 | mesh.Scale = VT(size,size,size) | |
603 | wave.CFrame = CF(part.Position) * CF(0,offset,0) * ANGLES(RAD(inair),RAD(0),RAD(0)) | |
604 | coroutine.resume(coroutine.create(function(PART) | |
605 | for i = 1, waitt do | |
606 | Swait() | |
607 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
608 | if doesrotate == true then | |
609 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
610 | end | |
611 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
612 | if wave.Transparency > 0.99 then | |
613 | wave:remove() | |
614 | end | |
615 | end | |
616 | end)) | |
617 | end | |
618 | ||
619 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,offset,spin1,spin2,color) | |
620 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
621 | local mesh = IT("SpecialMesh",wave) | |
622 | mesh.MeshType = "FileMesh" | |
623 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
624 | mesh.Scale = VT(size,size,size) | |
625 | mesh.Offset = VT(0,0,0) | |
626 | wave.CFrame = cframe | |
627 | coroutine.resume(coroutine.create(function(PART) | |
628 | for i = 1, waitt do | |
629 | Swait() | |
630 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
631 | if doesrotate == true then | |
632 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
633 | end | |
634 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
635 | if wave.Transparency > 0.99 then | |
636 | wave:remove() | |
637 | end | |
638 | end | |
639 | end)) | |
640 | end | |
641 | ||
642 | function MagicSphere(size,waitt,part,offset,color) | |
643 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
644 | local mesh = IT("SpecialMesh",wave) | |
645 | mesh.MeshType = "Sphere" | |
646 | mesh.Scale = VT(size,size,size) | |
647 | mesh.Offset = VT(0,0,0) | |
648 | wave.CFrame = CF(part) * CF(0,offset,0) * ANGLES(RAD(0),RAD(0),RAD(0)) | |
649 | coroutine.resume(coroutine.create(function(PART) | |
650 | for i = 1, waitt do | |
651 | Swait() | |
652 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
653 | wave.Transparency = wave.Transparency + (1/waitt) | |
654 | if wave.Transparency > 0.99 then | |
655 | wave:remove() | |
656 | end | |
657 | end | |
658 | end)) | |
659 | end | |
660 | ||
661 | local EyeSizes={ | |
662 | NumberSequenceKeypoint.new(0,1,0), | |
663 | NumberSequenceKeypoint.new(1,0.2,0) | |
664 | } | |
665 | local EyeTrans={ | |
666 | NumberSequenceKeypoint.new(0,0.8,0), | |
667 | NumberSequenceKeypoint.new(1,1,0) | |
668 | } | |
669 | local PE=Instance.new("ParticleEmitter") | |
670 | PE.LightEmission=0 | |
671 | PE.Size=NumberSequence.new(EyeSizes) | |
672 | PE.Transparency=NumberSequence.new(EyeTrans) | |
673 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
674 | PE.Rotation=NumberRange.new(0,360) | |
675 | PE.Rate=15 | |
676 | PE.Acceleration = Vector3.new(0,75,0) | |
677 | PE.Drag = 5 | |
678 | PE.Enabled = false | |
679 | PE.Speed = NumberRange.new(0,0,0) | |
680 | PE.Texture="http://www.roblox.com/asset/?id=1179557490" | |
681 | PE.ZOffset = 0 | |
682 | PE.Name = "Particles" | |
683 | ||
684 | function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault) | |
685 | local particle = PE:Clone() | |
686 | particle.Parent = art | |
687 | particle.Acceleration = accel | |
688 | PE.Rate = rate | |
689 | if type == "Fire" then | |
690 | local EyeSizes={ | |
691 | NumberSequenceKeypoint.new(0,1,0.3), | |
692 | NumberSequenceKeypoint.new(1,0.2,0.2) | |
693 | } | |
694 | PE.Size = NumberSequence.new(EyeSizes) | |
695 | elseif type == "Smoke" then | |
696 | local EyeSizes={ | |
697 | NumberSequenceKeypoint.new(0,1,0), | |
698 | NumberSequenceKeypoint.new(1,5,0.5) | |
699 | } | |
700 | PE.Size = NumberSequence.new(EyeSizes) | |
701 | elseif type == "Solid" then | |
702 | local EyeSizes={ | |
703 | NumberSequenceKeypoint.new(0,1,0), | |
704 | NumberSequenceKeypoint.new(1,1,0) | |
705 | } | |
706 | PE.Size = NumberSequence.new(EyeSizes) | |
707 | end | |
708 | PE.Drag = drag | |
709 | particle.Texture = "http://www.roblox.com/asset/?id="..text | |
710 | particle.Enabled = isenabledbydefault | |
711 | return particle | |
712 | end | |
713 | ||
714 | --//=================================\\ | |
715 | --|| BIG ZAPS | |
716 | --\\=================================// | |
717 | ||
718 | BaseLightning = IT("Part") | |
719 | BaseLightning.Anchored = true | |
720 | BaseLightning.CanCollide = false | |
721 | BaseLightning.Material = "Neon" | |
722 | ||
723 | function CheckTableForString(Table, String) | |
724 | for i, v in pairs(Table) do | |
725 | if string.find(string.lower(String), string.lower(v)) then | |
726 | return true | |
727 | end | |
728 | end | |
729 | return false | |
730 | end | |
731 | ||
732 | function CheckIntangible(Hit) | |
733 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
734 | if Hit and Hit.Parent then | |
735 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
736 | return true | |
737 | end | |
738 | end | |
739 | return false | |
740 | end | |
741 | ||
742 | Debris = game:GetService("Debris") | |
743 | ||
744 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
745 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
746 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Vec * Length), Ignore) | |
747 | if RayHit and CheckIntangible(RayHit) then | |
748 | if DelayIfHit then | |
749 | wait() | |
750 | end | |
751 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
752 | end | |
753 | return RayHit, RayPos, RayNormal | |
754 | end | |
755 | ||
756 | --Zap({StartPosition = Position, TargetPosition = Position, Character = Character, Color = "Color", Individual = true}) | |
757 | function Zap(Table) | |
758 | local StartPos, TargetPos, Character, Color = Table.StartPosition, Table.TargetPosition, Table.Character, Table.Color | |
759 | local Duration = (Table.Duration or 2) | |
760 | local FadeRate = (Table.FadeRate or 0.05) | |
761 | local Offset = (Table.Offset or 2) | |
762 | local Individualize = (Table.Individualize or false) | |
763 | local MaxRange = (Table.MaxRange or 200) | |
764 | local SegmentLength = (Table.SegmentLength or 5) | |
765 | local TimeToFade = (Table.TimeToFade or 0.5) | |
766 | local Ignore = (Table.Ignore or {}) | |
767 | local SIZE = (Table.Size or 0.3) | |
768 | if not StartPos or not TargetPos or not Character then | |
769 | return | |
770 | end | |
771 | local LightningModel = IT("Folder",Effects) | |
772 | LightningModel.Name = "ZAPP" | |
773 | for i, v in pairs({Character, LightningModel}) do | |
774 | table.insert(Ignore, v) | |
775 | end | |
776 | local LastPos = StartPos | |
777 | local Direction = CFrame.new(StartPos, TargetPos).lookVector | |
778 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Direction, MaxRange, Ignore, false) | |
779 | local RayLength = (StartPos - RayPos).Magnitude | |
780 | local Struck = false | |
781 | local TotalSegments = math.ceil(RayLength / SegmentLength) | |
782 | Direction = CFrame.new(StartPos, RayPos).lookVector | |
783 | local LightningBolt = IT("Model",Effects) | |
784 | LightningBolt.Name = "Lightning" | |
785 | if not Individualize then | |
786 | table.insert(LightningBolts, LightningBolt) | |
787 | end | |
788 | LastBolt = LightningBolt | |
789 | Debris:AddItem(LightningBolt, Duration) | |
790 | LightningBolt.Parent = LightningModel | |
791 | for i = 1, TotalSegments do | |
792 | if not Struck then | |
793 | local Entropy = Vector3.new(((math.random() * Offset*2.5) - Offset), ((math.random() * Offset*2.5) - Offset), ((math.random() * Offset*2.5) - Offset)) | |
794 | local NewPos = (StartPos + (Direction * (RayLength * (i / TotalSegments))) + Entropy) | |
795 | local SegmentVec = (NewPos - LastPos) | |
796 | local RayHit, RayPos, RayNormal = CastZapRay(LastPos, SegmentVec.Unit, SegmentVec.Magnitude, {Character, LightningModel}, false) | |
797 | local RayVec = (LastPos - RayPos) | |
798 | local LightningPart = BaseLightning:Clone() | |
799 | LightningPart.BrickColor = BrickColor.new(Color) | |
800 | LightningPart.Size = Vector3.new(SIZE, SIZE, RayVec.Magnitude) | |
801 | LightningPart.CFrame = (CFrame.new(LastPos, RayPos) * CFrame.new(0, 0, -(RayVec.Magnitude / 2))) | |
802 | table.insert(Effects2,{LightningPart,"Disappear",0.025,1,1,1,2}) | |
803 | --Make circular | |
804 | local CylinderMesh = IT("CylinderMesh",LightningPart) | |
805 | local OrigCF = LightningPart.CFrame | |
806 | LightningPart.Size = Vector3.new(LightningPart.Size.X, LightningPart.Size.Z, LightningPart.Size.Y) | |
807 | LightningPart.CFrame = (OrigCF * CFrame.Angles((math.pi / 2), 0, 0)) | |
808 | LightningPart.Parent = LightningBolt | |
809 | LastPos = NewPos | |
810 | Spawn(function() | |
811 | local FadeRate = 0.05 | |
812 | local OrigTransparency = LightningPart.Transparency | |
813 | for i = 1, (TimeToFade / FadeRate) do | |
814 | wait(FadeRate) | |
815 | LightningPart.Transparency = (OrigTransparency + (i / (TimeToFade / FadeRate))) | |
816 | end | |
817 | end) | |
818 | end | |
819 | end | |
820 | return {RayHit = RayHit, RayPos = RayPos, RayNormal = RayNormal, LightningModel = LightningModel} | |
821 | end | |
822 | ||
823 | --//=================================\\ | |
824 | --|| WEAPON CREATION | |
825 | --\\=================================// | |
826 | ||
827 | Weapon.Parent = Character | |
828 | ||
829 | Humanoid.Died:connect(function() | |
830 | ATTACK = true | |
831 | end) | |
832 | ||
833 | print(Class_Name.." loaded.") | |
834 | ||
835 | 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") | |
836 | 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") | |
837 | 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") | |
838 | 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") | |
839 | 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") | |
840 | ||
841 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Claw force", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 1") | |
842 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Hell leash", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 2") | |
843 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Sinner wave", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 3") | |
844 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] From the depths", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 4") | |
845 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] The end", SKILLTEXTCOLOR, 10, "Antique", 0, 2, 1, "Text 5") | |
846 | ||
847 | local naeeym2 = Instance.new("BillboardGui",Character) | |
848 | naeeym2.AlwaysOnTop = true | |
849 | naeeym2.Size = UDim2.new(5,35,2,35) | |
850 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
851 | naeeym2.Adornee = Character.Head | |
852 | naeeym2.Name = "Name" | |
853 | naeeym2.PlayerToHideFrom = Player | |
854 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
855 | tecks2.BackgroundTransparency = 1 | |
856 | tecks2.TextScaled = true | |
857 | tecks2.BorderSizePixel = 0 | |
858 | tecks2.Text = "Sin unleashed" | |
859 | tecks2.Font = "Antique" | |
860 | tecks2.TextSize = 30 | |
861 | tecks2.TextStrokeTransparency = 0.9 | |
862 | tecks2.TextColor3 = Color3.new(0,0,0) | |
863 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
864 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
865 | tecks2.Parent = naeeym2 | |
866 | ||
867 | local Shield = IT("Part",Weapon) | |
868 | Shield.Name = "Barrier" | |
869 | Shield.Shape = "Ball" | |
870 | Shield.Material = "Glass" | |
871 | Shield.Color = C3(1,0,0) | |
872 | Shield.Transparency = 0.5 | |
873 | Shield.Size = VT(0.5,0.5,0.5) | |
874 | local mesh = IT("SpecialMesh",Shield) | |
875 | mesh.MeshType = "Sphere" | |
876 | mesh.Scale = VT(13,13,13) | |
877 | Shield.CFrame = RootPart.CFrame | |
878 | weldBetween(RootPart,Shield) | |
879 | ||
880 | createbodypart("Eye","Really red",Head,VT(0.20, 0, -0.55),VT(2,6,2)) | |
881 | createbodypart("Eye","Really red",Head,VT(-0.20, 0, -0.55),VT(2,6,2)) | |
882 | createbodypart("Eye","Really red",Head,VT(0, 0, -0.6),VT(2,8,2)) | |
883 | ||
884 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
885 | local mesh = Instance.new("SpecialMesh",gear) | |
886 | mesh.MeshType = "FileMesh" | |
887 | mesh.MeshId = "rbxassetid://156292343" | |
888 | mesh.Scale = VT(8,8,8) | |
889 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 4 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
890 | ||
891 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
892 | local mesh = Instance.new("SpecialMesh",gear) | |
893 | mesh.MeshType = "FileMesh" | |
894 | mesh.MeshId = "rbxassetid://156292343" | |
895 | mesh.Scale = VT(8,8,8) | |
896 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 4 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
897 | ||
898 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
899 | local mesh = Instance.new("SpecialMesh",gear) | |
900 | mesh.MeshType = "FileMesh" | |
901 | mesh.MeshId = "rbxassetid://156292343" | |
902 | mesh.Scale = VT(6,6,6) | |
903 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 4 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
904 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
905 | local mesh = Instance.new("SpecialMesh",gear) | |
906 | mesh.MeshType = "FileMesh" | |
907 | mesh.MeshId = "rbxassetid://156292343" | |
908 | mesh.Scale = VT(4,4,4) | |
909 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 6 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
910 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
911 | local mesh = Instance.new("SpecialMesh",gear) | |
912 | mesh.MeshType = "FileMesh" | |
913 | mesh.MeshId = "rbxassetid://156292343" | |
914 | mesh.Scale = VT(2,2,2) | |
915 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0 * Player_Size, 0 * Player_Size, 8 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
916 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(1*Player_Size,6*Player_Size,1*Player_Size),false) | |
917 | local mesh = Instance.new("SpecialMesh",BottomPart) | |
918 | mesh.MeshType = "Sphere" | |
919 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, BottomPart, RootPart, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
920 | ||
921 | --//=================================\\ | |
922 | --|| CREATING ARMS | |
923 | --\\=================================// | |
924 | ||
925 | --RIGHT ARM-- | |
926 | ||
927 | local limb1a = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(2*Player_Size,2*Player_Size,2*Player_Size),false) | |
928 | local mesh = Instance.new("SpecialMesh",limb1a) | |
929 | mesh.MeshType = "Sphere" | |
930 | limb1a.Name = "Right Arm 01" | |
931 | ||
932 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
933 | LIMB.Name = "Right Arm part" | |
934 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1a, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
935 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
936 | LIMB.Name = "Right Arm part" | |
937 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1a, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
938 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
939 | LIMB.Name = "Right Arm part" | |
940 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1a, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
941 | ||
942 | local limbweld1a = CreateWeldOrSnapOrMotor("Weld", limb1a, RootPart, limb1a, CF(4 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
943 | local limb1b = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(2*Player_Size,2*Player_Size,2*Player_Size),false) | |
944 | local mesh = Instance.new("SpecialMesh",limb1b) | |
945 | mesh.MeshType = "Sphere" | |
946 | limb1b.Name = "Right Arm 02" | |
947 | ||
948 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
949 | LIMB.Name = "Right Arm part" | |
950 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1b, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
951 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1.5*Player_Size,3.5*Player_Size,1.5*Player_Size),false) | |
952 | LIMB.Name = "Right Arm part" | |
953 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1b, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
954 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
955 | LIMB.Name = "Right Arm part" | |
956 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb1b, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
957 | ||
958 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
959 | local mesh = Instance.new("SpecialMesh",part) | |
960 | mesh.MeshType = "FileMesh" | |
961 | mesh.MeshId = "rbxassetid://156292343" | |
962 | mesh.Scale = VT(10,10,10) | |
963 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1b, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
964 | ||
965 | local limbweld1b = CreateWeldOrSnapOrMotor("Weld", limb1b, limb1a, limb1b, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
966 | local limb1c = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(4*Player_Size,4*Player_Size,4*Player_Size),false) | |
967 | local mesh = Instance.new("SpecialMesh",limb1c) | |
968 | mesh.MeshType = "Sphere" | |
969 | limb1c.Name = "Right Arm 03" | |
970 | ||
971 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
972 | local mesh = Instance.new("SpecialMesh",part) | |
973 | mesh.MeshType = "FileMesh" | |
974 | mesh.MeshId = "rbxassetid://156292343" | |
975 | mesh.Scale = VT(15,15,15) | |
976 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1c, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
977 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
978 | local mesh = Instance.new("SpecialMesh",part) | |
979 | mesh.MeshType = "FileMesh" | |
980 | mesh.MeshId = "rbxassetid://156292343" | |
981 | mesh.Scale = VT(10,10,10) | |
982 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1c, part, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
983 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
984 | local mesh = Instance.new("SpecialMesh",part) | |
985 | mesh.MeshType = "FileMesh" | |
986 | mesh.MeshId = "rbxassetid://156292343" | |
987 | mesh.Scale = VT(10,10,10) | |
988 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb1c, part, CF(0 * Player_Size, -2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
989 | ||
990 | local limbweld1c = CreateWeldOrSnapOrMotor("Weld", limb1c, limb1b, limb1c, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
991 | ||
992 | local hand1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Hand", VT(0*Player_Size,0*Player_Size,0*Player_Size),false) | |
993 | local mesh = Instance.new("SpecialMesh",hand1) | |
994 | mesh.MeshType = "FileMesh" | |
995 | mesh.MeshId = "rbxassetid://1089939072" | |
996 | mesh.Scale = VT(7,8,7) | |
997 | local handweld1 = CreateWeldOrSnapOrMotor("Weld", limb1c, hand1, limb1c, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(90), RAD(0)), CF(0, 0, 0)) | |
998 | ||
999 | --LEFT ARM | |
1000 | ||
1001 | local limb2a = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(2*Player_Size,2*Player_Size,2*Player_Size),false) | |
1002 | local mesh = Instance.new("SpecialMesh",limb2a) | |
1003 | mesh.MeshType = "Sphere" | |
1004 | limb2a.Name = "Left Arm 01" | |
1005 | ||
1006 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(0.8*Player_Size,3.5*Player_Size,0.8*Player_Size),false) | |
1007 | LIMB.Name = "Left Arm part" | |
1008 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2a, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1009 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(01*Player_Size,3.5*Player_Size,1*Player_Size),false) | |
1010 | LIMB.Name = "Left Arm part" | |
1011 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2a, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1012 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
1013 | LIMB.Name = "Left Arm part" | |
1014 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2a, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1015 | ||
1016 | local limbweld2a = CreateWeldOrSnapOrMotor("Weld", limb2a, RootPart, limb2a, CF(-4 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1017 | local limb2b = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(2.5*Player_Size,2.5*Player_Size,2.5*Player_Size),false) | |
1018 | local mesh = Instance.new("SpecialMesh",limb2b) | |
1019 | mesh.MeshType = "Sphere" | |
1020 | limb2b.Name = "Left Arm 02" | |
1021 | ||
1022 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1*Player_Size,3.5*Player_Size,1*Player_Size),false) | |
1023 | LIMB.Name = "Left Arm part" | |
1024 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2b, LIMB, CF(0 * Player_Size, 2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1025 | local LIMB = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Handle", VT(1.5*Player_Size,3.5*Player_Size,1.5*Player_Size),false) | |
1026 | LIMB.Name = "Left Arm part" | |
1027 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2b, LIMB, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1028 | local LIMB = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(0.7*Player_Size,3.5*Player_Size,0.7*Player_Size),false) | |
1029 | LIMB.Name = "Left Arm part" | |
1030 | local LIMBWELD = CreateWeldOrSnapOrMotor("Weld", LIMB, limb2b, LIMB, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1031 | ||
1032 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
1033 | local mesh = Instance.new("SpecialMesh",part) | |
1034 | mesh.MeshType = "FileMesh" | |
1035 | mesh.MeshId = "rbxassetid://156292343" | |
1036 | mesh.Scale = VT(10,10,10) | |
1037 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2b, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1038 | ||
1039 | local limbweld2b = CreateWeldOrSnapOrMotor("Weld", limb2b, limb2a, limb2b, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1040 | local limb2c = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(4*Player_Size,4*Player_Size,4*Player_Size),false) | |
1041 | local mesh = Instance.new("SpecialMesh",limb2c) | |
1042 | mesh.MeshType = "Sphere" | |
1043 | limb1c.Name = "Right Arm 03" | |
1044 | ||
1045 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
1046 | local mesh = Instance.new("SpecialMesh",part) | |
1047 | mesh.MeshType = "FileMesh" | |
1048 | mesh.MeshId = "rbxassetid://156292343" | |
1049 | mesh.Scale = VT(15,15,15) | |
1050 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2c, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1051 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
1052 | local mesh = Instance.new("SpecialMesh",part) | |
1053 | mesh.MeshType = "FileMesh" | |
1054 | mesh.MeshId = "rbxassetid://156292343" | |
1055 | mesh.Scale = VT(10,10,10) | |
1056 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2c, part, CF(0 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1057 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35*Player_Size,0.35*Player_Size,0.35*Player_Size),false) | |
1058 | local mesh = Instance.new("SpecialMesh",part) | |
1059 | mesh.MeshType = "FileMesh" | |
1060 | mesh.MeshId = "rbxassetid://156292343" | |
1061 | mesh.Scale = VT(10,10,10) | |
1062 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb2c, part, CF(0 * Player_Size, -2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1063 | ||
1064 | local limbweld2c = CreateWeldOrSnapOrMotor("Weld", limb2c, limb2b, limb2c, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1065 | ||
1066 | local hand2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Hand", VT(0*Player_Size,0*Player_Size,0*Player_Size),false) | |
1067 | local mesh = Instance.new("SpecialMesh",hand2) | |
1068 | mesh.MeshType = "FileMesh" | |
1069 | mesh.MeshId = "rbxassetid://1089939056" | |
1070 | mesh.Scale = VT(7,8,7) | |
1071 | local handweld2 = CreateWeldOrSnapOrMotor("Weld", limb2c, hand2, limb2c, CF(0 * Player_Size, 3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
1072 | ||
1073 | for _, c in pairs(Weapon:GetChildren()) do | |
1074 | if c.ClassName == "Part" then | |
1075 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1076 | end | |
1077 | end | |
1078 | ||
1079 | --//=================================\\ | |
1080 | --|| SPEECH | |
1081 | --\\=================================// | |
1082 | ||
1083 | function chatfunc(text,waitt) | |
1084 | local chat = coroutine.wrap(function() | |
1085 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
1086 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
1087 | end | |
1088 | local naeeym2 = Instance.new("BillboardGui",Character) | |
1089 | naeeym2.Size = UDim2.new(0,100,0,40) | |
1090 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
1091 | naeeym2.Adornee = Character.Head | |
1092 | naeeym2.Name = "TalkingBillBoard" | |
1093 | naeeym2.AlwaysOnTop = true | |
1094 | local tecks2 = 30 | |
1095 | tecks2.BackgroundTransparency = 1 | |
1096 | tecks2.BorderSizePixel = 0 | |
1097 | tecks2.Text = "" | |
1098 | tecks2.Font = "Fantasy" | |
1099 | tecks2.TextSize = 30 | |
1100 | tecks2.TextStrokeTransparency = 1 | |
1101 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
1102 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
1103 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
1104 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
1105 | tecks3.BackgroundTransparency = 1 | |
1106 | tecks3.BorderSizePixel = 0 | |
1107 | tecks3.Text = "" | |
1108 | tecks3.Font = "Fantasy" | |
1109 | tecks3.TextSizekeTransparency = 1 | |
1110 | tecks3.TextColor3 = SKILLTEXTCOLOR | |
1111 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
1112 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
1113 | for i = 1,string.len(text),1 do | |
1114 | tecks2.Text = string.sub(text,1,i) | |
1115 | tecks3.Text = string.sub(text,1,i) | |
1116 | wait(0.01) | |
1117 | end | |
1118 | wait(waitt) | |
1119 | naeeym2:Destroy() | |
1120 | end) | |
1121 | chat() | |
1122 | end | |
1123 | ||
1124 | --//=================================\\ | |
1125 | --|| DAMAGE FUNCTIONS | |
1126 | --\\=================================// | |
1127 | ||
1128 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
1129 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
1130 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
1131 | local BODYGYRO = IT("BodyGyro", STATPART) | |
1132 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
1133 | BODYPOSITION.P = 2000 | |
1134 | BODYPOSITION.D = 100 | |
1135 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
1136 | if LABELTYPE == "Normal" then | |
1137 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
1138 | elseif LABELTYPE == "Debuff" then | |
1139 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
1140 | elseif LABELTYPE == "Interruption" then | |
1141 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
1142 | end | |
1143 | game:GetService("Debris"):AddItem(STATPART ,5) | |
1144 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
1145 | BILLBOARDGUI.Adornee = STATPART | |
1146 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
1147 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
1148 | BILLBOARDGUI.AlwaysOnTop = false | |
1149 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1150 | TEXTLABEL.BackgroundTransparency = 1 | |
1151 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1152 | TEXTLABEL.Text = TEXT | |
1153 | TEXTLABEL.Font = "SciFi" | |
1154 | TEXTLABEL.FontSize="Size42" | |
1155 | TEXTLABEL.TextColor3 = COLOR | |
1156 | TEXTLABEL.TextStrokeTransparency = 1 | |
1157 | TEXTLABEL.TextScaled = true | |
1158 | TEXTLABEL.TextWrapped = true | |
1159 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1160 | wait(0.2) | |
1161 | for i=1, 5 do | |
1162 | wait() | |
1163 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
1164 | end | |
1165 | wait(1.2) | |
1166 | for i=1, 5 do | |
1167 | wait() | |
1168 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
1169 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
1170 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
1171 | end | |
1172 | THEPART.Parent = nil | |
1173 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1174 | end | |
1175 | ||
1176 | function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset) | |
1177 | local sinkhole = IT("Part",Effects) | |
1178 | sinkhole.Size = VT(size,0,size) | |
1179 | sinkhole.CFrame = cframe * CF(0,offset,0) | |
1180 | sinkhole.Material = "Neon" | |
1181 | sinkhole.Color = C3(1,0,0) | |
1182 | sinkhole.Anchored = true | |
1183 | sinkhole.CanCollide = false | |
1184 | sinkhole.Transparency = 1 | |
1185 | local decal = IT("Decal",sinkhole) | |
1186 | decal.Face = "Top" | |
1187 | decal.Texture = "http://www.roblox.com/asset/?id=818983932" | |
1188 | coroutine.resume(coroutine.create(function(PART) | |
1189 | for i = 1, waitt do | |
1190 | Swait() | |
1191 | if doesrotate == true then | |
1192 | sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
1193 | end | |
1194 | if i > waitt-11 then | |
1195 | decal.Transparency = decal.Transparency + 0.1 | |
1196 | end | |
1197 | end | |
1198 | sinkhole:remove() | |
1199 | end)) | |
1200 | return sinkhole | |
1201 | end | |
1202 | ||
1203 | --//=================================\\ | |
1204 | --|| DAMAGING | |
1205 | --\\=================================// | |
1206 | ||
1207 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
1208 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
1209 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1210 | local dmg = math.random(min,max) | |
1211 | if humanoid.Health > 0 then | |
1212 | if beserk == true then | |
1213 | humanoid.Health = 0 | |
1214 | else | |
1215 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
1216 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
1217 | if math.random(1,100) < critrate+1 then | |
1218 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
1219 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1220 | else | |
1221 | humanoid.Health = humanoid.Health - dmg | |
1222 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1223 | end | |
1224 | local defence = Instance.new("BoolValue",hit.Parent) | |
1225 | defence.Name = ("HitBy"..Player.Name) | |
1226 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1227 | end | |
1228 | end | |
1229 | end | |
1230 | end | |
1231 | ||
1232 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
1233 | local dmg = math.random(min,max) | |
1234 | for i,v in ipairs(workspace:GetChildren()) do | |
1235 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1236 | local body = v:GetChildren() | |
1237 | for part = 1, #body do | |
1238 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1239 | if(body[part].Position - position).Magnitude < radius then | |
1240 | if v.ClassName == "Model" then | |
1241 | if v:FindFirstChild("Humanoid") then | |
1242 | if v.Humanoid.Health ~= 0 then | |
1243 | if CanBeDodgedByJumping == true then | |
1244 | if body[part].Position.Y < position.Y+5 then | |
1245 | if math.random(1,100) < critrate+1 then | |
1246 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1247 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1248 | else | |
1249 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1250 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1251 | end | |
1252 | local defence = Instance.new("BoolValue",v) | |
1253 | defence.Name = ("HitBy"..Player.Name) | |
1254 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1255 | end | |
1256 | else | |
1257 | if beserk == true then | |
1258 | v.Humanoid.Health = 0 | |
1259 | end | |
1260 | if math.random(1,100) < critrate+1 then | |
1261 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
1262 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1263 | else | |
1264 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
1265 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1266 | end | |
1267 | local defence = Instance.new("BoolValue",v) | |
1268 | defence.Name = ("HitBy"..Player.Name) | |
1269 | game:GetService("Debris"):AddItem(defence, 0.5) | |
1270 | end | |
1271 | end | |
1272 | end | |
1273 | end | |
1274 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1275 | end | |
1276 | end | |
1277 | end | |
1278 | if v.ClassName == "Part" then | |
1279 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1280 | --v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1281 | end | |
1282 | end | |
1283 | end | |
1284 | end | |
1285 | end | |
1286 | ||
1287 | function killnearest(position,range,maxstrength) | |
1288 | for i,v in ipairs(workspace:GetChildren()) do | |
1289 | local body = v:GetChildren() | |
1290 | for part = 1, #body do | |
1291 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1292 | if(body[part].Position - position).Magnitude < range then | |
1293 | if v.ClassName == "Model" then | |
1294 | v:BreakJoints() | |
1295 | end | |
1296 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1297 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1298 | end | |
1299 | end | |
1300 | end | |
1301 | if v.ClassName == "Part" then | |
1302 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1303 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1304 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1305 | end | |
1306 | end | |
1307 | end | |
1308 | end | |
1309 | ||
1310 | --//=================================\\ | |
1311 | --|| ATTACK FUNCTIONS AND STUFF | |
1312 | --\\=================================// | |
1313 | ||
1314 | ||
1315 | function turnto(pos,part) | |
1316 | part.CFrame = CF(part.Position,VT(pos.X,RootPart.Position.Y,pos.Z)) | |
1317 | end | |
1318 | ||
1319 | Humanoid.Died:connect(function() | |
1320 | q = workspace:GetChildren() | |
1321 | DEAD = true | |
1322 | CreatePentagram(1500,true,-0.1,150,CF(RootPart.Position),-15-3) | |
1323 | Head.Parent = nil | |
1324 | Head = nil | |
1325 | for i = 1, #q do | |
1326 | local child = q[i] | |
1327 | if child.ClassName == "Model" and child:FindFirstChild("Humanoid") then | |
1328 | child:BreakJoints() | |
1329 | end | |
1330 | end | |
1331 | local taunt = CreateSound("135009414", workspace, 10, 1) | |
1332 | local effect = IT("PitchShiftSoundEffect",taunt) | |
1333 | effect.Octave = 0.700 | |
1334 | ATTACK = true | |
1335 | end) | |
1336 | ||
1337 | function ClawForce() | |
1338 | ATTACK = true | |
1339 | for i=0, 2, 0.1 / Animation_Speed do | |
1340 | Swait() | |
1341 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1342 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1343 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1344 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1345 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1346 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1347 | ||
1348 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-65)), 0.4 / Animation_Speed) | |
1349 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
1350 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1351 | ||
1352 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(65)), 0.4 / Animation_Speed) | |
1353 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
1354 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1355 | end | |
1356 | CreateSound("134012322", Effects, 2, 1) | |
1357 | for i=0, 1, 0.1 / Animation_Speed2 do | |
1358 | Swait() | |
1359 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1360 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1361 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
1362 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1363 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1364 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1365 | ||
1366 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(8), RAD(-175)), 0.4 / Animation_Speed2) | |
1367 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed2) | |
1368 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-90), RAD(0)), 0.4 / Animation_Speed2) | |
1369 | ||
1370 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(-8), RAD(175)), 0.4 / Animation_Speed2) | |
1371 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed2) | |
1372 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(90), RAD(0)), 0.4 / Animation_Speed2) | |
1373 | end | |
1374 | killnearest(hand1.Position,15,60) | |
1375 | killnearest(hand2.Position,15,60) | |
1376 | CreateWave(0,15,false,0,15,CF(hand1.Position) * CF(0,-1,0),0,"Really black") | |
1377 | CreateWave(0,15,false,0,15,CF(hand2.Position) * CF(0,-1,0),0,"Really black") | |
1378 | CreateWave(0,10,false,0,15,CF(hand1.Position) * CF(0,-1,0),0,"Really black") | |
1379 | CreateWave(0,10,false,0,15,CF(hand2.Position) * CF(0,-1,0),0,"Really black") | |
1380 | CreateWave(0,5,false,0,15,CF(hand1.Position) * CF(0,-1,0),0,"Really black") | |
1381 | CreateWave(0,5,false,0,15,CF(hand2.Position) * CF(0,-1,0),0,"Really black") | |
1382 | CreateSound("1225807237", Effects, 4, 1) | |
1383 | for i=0, 0.5, 0.1 / Animation_Speed2 do | |
1384 | Swait() | |
1385 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1386 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1387 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed2) | |
1388 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1389 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1390 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1391 | ||
1392 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(8), RAD(-175)), 0.4 / Animation_Speed2) | |
1393 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed2) | |
1394 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-90), RAD(0)), 0.4 / Animation_Speed2) | |
1395 | ||
1396 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(15), RAD(-8), RAD(175)), 0.4 / Animation_Speed2) | |
1397 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed2) | |
1398 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(90), RAD(0)), 0.4 / Animation_Speed2) | |
1399 | end | |
1400 | ATTACK = false | |
1401 | end | |
1402 | ||
1403 | function HellLeash() | |
1404 | ATTACK = true | |
1405 | Rooted = true | |
1406 | CreateSound("159882578", Effects, 10, 0.6) | |
1407 | for i=0, 2, 0.1 / Animation_Speed do | |
1408 | Swait() | |
1409 | turnto(Mouse.Hit.p,RootPart) | |
1410 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1411 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.15 / Animation_Speed) | |
1412 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1413 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1414 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1415 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1416 | ||
1417 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-85), RAD(0), RAD(-95)) * ANGLES(RAD(0),RAD(0),RAD(90)), 0.4 / Animation_Speed) | |
1418 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-6), RAD(-5 * COS(SINE / 30)), RAD(0)), 0.4 / Animation_Speed) | |
1419 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1420 | ||
1421 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-8+(-5 * COS(SINE / 30))), RAD(135)), 0.4 / Animation_Speed) | |
1422 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-36), RAD(5 * COS(SINE / 30)), RAD(-35)), 0.4 / Animation_Speed) | |
1423 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1424 | end | |
1425 | CreateSound("910988901", Effects, 4, 1) | |
1426 | local sphere = IT("Part",Effects) | |
1427 | sphere.Shape = "Ball" | |
1428 | sphere.Size = VT(0,0,0) | |
1429 | sphere.Material = "Neon" | |
1430 | sphere.Color = C3(1,0,0) | |
1431 | sphere.CFrame = hand1.CFrame*CF(0,0,0) | |
1432 | sphere.Anchored = true | |
1433 | for i = 1, 25 do | |
1434 | Swait() | |
1435 | turnto(Mouse.Hit.p,RootPart) | |
1436 | sphere.CFrame = hand1.CFrame*CF(-3.5,-2-sphere.Size.Y/2,0) | |
1437 | sphere.Size = sphere.Size + VT(1,1,1) | |
1438 | sphere.Anchored = true | |
1439 | end | |
1440 | for i = 1, 100 do | |
1441 | turnto(Mouse.Hit.p,RootPart) | |
1442 | local RayData = Zap({Offset = 2, Size = sphere.Size.Y/5 ,MaxRange = 150 ,StartPosition = sphere.Position, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true}) | |
1443 | MagicSphere(5,15,RayData.RayPos,0,"Really red") | |
1444 | killnearest(RayData.RayPos,15,100) | |
1445 | Swait() | |
1446 | sphere.CFrame = hand1.CFrame*CF(-3.5,-2-sphere.Size.Y/2,0) | |
1447 | sphere.Size = sphere.Size - VT(0.25,0.25,0.25) | |
1448 | sphere.Anchored = true | |
1449 | RayData.LightningModel:remove() | |
1450 | end | |
1451 | ATTACK = false | |
1452 | Rooted = false | |
1453 | end | |
1454 | ||
1455 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1456 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1457 | end | |
1458 | ||
1459 | function SinnerWave() | |
1460 | ATTACK = true | |
1461 | Rooted = true | |
1462 | for i=0, 2, 0.1 / Animation_Speed do | |
1463 | Swait() | |
1464 | turnto(Mouse.Hit.p,RootPart) | |
1465 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1466 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1467 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1468 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1469 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1470 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1471 | ||
1472 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-65)), 0.4 / Animation_Speed) | |
1473 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
1474 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1475 | ||
1476 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(65)), 0.4 / Animation_Speed) | |
1477 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-86), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
1478 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1479 | end | |
1480 | CreateSound("971126018", Effects, 6, 1) | |
1481 | local angle = -60 | |
1482 | for i = 1, 9 do | |
1483 | coroutine.resume(coroutine.create(function() | |
1484 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character}) | |
1485 | local SpawnPosition = RayPos | |
1486 | local floor = RayHit | |
1487 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
1488 | local LastPosition = RayPos | |
1489 | local Delay = 1 | |
1490 | for i = 1, 15 do | |
1491 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace}) | |
1492 | local End = RayPos | |
1493 | LastPosition = End | |
1494 | local locatepart = Instance.new("Part",Effects) | |
1495 | locatepart.Size = VT(0.5,0.5,0.5) | |
1496 | locatepart.Position = End | |
1497 | locatepart.CanCollide = false | |
1498 | locatepart.Anchored = true | |
1499 | locatepart.Name = "Oof" | |
1500 | locatepart.Transparency = 1 | |
1501 | if SpawnPosition then | |
1502 | CreateSound("971125740", locatepart.CFrame, 7, 1) | |
1503 | killnearest(End,15,50) | |
1504 | CreateWave(0,5,true,0.1,15,CF(locatepart.Position),0,"Really black") | |
1505 | CreateWave(0,2.5,true,-0.1,15,CF(locatepart.Position),0,"Really black") | |
1506 | CreateWave(0,2,true,0.1,15,CF(locatepart.Position),0,"Really black") | |
1507 | CreateWave(0,1.5,true,-0.1,15,CF(locatepart.Position),0,"Really black") | |
1508 | end | |
1509 | Swait(5) | |
1510 | game:GetService("Debris"):AddItem(locatepart, 5) | |
1511 | end | |
1512 | end)) | |
1513 | angle = angle + 15 | |
1514 | end | |
1515 | for i=0, 2, 0.1 / Animation_Speed do | |
1516 | Swait() | |
1517 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1518 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1519 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(72)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1520 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-72)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1521 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1522 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1523 | ||
1524 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-125)), 0.4 / Animation_Speed) | |
1525 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
1526 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1527 | ||
1528 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(125)), 0.4 / Animation_Speed) | |
1529 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
1530 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1531 | end | |
1532 | ATTACK = false | |
1533 | Rooted = false | |
1534 | end | |
1535 | ||
1536 | function FromTheDepths() | |
1537 | ATTACK = true | |
1538 | Rooted = true | |
1539 | for i=0, 2, 0.1 / Animation_Speed do | |
1540 | Swait() | |
1541 | turnto(Mouse.Hit.p,RootPart) | |
1542 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1543 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1544 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(72)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1545 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(145), RAD(0), RAD(-72)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1546 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1547 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1548 | ||
1549 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-125)), 0.4 / Animation_Speed) | |
1550 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
1551 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1552 | ||
1553 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(125)), 0.4 / Animation_Speed) | |
1554 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-26), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
1555 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1556 | end | |
1557 | local pos = nil | |
1558 | repeat | |
1559 | Swait() | |
1560 | local RayData = Zap({Offset = 2, Size = 0.2 ,MaxRange = 150 ,StartPosition = CF(BottomPart.Position)*CF(0,-3,0).p, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true}) | |
1561 | MagicSphere(2,15,RayData.RayPos,0,"Really red") | |
1562 | pos = RayData.RayPos | |
1563 | Swait() | |
1564 | RayData.LightningModel:remove() | |
1565 | turnto(Mouse.Hit.p,RootPart) | |
1566 | until KEYHOLD == false | |
1567 | coroutine.resume(coroutine.create(function() | |
1568 | local gate = IT("Part",Effects) | |
1569 | gate.Material = "Neon" | |
1570 | gate.Color = C3(1,0,0) | |
1571 | gate.CanCollide = false | |
1572 | gate.Anchored = true | |
1573 | gate.Transparency = 1 | |
1574 | gate.Size = VT(65,0.3,65) | |
1575 | local mesh = IT("CylinderMesh",gate) | |
1576 | gate.CFrame = CF(pos) | |
1577 | local soundeffect = IT("Sound",gate) | |
1578 | soundeffect.SoundId = "rbxassetid://487186990" | |
1579 | soundeffect.Looped = true | |
1580 | soundeffect.Volume = 0 | |
1581 | soundeffect.Playing = true | |
1582 | for i = 1, 10 do | |
1583 | soundeffect.Volume = i | |
1584 | gate.Transparency = gate.Transparency - 0.1 | |
1585 | Swait() | |
1586 | end | |
1587 | for i = 1, 150 do | |
1588 | Swait(5) | |
1589 | killnearest(gate.Position,35,-10) | |
1590 | end | |
1591 | for i = 1, 10 do | |
1592 | soundeffect.Volume = soundeffect.Volume - 1 | |
1593 | gate.Transparency = gate.Transparency + 0.1 | |
1594 | Swait() | |
1595 | end | |
1596 | gate:remove() | |
1597 | end)) | |
1598 | for i=0, 2, 0.1 / Animation_Speed do | |
1599 | Swait() | |
1600 | turnto(Mouse.Hit.p,RootPart) | |
1601 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1602 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1603 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(52)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1604 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(-52)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1605 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1606 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1607 | ||
1608 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-55)), 0.4 / Animation_Speed) | |
1609 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
1610 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
1611 | ||
1612 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(55)), 0.4 / Animation_Speed) | |
1613 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
1614 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
1615 | end | |
1616 | ATTACK = false | |
1617 | Rooted = false | |
1618 | end | |
1619 | ||
1620 | function TheEnd() | |
1621 | local pos = RootPart.CFrame * CF(0,65,0).p | |
1622 | ATTACK = true | |
1623 | Rooted = true | |
1624 | for i=0, 2, 0.1 / Animation_Speed do | |
1625 | Swait() | |
1626 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1627 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1628 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(52)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1629 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(165), RAD(0), RAD(-52)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1630 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1631 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1632 | ||
1633 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(8), RAD(-55)), 0.4 / Animation_Speed) | |
1634 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(-5), RAD(0)), 0.4 / Animation_Speed) | |
1635 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.4 / Animation_Speed) | |
1636 | ||
1637 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(-8), RAD(55)), 0.4 / Animation_Speed) | |
1638 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-66), RAD(5), RAD(0)), 0.4 / Animation_Speed) | |
1639 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.4 / Animation_Speed) | |
1640 | end | |
1641 | if DEAD == false then | |
1642 | local sphere = IT("Part",Effects) | |
1643 | sphere.Shape = "Ball" | |
1644 | sphere.Size = VT(0,0,0) | |
1645 | sphere.Material = "Neon" | |
1646 | sphere.Color = C3(1,0,0) | |
1647 | sphere.CFrame = CF(pos) | |
1648 | sphere.Anchored = true | |
1649 | sphere.CanCollide = false | |
1650 | local maxdist1 = (hand1.Position-pos).magnitude | |
1651 | local maxdist2 = (hand2.Position-pos).magnitude | |
1652 | local soundeffect = IT("Sound",RootPart) | |
1653 | soundeffect.SoundId = "rbxassetid://379557765" | |
1654 | soundeffect.Looped = true | |
1655 | soundeffect.Volume = 10 | |
1656 | soundeffect.Playing = true | |
1657 | local hit = sphere.Touched:connect(function(hit) | |
1658 | if hit.Parent ~= Character and hit.Parent ~= Weapon and hit.Anchored == false and hit.CanCollide == true then | |
1659 | hit:Destroy() | |
1660 | end | |
1661 | end) | |
1662 | CreateSwirl(0,1,true,0.5,300,sphere.CFrame,0,"Really red") | |
1663 | for i = 1, 250 do | |
1664 | --local RayData = Zap({Offset = 2, Size = 0.2 ,MaxRange = 1500 ,StartPosition = CF(BottomPart.Position)*CF(0,-3,0).p, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true}) | |
1665 | local RayData2 = Zap({Offset = 2, Size = 0.2 ,MaxRange = maxdist1 ,StartPosition = hand1.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true}) | |
1666 | local RayData3 = Zap({Offset = 2, Size = 0.2 ,MaxRange = maxdist2 ,StartPosition = hand2.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true}) | |
1667 | Swait() | |
1668 | --RayData.LightningModel:remove() | |
1669 | RayData2.LightningModel:remove() | |
1670 | RayData3.LightningModel:remove() | |
1671 | sphere.Size = sphere.Size + VT(0.2,0.2,0.2) | |
1672 | end | |
1673 | soundeffect:remove() | |
1674 | Swait(50) | |
1675 | for i = 1, 5 do | |
1676 | CreateSound("821439273", sphere, 10, 0.7) | |
1677 | --local RayData = Zap({Offset = 2, Size = 0.2 ,MaxRange = 1500 ,StartPosition = CF(BottomPart.Position)*CF(0,-3,0).p, TargetPosition = Mouse.Hit.p, Character = Character, Color = "Really red", Individual = true}) | |
1678 | local RayData2 = Zap({Offset = 2, Size = 2 ,MaxRange = maxdist1 ,StartPosition = hand1.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true}) | |
1679 | local RayData3 = Zap({Offset = 2, Size = 2 ,MaxRange = maxdist2 ,StartPosition = hand2.Position, TargetPosition = pos, Character = Character, Color = "Really red", Individual = true}) | |
1680 | Swait() | |
1681 | sphere.Size = sphere.Size + VT(5,5,5) | |
1682 | Swait(15) | |
1683 | end | |
1684 | local laugh = CreateSound("160212892", Effects, 10, 0.7) | |
1685 | Swait(2) | |
1686 | repeat Swait() until laugh.Playing == false | |
1687 | local filter = IT("ColorCorrectionEffect",game.Lighting) | |
1688 | CreateSound("160745944", Effects, 10, 0.7) | |
1689 | for i = 1, 100 do | |
1690 | Swait() | |
1691 | MagicSphere(sphere.Size.Y/2,15,sphere.Position,0,"Really red") | |
1692 | MagicSphere(sphere.Size.Y/5,15,sphere.Position,0,"Really red") | |
1693 | MagicSphere(sphere.Size.Y/8,15,sphere.Position,0,"Really red") | |
1694 | sphere.Size = sphere.Size + VT(5,5,5) | |
1695 | filter.TintColor = C3(1,1-(i/100),1-(i/100)) | |
1696 | end | |
1697 | for i = 1, 100 do | |
1698 | Swait() | |
1699 | MagicSphere(sphere.Size.Y/2,15,sphere.Position,0,"Really red") | |
1700 | MagicSphere(sphere.Size.Y/5,15,sphere.Position,0,"Really red") | |
1701 | MagicSphere(sphere.Size.Y/8,15,sphere.Position,0,"Really red") | |
1702 | sphere.Size = sphere.Size + VT(5,5,5) | |
1703 | filter.Brightness = filter.Brightness - (1/100) | |
1704 | end | |
1705 | --killnearest(sphere.Position,1000,100) | |
1706 | sphere:remove() | |
1707 | Swait(50) | |
1708 | ATTACK = false | |
1709 | Rooted = false | |
1710 | for i = 1, 50 do | |
1711 | Swait() | |
1712 | filter.TintColor = C3(1,0+(i/50),0+(i/50)) | |
1713 | filter.Brightness = filter.Brightness + (1/50) | |
1714 | end | |
1715 | filter:remove() | |
1716 | end | |
1717 | end | |
1718 | ||
1719 | Humanoid.HealthChanged:connect(function() | |
1720 | if Humanoid.Health == 0 then | |
1721 | Humanoid.MaxHealth = "inf" | |
1722 | Humanoid.Health = "inf" | |
1723 | if ATTACK == false then | |
1724 | if Humanoid.Health == 0 then | |
1725 | workspace:ClearAllChildren() | |
1726 | else | |
1727 | TheEnd() | |
1728 | end | |
1729 | end | |
1730 | end | |
1731 | end) | |
1732 | ||
1733 | --//=================================\\ | |
1734 | --|| ASSIGN THINGS TO KEYS | |
1735 | --\\=================================// | |
1736 | ||
1737 | function MouseDown(Mouse) | |
1738 | if ATTACK == false then | |
1739 | end | |
1740 | end | |
1741 | ||
1742 | function MouseUp(Mouse) | |
1743 | HOLD = false | |
1744 | end | |
1745 | ||
1746 | function KeyDown(Key) | |
1747 | KEYHOLD = true | |
1748 | if Key == "z" and ATTACK == false then | |
1749 | ClawForce() | |
1750 | end | |
1751 | ||
1752 | if Key == "b" and ATTACK == false then | |
1753 | HellLeash() | |
1754 | end | |
1755 | ||
1756 | if Key == "c" and ATTACK == false then | |
1757 | SinnerWave() | |
1758 | end | |
1759 | ||
1760 | if Key == "v" and ATTACK == false then | |
1761 | FromTheDepths() | |
1762 | end | |
1763 | ||
1764 | if Key == "x" and ATTACK == false then | |
1765 | TheEnd() | |
1766 | end | |
1767 | ||
1768 | if Key == "t" and ATTACK == false then | |
1769 | CreateSound("907329893", Head, 10, 0.85) | |
1770 | end | |
1771 | end | |
1772 | ||
1773 | function KeyUp(Key) | |
1774 | KEYHOLD = false | |
1775 | end | |
1776 | ||
1777 | Mouse.Button1Down:connect(function(NEWKEY) | |
1778 | MouseDown(NEWKEY) | |
1779 | end) | |
1780 | Mouse.Button1Up:connect(function(NEWKEY) | |
1781 | MouseUp(NEWKEY) | |
1782 | end) | |
1783 | Mouse.KeyDown:connect(function(NEWKEY) | |
1784 | KeyDown(NEWKEY) | |
1785 | end) | |
1786 | Mouse.KeyUp:connect(function(NEWKEY) | |
1787 | KeyUp(NEWKEY) | |
1788 | end) | |
1789 | ||
1790 | --//=================================\\ | |
1791 | --\\=================================// | |
1792 | ||
1793 | ||
1794 | function unanchor() | |
1795 | if UNANCHOR == true then | |
1796 | g = Character:GetChildren() | |
1797 | for i = 1, #g do | |
1798 | if g[i].ClassName == "Part" then | |
1799 | g[i].Anchored = false | |
1800 | end | |
1801 | end | |
1802 | end | |
1803 | end | |
1804 | ||
1805 | ||
1806 | --//=================================\\ | |
1807 | --|| WRAP THE WHOLE SCRIPT UP | |
1808 | --\\=================================// | |
1809 | ||
1810 | Humanoid.Changed:connect(function(Jump) | |
1811 | if Jump == "Jump" and (Disable_Jump == true) then | |
1812 | Humanoid.Jump = false | |
1813 | end | |
1814 | end) | |
1815 | ||
1816 | ANIMATE.Parent = nil | |
1817 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1818 | IDLEANIMATION:Play() | |
1819 | ||
1820 | while true do | |
1821 | Swait() | |
1822 | SINE = SINE + CHANGE | |
1823 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1824 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1825 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1826 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1827 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1828 | if ATTACK == false then | |
1829 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1830 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1831 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1832 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1833 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1834 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1835 | ||
1836 | limbweld1a.C0 = Clerp(limbweld1a.C0, CF(5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(8+(5 * COS(SINE / 30))), RAD(-125)), 0.4 / Animation_Speed) | |
1837 | limbweld1b.C0 = Clerp(limbweld1b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-56), RAD(-5 * COS(SINE / 30)), RAD(0)), 0.4 / Animation_Speed) | |
1838 | limbweld1c.C0 = Clerp(limbweld1c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1839 | ||
1840 | limbweld2a.C0 = Clerp(limbweld2a.C0, CF(-5 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-25), RAD(-8+(-5 * COS(SINE / 30))), RAD(125)), 0.4 / Animation_Speed) | |
1841 | limbweld2b.C0 = Clerp(limbweld2b.C0, CF(0* Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-56), RAD(5 * COS(SINE / 30)), RAD(0)), 0.4 / Animation_Speed) | |
1842 | limbweld2c.C0 = Clerp(limbweld2c.C0, CF(0 * Player_Size, 8 * Player_Size, 0 * Player_Size) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.4 / Animation_Speed) | |
1843 | end | |
1844 | if #Effects2>0 then | |
1845 | for e=1,#Effects2 do | |
1846 | if Effects2[e]~=nil then | |
1847 | local Thing=Effects2[e] | |
1848 | if Thing~=nil then | |
1849 | local Part=Thing[1] | |
1850 | local Mode=Thing[2] | |
1851 | local Delay=Thing[3] | |
1852 | local IncX=Thing[4] | |
1853 | local IncY=Thing[5] | |
1854 | local IncZ=Thing[6] | |
1855 | local Part2=Thing[8] | |
1856 | if Thing[1].Transparency<=1 then | |
1857 | if Thing[2]=="Block1" then | |
1858 | Thing[1].CFrame=Thing[1].CFrame | |
1859 | Mesh=Thing[1].Mesh | |
1860 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1861 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1862 | elseif Thing[2]=="Cylinder" then | |
1863 | Mesh=Thing[1].Mesh | |
1864 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1865 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1866 | elseif Thing[2]=="Blood" then | |
1867 | Mesh=Thing[7] | |
1868 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
1869 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1870 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1871 | elseif Thing[2]=="Elec" then | |
1872 | Mesh=Thing[1].Mesh | |
1873 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
1874 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1875 | elseif Thing[2]=="Disappear" then | |
1876 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1877 | end | |
1878 | else | |
1879 | Part.Parent=nil | |
1880 | table.remove(Effects2,e) | |
1881 | end | |
1882 | end | |
1883 | end | |
1884 | end | |
1885 | end | |
1886 | unanchor() | |
1887 | Humanoid.MaxHealth = "inf" | |
1888 | Humanoid.Health = "inf" | |
1889 | if Rooted == false then | |
1890 | Disable_Jump = false | |
1891 | Humanoid.WalkSpeed = Speed | |
1892 | elseif Rooted == true then | |
1893 | Disable_Jump = true | |
1894 | Humanoid.WalkSpeed = 0 | |
1895 | end | |
1896 | q = Character:GetChildren() | |
1897 | for u = 1, #q do | |
1898 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
1899 | q[u]:remove() | |
1900 | elseif q[u].ClassName == "Shirt" then | |
1901 | q[u]:Destroy() | |
1902 | elseif q[u].ClassName == "Pants" then | |
1903 | q[u]:Destroy() | |
1904 | elseif q[u].ClassName == "CharacterMesh" then | |
1905 | q[u]:remove() | |
1906 | elseif q[u].ClassName == "ShirtGraphic" then | |
1907 | q[u]:remove() | |
1908 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
1909 | q[u].Color = Color3.new(0/255, 0/255, 0/255) | |
1910 | end | |
1911 | end | |
1912 | if Head:FindFirstChild("face") then | |
1913 | Head.face:remove() | |
1914 | end | |
1915 | end | |
1916 | ||
1917 | --//=================================\\ | |
1918 | --\\=================================// | |
1919 | ||
1920 | ||
1921 | ||
1922 | ||
1923 | ||
1924 | --//====================================================\\-- | |
1925 | --|| END OF SCRIPT | |
1926 | --\\====================================================//-- |