SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ||
7 | wait(0.2) | |
8 | ||
9 | - | Character = game.Players.LocalPlayer.Character |
9 | + | |
10 | - | Head = Character.Head |
10 | + | |
11 | PlayerGui = Player.PlayerGui | |
12 | - | CV="Red" |
12 | + | |
13 | - | p = game.Players.LocalPlayer |
13 | + | |
14 | - | char = p.Character |
14 | + | |
15 | - | local txt = Instance.new("BillboardGui", char) |
15 | + | |
16 | - | txt.Adornee = char .Head |
16 | + | |
17 | - | txt.Name = "_status" |
17 | + | |
18 | - | txt.Size = UDim2.new(2, 0, 1.2, 0) |
18 | + | |
19 | - | txt.StudsOffset = Vector3.new(-9, 8, 0) |
19 | + | |
20 | - | local text = Instance.new("TextLabel", txt) |
20 | + | |
21 | - | text.Size = UDim2.new(10, 0, 7, 0) |
21 | + | |
22 | - | text.FontSize = "Size24" |
22 | + | |
23 | - | text.TextScaled = true |
23 | + | |
24 | - | text.TextTransparency = 0 |
24 | + | |
25 | - | text.BackgroundTransparency = 1 |
25 | + | |
26 | - | text.TextTransparency = 0 |
26 | + | |
27 | - | text.TextStrokeTransparency = 0 |
27 | + | |
28 | - | text.Font = "Antique" |
28 | + | |
29 | - | text.TextStrokeColor3 = Color3.new(0,0,0) |
29 | + | |
30 | local sick = Instance.new("Sound",Character) | |
31 | - | v=Instance.new("Part") |
31 | + | sick.SoundId = "rbxassetid://1140442110" |
32 | - | v.Name = "ColorBrick" |
32 | + | |
33 | - | v.Parent=p.Character |
33 | + | sick.Pitch = 0.8 |
34 | - | v.FormFactor="Symmetric" |
34 | + | |
35 | - | v.Anchored=true |
35 | + | |
36 | - | v.CanCollide=false |
36 | + | |
37 | - | v.BottomSurface="Smooth" |
37 | + | |
38 | - | v.TopSurface="Smooth" |
38 | + | |
39 | - | v.Size=Vector3.new(10,5,3) |
39 | + | |
40 | - | v.Transparency=0.9 |
40 | + | |
41 | - | v.CFrame=char.Torso.CFrame |
41 | + | |
42 | - | v.BrickColor=BrickColor.new(CV) |
42 | + | |
43 | - | v.Transparency=0.9 |
43 | + | |
44 | - | text.TextColor3 = Color3.new(1,0,0) |
44 | + | |
45 | - | v.Shape="Block" |
45 | + | |
46 | - | text.Text = "Sin Dragoon " |
46 | + | |
47 | EULER = CFrame.fromEulerAnglesXYZ | |
48 | COS = math.cos | |
49 | ACOS = math.acos | |
50 | SIN = math.sin | |
51 | ASIN = math.asin | |
52 | ABS = math.abs | |
53 | MRANDOM = math.random | |
54 | FLOOR = math.floor | |
55 | ||
56 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
57 | local NEWMESH = IT(MESH) | |
58 | if MESH == "SpecialMesh" then | |
59 | NEWMESH.MeshType = MESHTYPE | |
60 | if MESHID ~= "nil" and MESHID ~= "" then | |
61 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
62 | end | |
63 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
64 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
65 | end | |
66 | end | |
67 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
68 | NEWMESH.Scale = SCALE | |
69 | - | sick.SoundId = "rbxassetid://1182824812" |
69 | + | |
70 | return NEWMESH | |
71 | - | sick.Pitch = 1 |
71 | + | |
72 | ||
73 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
74 | local NEWPART = IT("Part") | |
75 | NEWPART.formFactor = FORMFACTOR | |
76 | NEWPART.Reflectance = REFLECTANCE | |
77 | NEWPART.Transparency = TRANSPARENCY | |
78 | NEWPART.CanCollide = false | |
79 | NEWPART.Locked = true | |
80 | NEWPART.Anchored = true | |
81 | if ANCHOR == false then | |
82 | NEWPART.Anchored = false | |
83 | end | |
84 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
85 | NEWPART.Name = NAME | |
86 | NEWPART.Size = SIZE | |
87 | NEWPART.Position = Torso.Position | |
88 | NEWPART.Material = MATERIAL | |
89 | NEWPART:BreakJoints() | |
90 | NEWPART.Parent = PARENT | |
91 | return NEWPART | |
92 | end | |
93 | ||
94 | --//=================================\\ | |
95 | --|| CUSTOMIZATION | |
96 | --\\=================================// | |
97 | ||
98 | Player_Size = 0 --Size of the player. | |
99 | Animation_Speed = 3 | |
100 | Frame_Speed = 1 / 30 -- (1 / 20) OR (1 / 30) | |
101 | ||
102 | local Speed = 16 | |
103 | local Effects2 = {} | |
104 | ||
105 | --//=================================\\ | |
106 | --|| END OF CUSTOMIZATION | |
107 | --\\=================================// | |
108 | ||
109 | local function weldBetween(a, b) | |
110 | local weldd = Instance.new("ManualWeld") | |
111 | weldd.Part0 = a | |
112 | weldd.Part1 = b | |
113 | weldd.C0 = CFrame.new() | |
114 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
115 | weldd.Parent = a | |
116 | return weldd | |
117 | end | |
118 | ||
119 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
120 | local acs = Instance.new("Part") | |
121 | acs.CanCollide = false | |
122 | acs.Anchored = false | |
123 | acs.Size = Vector3.new(0,0,0) | |
124 | acs.CFrame = attachmentpart.CFrame | |
125 | acs.Parent = Character | |
126 | acs.BrickColor = color | |
127 | local meshs = Instance.new("SpecialMesh") | |
128 | meshs.MeshId = mesh | |
129 | meshs.TextureId = texture | |
130 | meshs.Parent = acs | |
131 | meshs.Scale = scale | |
132 | meshs.Offset = offset | |
133 | weldBetween(attachmentpart,acs) | |
134 | end | |
135 | ||
136 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
137 | if TYPE == "Gem" then | |
138 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
139 | acs.Anchored = false | |
140 | acs.CanCollide = false | |
141 | acs.CFrame = PART.CFrame | |
142 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
143 | acs.Texture = "http://www.roblox.com/asset/?id=0" | |
144 | weldBetween(PART,acs) | |
145 | elseif TYPE == "Skull" then | |
146 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
147 | acs.Anchored = false | |
148 | acs.CanCollide = false | |
149 | acs.CFrame = PART.CFrame | |
150 | acs.Texture = "http://www.roblox.com/asset/?id=0" | |
151 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
152 | weldBetween(PART,acs) | |
153 | elseif TYPE == "Eye" then | |
154 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
155 | acs.Anchored = false | |
156 | acs.CanCollide = false | |
157 | acs.CFrame = PART.CFrame | |
158 | acs.Texture = "http://www.roblox.com/asset/?id=0" | |
159 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
160 | weldBetween(PART,acs) | |
161 | end | |
162 | end | |
163 | ||
164 | --//=================================\\ | |
165 | --|| USEFUL VALUES | |
166 | --\\=================================// | |
167 | ||
168 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
169 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
170 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
171 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
172 | local CHANGEDEFENSE = 0 | |
173 | local CHANGEDAMAGE = 0 | |
174 | local CHANGEMOVEMENT = 0 | |
175 | local ANIM = "Idle" | |
176 | local ATTACK = false | |
177 | local EQUIPPED = false | |
178 | local HOLD = false | |
179 | local COMBO = 1 | |
180 | - | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "420077883", "", SIZE, OFFSET) |
180 | + | |
181 | - | acs.Texture = "http://www.roblox.com/asset/?id=420075957" |
181 | + | |
182 | local KEYHOLD = false | |
183 | local CHANGE = 2 / Animation_Speed | |
184 | local WALKINGANIM = false | |
185 | local WALK = 0 | |
186 | local VALUE1 = false | |
187 | local VALUE2 = false | |
188 | - | acs.Texture = "http://www.roblox.com/asset/?id=420075957" |
188 | + | |
189 | - | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "420077883", "", SIZE, OFFSET) |
189 | + | |
190 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
191 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
192 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
193 | WEAPONGUI.Name = "Weapon GUI" | |
194 | local Weapon = IT("Model") | |
195 | Weapon.Name = "Adds" | |
196 | - | acs.Texture = "http://www.roblox.com/asset/?id=420075957" |
196 | + | |
197 | Effects.Name = "Effects" | |
198 | local ANIMATOR = Humanoid.Animator | |
199 | local ANIMATE = Character.Animate | |
200 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
201 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
202 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
203 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
204 | local UNANCHOR = true | |
205 | ||
206 | local SKILLTEXTCOLOR = BRICKC"Maroon".Color | |
207 | ||
208 | --//=================================\\ | |
209 | --\\=================================// | |
210 | ||
211 | ||
212 | --//=================================\\ | |
213 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
214 | --\\=================================// | |
215 | ||
216 | ArtificialHB = Instance.new("BindableEvent", script) | |
217 | ArtificialHB.Name = "ArtificialHB" | |
218 | ||
219 | script:WaitForChild("ArtificialHB") | |
220 | ||
221 | frame = Frame_Speed | |
222 | tf = 0 | |
223 | allowframeloss = false | |
224 | tossremainder = false | |
225 | lastframe = tick() | |
226 | script.ArtificialHB:Fire() | |
227 | ||
228 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
229 | tf = tf + s | |
230 | if tf >= frame then | |
231 | if allowframeloss then | |
232 | script.ArtificialHB:Fire() | |
233 | lastframe = tick() | |
234 | else | |
235 | for i = 1, math.floor(tf / frame) do | |
236 | script.ArtificialHB:Fire() | |
237 | end | |
238 | lastframe = tick() | |
239 | end | |
240 | if tossremainder then | |
241 | tf = 0 | |
242 | else | |
243 | tf = tf - frame * math.floor(tf / frame) | |
244 | end | |
245 | end | |
246 | end) | |
247 | ||
248 | --//=================================\\ | |
249 | --\\=================================// | |
250 | ||
251 | ||
252 | ||
253 | ||
254 | ||
255 | --//=================================\\ | |
256 | --|| SOME FUNCTIONS | |
257 | --\\=================================// | |
258 | ||
259 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
260 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
261 | end | |
262 | ||
263 | function PositiveAngle(NUMBER) | |
264 | if NUMBER >= 0 then | |
265 | NUMBER = 0 | |
266 | end | |
267 | return NUMBER | |
268 | end | |
269 | ||
270 | function NegativeAngle(NUMBER) | |
271 | if NUMBER <= 0 then | |
272 | NUMBER = 0 | |
273 | end | |
274 | return NUMBER | |
275 | end | |
276 | ||
277 | function Swait(NUMBER) | |
278 | if NUMBER == 0 or NUMBER == nil then | |
279 | ArtificialHB.Event:wait() | |
280 | else | |
281 | for i = 1, NUMBER do | |
282 | ArtificialHB.Event:wait() | |
283 | end | |
284 | end | |
285 | end | |
286 | ||
287 | function QuaternionFromCFrame(cf) | |
288 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
289 | local trace = m00 + m11 + m22 | |
290 | if trace > 0 then | |
291 | local s = math.sqrt(1 + trace) | |
292 | local recip = 0.5 / s | |
293 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
294 | else | |
295 | local i = 0 | |
296 | if m11 > m00 then | |
297 | i = 1 | |
298 | end | |
299 | if m22 > (i == 0 and m00 or m11) then | |
300 | i = 2 | |
301 | end | |
302 | if i == 0 then | |
303 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
304 | local recip = 0.5 / s | |
305 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
306 | elseif i == 1 then | |
307 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
308 | local recip = 0.5 / s | |
309 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
310 | elseif i == 2 then | |
311 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
312 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
313 | end | |
314 | end | |
315 | end | |
316 | ||
317 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
318 | local xs, ys, zs = x + x, y + y, z + z | |
319 | local wx, wy, wz = w * xs, w * ys, w * zs | |
320 | local xx = x * xs | |
321 | local xy = x * ys | |
322 | local xz = x * zs | |
323 | local yy = y * ys | |
324 | local yz = y * zs | |
325 | local zz = z * zs | |
326 | 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)) | |
327 | end | |
328 | ||
329 | function QuaternionSlerp(a, b, t) | |
330 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
331 | local startInterp, finishInterp; | |
332 | if cosTheta >= 0.0001 then | |
333 | if (1 - cosTheta) > 0.0001 then | |
334 | local theta = ACOS(cosTheta) | |
335 | local invSinTheta = 1 / SIN(theta) | |
336 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
337 | finishInterp = SIN(t * theta) * invSinTheta | |
338 | else | |
339 | startInterp = 1 - t | |
340 | finishInterp = t | |
341 | end | |
342 | else | |
343 | if (1 + cosTheta) > 0.0001 then | |
344 | local theta = ACOS(-cosTheta) | |
345 | local invSinTheta = 1 / SIN(theta) | |
346 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
347 | finishInterp = SIN(t * theta) * invSinTheta | |
348 | else | |
349 | startInterp = t - 1 | |
350 | finishInterp = t | |
351 | end | |
352 | end | |
353 | 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 | |
354 | end | |
355 | ||
356 | function Clerp(a, b, t) | |
357 | local qa = {QuaternionFromCFrame(a)} | |
358 | local qb = {QuaternionFromCFrame(b)} | |
359 | local ax, ay, az = a.x, a.y, a.z | |
360 | local bx, by, bz = b.x, b.y, b.z | |
361 | local _t = 1 - t | |
362 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
363 | end | |
364 | ||
365 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
366 | local frame = IT("Frame") | |
367 | frame.BackgroundTransparency = TRANSPARENCY | |
368 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
369 | frame.Position = POSITION | |
370 | frame.Size = SIZE | |
371 | frame.BackgroundColor3 = COLOR | |
372 | frame.BorderColor3 = BORDERCOLOR | |
373 | frame.Name = NAME | |
374 | frame.Parent = PARENT | |
375 | return frame | |
376 | end | |
377 | ||
378 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
379 | local label = IT("TextLabel") | |
380 | label.BackgroundTransparency = 1 | |
381 | label.Size = UD2(1, 0, 1, 0) | |
382 | label.Position = UD2(0, 0, 0, 0) | |
383 | label.TextColor3 = TEXTCOLOR | |
384 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
385 | label.TextTransparency = TRANSPARENCY | |
386 | label.FontSize = TEXTFONTSIZE | |
387 | label.Font = TEXTFONT | |
388 | label.BorderSizePixel = BORDERSIZEPIXEL | |
389 | label.TextScaled = false | |
390 | label.Text = TEXT | |
391 | label.Name = NAME | |
392 | label.Parent = PARENT | |
393 | return label | |
394 | end | |
395 | ||
396 | function NoOutlines(PART) | |
397 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
398 | end | |
399 | ||
400 | ||
401 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
402 | local NEWWELD = IT(TYPE) | |
403 | NEWWELD.Part0 = PART0 | |
404 | NEWWELD.Part1 = PART1 | |
405 | NEWWELD.C0 = C0 | |
406 | NEWWELD.C1 = C1 | |
407 | NEWWELD.Parent = PARENT | |
408 | return NEWWELD | |
409 | end | |
410 | ||
411 | local sound = IT("Sound",nil) | |
412 | ||
413 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
414 | local NEWSOUND = nil | |
415 | coroutine.resume(coroutine.create(function() | |
416 | NEWSOUND = sound:Clone() | |
417 | NEWSOUND.Parent = PARENT | |
418 | NEWSOUND.Volume = VOLUME | |
419 | NEWSOUND.Pitch = PITCH | |
420 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
421 | Swait() | |
422 | NEWSOUND:play() | |
423 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
424 | end)) | |
425 | return NEWSOUND | |
426 | end | |
427 | ||
428 | function CFrameFromTopBack(at, top, back) | |
429 | local right = top:Cross(back) | |
430 | 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) | |
431 | end | |
432 | ||
433 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
434 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
435 | local mesh = IT("SpecialMesh",wave) | |
436 | mesh.MeshType = "FileMesh" | |
437 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
438 | mesh.Scale = SIZE | |
439 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
440 | wave.CFrame = CFRAME | |
441 | coroutine.resume(coroutine.create(function(PART) | |
442 | for i = 1, WAIT do | |
443 | Swait() | |
444 | mesh.Scale = mesh.Scale + GROW | |
445 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
446 | if DOESROT == true then | |
447 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
448 | end | |
449 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
450 | if wave.Transparency > 0.99 then | |
451 | wave:remove() | |
452 | end | |
453 | end | |
454 | end)) | |
455 | end | |
456 | ||
457 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
458 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
459 | local mesh = IT("SpecialMesh",wave) | |
460 | mesh.MeshType = "FileMesh" | |
461 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
462 | mesh.Scale = SIZE | |
463 | mesh.Offset = VT(0,0,0) | |
464 | wave.CFrame = CFRAME | |
465 | coroutine.resume(coroutine.create(function(PART) | |
466 | for i = 1, WAIT do | |
467 | Swait() | |
468 | mesh.Scale = mesh.Scale + GROW | |
469 | if DOESROT == true then | |
470 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
471 | end | |
472 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
473 | if wave.Transparency > 0.99 then | |
474 | wave:remove() | |
475 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=420077883" |
475 | + | |
476 | end | |
477 | end)) | |
478 | end | |
479 | ||
480 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
481 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
482 | local mesh = IT("SpecialMesh",wave) | |
483 | mesh.MeshType = "Sphere" | |
484 | mesh.Scale = SIZE | |
485 | mesh.Offset = VT(0,0,0) | |
486 | wave.CFrame = CFRAME | |
487 | coroutine.resume(coroutine.create(function(PART) | |
488 | for i = 1, WAIT do | |
489 | Swait() | |
490 | mesh.Scale = mesh.Scale + GROW | |
491 | wave.Transparency = wave.Transparency + (1/WAIT) | |
492 | if wave.Transparency > 0.99 then | |
493 | wave:remove() | |
494 | end | |
495 | end | |
496 | end)) | |
497 | end | |
498 | ||
499 | - | mesh.MeshId = "http://www.roblox.com/asset/?id=420077883" |
499 | + | |
500 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true) | |
501 | local mesh = IT("BlockMesh",wave) | |
502 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
503 | coroutine.resume(coroutine.create(function(PART) | |
504 | for i = 1, WAIT do | |
505 | Swait() | |
506 | mesh.Scale = mesh.Scale + GROW | |
507 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
508 | wave.Transparency = wave.Transparency + (1/WAIT) | |
509 | if wave.Transparency > 0.99 then | |
510 | wave:remove() | |
511 | end | |
512 | end | |
513 | end)) | |
514 | end | |
515 | ||
516 | function MakeForm(PART,TYPE) | |
517 | if TYPE == "Cyl" then | |
518 | local MSH = IT("CylinderMesh",PART) | |
519 | elseif TYPE == "Ball" then | |
520 | local MSH = IT("SpecialMesh",PART) | |
521 | MSH.MeshType = "Sphere" | |
522 | elseif TYPE == "Wedge" then | |
523 | local MSH = IT("SpecialMesh",PART) | |
524 | MSH.MeshType = "Wedge" | |
525 | elseif TYPE == "Gem" then | |
526 | CreateMesh("SpecialMesh", PART, "FileMesh", "9756362", "", PART.Size, VT(0,0,0)) | |
527 | end | |
528 | end | |
529 | ||
530 | function CheckTableForString(Table, String) | |
531 | for i, v in pairs(Table) do | |
532 | if string.find(string.lower(String), string.lower(v)) then | |
533 | return true | |
534 | end | |
535 | end | |
536 | return false | |
537 | end | |
538 | ||
539 | function CheckIntangible(Hit) | |
540 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
541 | if Hit and Hit.Parent then | |
542 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
543 | return true | |
544 | end | |
545 | end | |
546 | return false | |
547 | end | |
548 | ||
549 | Debris = game:GetService("Debris") | |
550 | ||
551 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
552 | if FLOOR ~= nil then | |
553 | coroutine.resume(coroutine.create(function() | |
554 | local PART = CreatePart(3, Effects, "Neon", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
555 | PART.CFrame = CF(POSITION) | |
556 | for i = 1, 45 do | |
557 | local RingPiece = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
558 | RingPiece.Material = FLOOR.Material | |
559 | RingPiece.Color = FLOOR.Color | |
560 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
561 | Debris:AddItem(RingPiece,SWAIT/100) | |
562 | end | |
563 | PART:remove() | |
564 | - | CreateMesh("SpecialMesh", PART, "FileMesh", "420077883", "", PART.Size, VT(0,0,0)) |
564 | + | |
565 | end | |
566 | end | |
567 | ||
568 | function CreatePentagram(size,doesrotate,rotatedirection,waitt,cframe,offset) | |
569 | local sinkhole = IT("Part",Effects) | |
570 | sinkhole.Size = VT(size,0,size) | |
571 | sinkhole.CFrame = cframe * CF(0,offset,0) | |
572 | sinkhole.Material = "Neon" | |
573 | sinkhole.Color = C3(1,0,0) | |
574 | sinkhole.Anchored = true | |
575 | sinkhole.CanCollide = false | |
576 | sinkhole.Transparency = 1 | |
577 | local decal = IT("Decal",sinkhole) | |
578 | decal.Face = "Top" | |
579 | decal.Texture = "http://www.roblox.com/asset/?id=818983932" | |
580 | coroutine.resume(coroutine.create(function(PART) | |
581 | for i = 1, waitt do | |
582 | Swait() | |
583 | if doesrotate == true then | |
584 | sinkhole.CFrame = sinkhole.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
585 | end | |
586 | if i > waitt-11 then | |
587 | decal.Transparency = decal.Transparency + 0.1 | |
588 | end | |
589 | end | |
590 | sinkhole:remove() | |
591 | end)) | |
592 | return sinkhole | |
593 | end | |
594 | ||
595 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
596 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
597 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
598 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
599 | if RayHit and CheckIntangible(RayHit) then | |
600 | if DelayIfHit then | |
601 | wait() | |
602 | end | |
603 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
604 | end | |
605 | return RayHit, RayPos, RayNormal | |
606 | end | |
607 | ||
608 | function turnto(position) | |
609 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
610 | end | |
611 | ||
612 | --//=================================\\ | |
613 | --|| WEAPON CREATION | |
614 | --\\=================================// | |
615 | ||
616 | function CreateNeonCircle(ATTACHPART,POSITION,SIZE,DOESSPIN,COLOR,MATERIAL,THICKNESS,WIDTH) | |
617 | local PART = CreatePart(3, Weapon, MATERIAL, 0, 1, COLOR, "CirclePart", VT(0,0,0),false) | |
618 | for i = 1, 45 do | |
619 | local RingPiece = CreatePart(3, Weapon, MATERIAL, 0, 0, COLOR, "CirclePart", VT(THICKNESS,WIDTH,SIZE*0.65),false) | |
620 | local RingWeld = CreateWeldOrSnapOrMotor("Weld", RingPiece, PART, RingPiece, CF(0, 0, 0) * ANGLES(RAD(0), RAD(i*8), RAD(0)), CF(0, 0, 0) * CF(SIZE*4, 0, 0)) | |
621 | end | |
622 | local PartWeld = CreateWeldOrSnapOrMotor("Weld", ATTACHPART, PART, ATTACHPART, POSITION * ANGLES(RAD(0), RAD(0), RAD(0)),CF(0, 0, 0)) | |
623 | coroutine.resume(coroutine.create(function() | |
624 | --[[if DOESSPIN == true then | |
625 | while true do | |
626 | wait() | |
627 | PartWeld.C0 = Clerp(PartWeld.C0, POSITION * ANGLES(RAD(0), RAD(SINE*2), RAD(0)), 1) | |
628 | end | |
629 | end]]-- | |
630 | end)) | |
631 | end | |
632 | ||
633 | local naeeym2 = Instance.new("BillboardGui",Character) | |
634 | naeeym2.AlwaysOnTop = true | |
635 | naeeym2.Size = UDim2.new(5,35,2,35) | |
636 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
637 | naeeym2.Adornee = Character.Head | |
638 | naeeym2.Name = "Name" | |
639 | naeeym2.PlayerToHideFrom = Player | |
640 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
641 | tecks2.BackgroundTransparency = 1 | |
642 | tecks2.TextScaled = true | |
643 | tecks2.BorderSizePixel = 0 | |
644 | tecks2.Text = "Sin Ultimate" | |
645 | tecks2.Font = "Antique" | |
646 | tecks2.TextSize = 30 | |
647 | tecks2.TextStrokeTransparency = 0.9 | |
648 | tecks2.TextColor3 = Color3.new(0,0,0) | |
649 | tecks2.TextStrokeColor3 = Color3.new(1,0,0) | |
650 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
651 | tecks2.Parent = naeeym2 | |
652 | ||
653 | Humanoid.DisplayDistanceType = "None" | |
654 | Humanoid.Name = "Sin" | |
655 | ||
656 | local Shield = IT("Part",Weapon) | |
657 | Shield.Name = "Barrier" | |
658 | Shield.Shape = "Ball" | |
659 | Shield.Material = "Neon" | |
660 | Shield.Color = C3(1,0,0) | |
661 | Shield.Transparency = 0.8 | |
662 | Shield.Size = VT(0.5,0.5,0.5) | |
663 | local mesh = IT("SpecialMesh",Shield) | |
664 | mesh.MeshType = "Sphere" | |
665 | mesh.Scale = VT(13,13,13) | |
666 | Shield.CFrame = RootPart.CFrame | |
667 | weldBetween(RootPart,Shield) | |
668 | ||
669 | local COLOR = "Maroon" | |
670 | local COLOR2 = "Really black" | |
671 | ||
672 | 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) | |
673 | local mesh = Instance.new("SpecialMesh",gear) | |
674 | mesh.MeshType = "FileMesh" | |
675 | mesh.MeshId = "rbxassetid://156292343" | |
676 | mesh.Scale = VT(10,10,10) | |
677 | 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)) | |
678 | 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) | |
679 | local mesh = Instance.new("SpecialMesh",gear) | |
680 | mesh.MeshType = "FileMesh" | |
681 | mesh.MeshId = "rbxassetid://156292343" | |
682 | mesh.Scale = VT(7,7,7) | |
683 | 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)) | |
684 | 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) | |
685 | local mesh = Instance.new("SpecialMesh",gear) | |
686 | mesh.MeshType = "FileMesh" | |
687 | mesh.MeshId = "rbxassetid://156292343" | |
688 | mesh.Scale = VT(5,5,5) | |
689 | 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)) | |
690 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Handle", VT(1*Player_Size,6*Player_Size,1*Player_Size),false) | |
691 | local mesh = Instance.new("SpecialMesh",BottomPart) | |
692 | mesh.MeshType = "Sphere" | |
693 | 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)) | |
694 | ||
695 | --CreateNeonCircle(RootPart,CF(0,2,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.7,false,COLOR,"Neon",0.2,0.2) | |
696 | --CreateNeonCircle(RootPart,CF(0,1.5,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.8,false,COLOR,"Neon",0.2,0.2) | |
697 | --CreateNeonCircle(RootPart,CF(0,1,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.85,false,COLOR,"Neon",0.2,0.2) | |
698 | CreateNeonCircle(Head,CF(0,-0.55,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.07,false,COLOR,"Neon",0.05,0.05) | |
699 | CreateNeonCircle(RootPart,CF(0,4.4,0)*ANGLES(RAD(0),RAD(0),RAD(0)),1,true,COLOR,"Neon",0,0) | |
700 | CreateNeonCircle(RootPart,CF(0,3.7,0)*ANGLES(RAD(0),RAD(0),RAD(0)),1,true,COLOR,"Neon",0,0) | |
701 | ||
702 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35,0.35,0.35),false) | |
703 | local mesh = Instance.new("SpecialMesh",gear) | |
704 | mesh.MeshType = "FileMesh" | |
705 | mesh.MeshId = "rbxassetid://156292343" | |
706 | mesh.Scale = VT(10,10,10) | |
707 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0, 0, -3.3) * ANGLES(RAD(0), RAD(70), RAD(0)), CF(0, 0, 0)) | |
708 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35,0.35,0.35),false) | |
709 | local mesh = Instance.new("SpecialMesh",gear) | |
710 | mesh.MeshType = "FileMesh" | |
711 | mesh.MeshId = "rbxassetid://156292343" | |
712 | mesh.Scale = VT(7,7,7) | |
713 | - | mesh.MeshId = "rbxassetid://420077883" |
713 | + | |
714 | ||
715 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35,0.35,0.35),false) | |
716 | local mesh = Instance.new("SpecialMesh",gear) | |
717 | mesh.MeshType = "FileMesh" | |
718 | mesh.MeshId = "rbxassetid://156292343" | |
719 | - | mesh.MeshId = "rbxassetid://420077883" |
719 | + | |
720 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0, 0, -3.3) * ANGLES(RAD(0), RAD(-70), RAD(0)), CF(0, 0, 0)) | |
721 | local gear = CreatePart(3, Weapon, "Neon", 0, 0, "Really black", "Gear", VT(0.35,0.35,0.35),false) | |
722 | local mesh = Instance.new("SpecialMesh",gear) | |
723 | mesh.MeshType = "FileMesh" | |
724 | mesh.MeshId = "rbxassetid://156292343" | |
725 | - | mesh.MeshId = "rbxassetid://420077883" |
725 | + | |
726 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, gear, RootPart, CF(0, 0, -4.3) * ANGLES(RAD(0), RAD(-70), RAD(0)), CF(0, 0, 0)) | |
727 | ||
728 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, COLOR2, "Handle", VT(1*Player_Size,4*Player_Size,1*Player_Size),false) | |
729 | MakeForm(BottomPart,"Cyl") | |
730 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, BottomPart, RootPart, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
731 | ||
732 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, COLOR2, "Handle", VT(3,3,3),false) | |
733 | local mesh = Instance.new("SpecialMesh",BottomPart) | |
734 | mesh.MeshType = "Sphere" | |
735 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, BottomPart, RootPart, CF(-5,0,-1.9) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
736 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, COLOR2, "Handle", VT(3,3,3),false) | |
737 | local mesh = Instance.new("SpecialMesh",BottomPart) | |
738 | mesh.MeshType = "Sphere" | |
739 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, BottomPart, RootPart, CF(5,0,-1.9) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
740 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, COLOR2, "Handle", VT(4*Player_Size,2*Player_Size,4*Player_Size),false) | |
741 | local mesh = Instance.new("SpecialMesh",BottomPart) | |
742 | mesh.MeshType = "Sphere" | |
743 | - | mesh.MeshId = "rbxassetid://420077883" |
743 | + | |
744 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, COLOR2, "Handle", VT(2*Player_Size,4*Player_Size,2*Player_Size),false) | |
745 | local mesh = Instance.new("SpecialMesh",BottomPart) | |
746 | mesh.MeshType = "Sphere" | |
747 | 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)) | |
748 | local BottomPart = CreatePart(3, Weapon, "Neon", 0, 0, COLOR2, "Handle", VT(1*Player_Size,4*Player_Size,1*Player_Size),false) | |
749 | - | mesh.MeshId = "rbxassetid://420077883" |
749 | + | |
750 | local weld = CreateWeldOrSnapOrMotor("Weld", RootPart, BottomPart, RootPart, CF(0 * Player_Size, 6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
751 | ||
752 | function MakeHand() | |
753 | local Part1 = nil | |
754 | local HandWeld = nil | |
755 | local HAND = Weapon | |
756 | - | mesh.MeshId = "rbxassetid://420077883" |
756 | + | |
757 | MakeForm(Part1,"Ball") | |
758 | HandWeld = CreateWeldOrSnapOrMotor("Weld", RootPart, Part1, RootPart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
759 | CreateNeonCircle(Part1,CF(0,1,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.8,false,COLOR,"Neon",0.1,0.1) | |
760 | local Part = CreatePart(3, HAND, "Neon", 0, 0, COLOR, "HandPart", VT(2.01,0.05,2.01),false) | |
761 | MakeForm(Part,"Cyl") | |
762 | - | mesh.MeshId = "rbxassetid://420077883" |
762 | + | |
763 | local Part = CreatePart(3, HAND, "Neon", 0, 0, COLOR, "HandPart", VT(2.01,0.05,2.01),false) | |
764 | MakeForm(Part,"Cyl") | |
765 | CreateWeldOrSnapOrMotor("Weld", Part1, Part, Part1, CF(0,0,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
766 | local Part = CreatePart(3, HAND, "Neon", 0, 0, COLOR, "HandPart", VT(2.01,0.05,2.01),false) | |
767 | MakeForm(Part,"Cyl") | |
768 | CreateWeldOrSnapOrMotor("Weld", Part1, Part, Part1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
769 | --CreateNeonCircle(Part1,CF(0,0,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.35,false,COLOR2,"SmoothPlastic",0.7,0.1) | |
770 | CreateNeonCircle(Part1,CF(0,0,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.4,false,COLOR2,"SmoothPlastic",0.7,0.1) | |
771 | CreateNeonCircle(Part1,CF(0,0,0)*ANGLES(RAD(90),RAD(0),RAD(0)),0.43,false,COLOR,"Neon",0.7,0.08) | |
772 | local Parta = CreatePart(3, HAND, "SmoothPlastic", 0, 1, COLOR2, "FingerJoint", VT(0,0,0),false) | |
773 | CreateWeldOrSnapOrMotor("Weld", Part1, Parta, Part1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
774 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,3,0.7),false) | |
775 | MakeForm(Part,"Cyl") | |
776 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
777 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(0.71,0.2,0.71),false) | |
778 | MakeForm(Part,"Cyl") | |
779 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
780 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(1.2,1.2,1.2),false) | |
781 | MakeForm(Part,"Gem") | |
782 | Part.Mesh.Offset = VT(0,-0.65,0) | |
783 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,3.55/1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
784 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,1.5,0.7),false) | |
785 | MakeForm(Part,"Cyl") | |
786 | Part.Mesh.Offset = VT(0,-1,0.5) | |
787 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,2/1.5,-2.5/1.5) * ANGLES(RAD(-45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
788 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(1.2,3,1.2),false) | |
789 | MakeForm(Part,"Gem") | |
790 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,-3/1.5,6/1.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
791 | local Parta = CreatePart(3, HAND, "Glass", 0, 1, COLOR2, "FingerJoint", VT(0,0,0),false) | |
792 | CreateWeldOrSnapOrMotor("Weld", Part1, Parta, Part1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(125)), CF(0, 0, 0)) | |
793 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,3,0.7),false) | |
794 | MakeForm(Part,"Cyl") | |
795 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
796 | local Part = CreatePart(3, HAND, "Neon", 0, 0, COLOR, "FingerPart", VT(0.71,0.2,0.71),false) | |
797 | MakeForm(Part,"Cyl") | |
798 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
799 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(1.2,1.2,1.2),false) | |
800 | MakeForm(Part,"Gem") | |
801 | Part.Mesh.Offset = VT(0,-0.65,0) | |
802 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,3.55/1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
803 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,1.5,0.7),false) | |
804 | MakeForm(Part,"Cyl") | |
805 | Part.Mesh.Offset = VT(0,-1,0.5) | |
806 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,2/1.5,-2.5/1.5) * ANGLES(RAD(-45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
807 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(1.2,3,1.2),false) | |
808 | MakeForm(Part,"Gem") | |
809 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,-3/1.5,6/1.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
810 | local Parta = CreatePart(3, HAND, "Glass", 0, 1, COLOR2, "FingerJoint", VT(0,0,0),false) | |
811 | CreateWeldOrSnapOrMotor("Weld", Part1, Parta, Part1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, 0, 0)) | |
812 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,3,0.7),false) | |
813 | MakeForm(Part,"Cyl") | |
814 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
815 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(0.71,0.2,0.71),false) | |
816 | MakeForm(Part,"Cyl") | |
817 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
818 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(1.2,1.2,1.2),false) | |
819 | MakeForm(Part,"Gem") | |
820 | Part.Mesh.Offset = VT(0,-0.65,0) | |
821 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,3.55/1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
822 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,1.5,0.7),false) | |
823 | MakeForm(Part,"Cyl") | |
824 | Part.Mesh.Offset = VT(0,-1,0.5) | |
825 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,2/1.5,-2.5/1.5) * ANGLES(RAD(-45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
826 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(1.2,3,1.2),false) | |
827 | MakeForm(Part,"Gem") | |
828 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,-3/1.5,6/1.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
829 | local Parta = CreatePart(3, HAND, "Glass", 0, 1, COLOR2, "FingerJoint", VT(0,0,0),false) | |
830 | CreateWeldOrSnapOrMotor("Weld", Part1, Parta, Part1, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(-180)), CF(0, 0, 0)) | |
831 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,3,0.7),false) | |
832 | MakeForm(Part,"Cyl") | |
833 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
834 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(0.71,0.2,0.71),false) | |
835 | MakeForm(Part,"Cyl") | |
836 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, -2, 0)) | |
837 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(1.2,1.2,1.2),false) | |
838 | MakeForm(Part,"Gem") | |
839 | Part.Mesh.Offset = VT(0,-0.65,0) | |
840 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,3.55/1.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
841 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR2, "FingerPart", VT(0.7,1.5,0.7),false) | |
842 | MakeForm(Part,"Cyl") | |
843 | Part.Mesh.Offset = VT(0,-1,0.5) | |
844 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,2/1.5,-2.5/1.5) * ANGLES(RAD(-45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
845 | local Part = CreatePart(3, HAND, "Glass", 0, 0, COLOR, "FingerPart", VT(1.2,3,1.2),false) | |
846 | MakeForm(Part,"Gem") | |
847 | CreateWeldOrSnapOrMotor("Weld", Parta, Part, Parta, CF(0,-3/1.5,6/1.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
848 | for _, c in pairs(HAND:GetChildren()) do | |
849 | if c.ClassName == "Part" then | |
850 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
851 | if c.Material ~= Enum.Material.Neon then | |
852 | c.Color = C3(0,0,0) | |
853 | end | |
854 | end | |
855 | end | |
856 | return Part1, HandWeld | |
857 | end | |
858 | ||
859 | local Palm1, ArmWeld1 = MakeHand() | |
860 | local Palm2, ArmWeld2 = MakeHand() | |
861 | local Palm3, ArmWeld3 = MakeHand() | |
862 | local Palm4, ArmWeld4 = MakeHand() | |
863 | ||
864 | for _, c in pairs(Weapon:GetChildren()) do | |
865 | if c.ClassName == "Part" then | |
866 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
867 | if c.Material ~= Enum.Material.Neon then | |
868 | c.Color = C3(0,0,0) | |
869 | end | |
870 | end | |
871 | end | |
872 | ||
873 | Weapon.Parent = Character | |
874 | ||
875 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
876 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
877 | 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") | |
878 | 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") | |
879 | 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") | |
880 | ||
881 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Claw Force", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 1") | |
882 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Sinner Wave", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 2") | |
883 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Depth's Rage", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 3") | |
884 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Hellfire sync", SKILLTEXTCOLOR, 8, "Garamond", 0, 2, 1, "Text 4") | |
885 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] True power of Sin", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 5") | |
886 | ||
887 | --//=================================\\ | |
888 | --|| DAMAGING | |
889 | --\\=================================// | |
890 | ||
891 | function killnearest(position,range) | |
892 | for i,v in ipairs(workspace:GetChildren()) do | |
893 | local body = v:GetChildren() | |
894 | for part = 1, #body do | |
895 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
896 | if(body[part].Position - position).Magnitude < range then | |
897 | if v.ClassName == "Model" then | |
898 | v:BreakJoints() | |
899 | end | |
900 | end | |
901 | end | |
902 | end | |
903 | end | |
904 | end | |
905 | ||
906 | function fling(position,range,maxstrength) | |
907 | for i,v in ipairs(workspace:GetChildren()) do | |
908 | local body = v:GetChildren() | |
909 | for part = 1, #body do | |
910 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
911 | if(body[part].Position - position).Magnitude < range and body[part]:FindFirstChild("Flung") == nil then | |
912 | local bv = Instance.new("BodyVelocity") | |
913 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
914 | bv.Name = "Flung" | |
915 | bv.velocity = CF(position,body[part].Position).lookVector*maxstrength | |
916 | bv.Parent = body[part] | |
917 | Debris:AddItem(bv,0.2) | |
918 | end | |
919 | end | |
920 | end | |
921 | end | |
922 | end | |
923 | - | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] True power of Dragoon", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 5") |
923 | + | |
924 | --//=================================\\ | |
925 | --|| ATTACK FUNCTIONS AND STUFF | |
926 | --\\=================================// | |
927 | ||
928 | function CastProperRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
929 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
930 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
931 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
932 | if RayHit and CheckIntangible(RayHit) then | |
933 | if DelayIfHit then | |
934 | wait() | |
935 | end | |
936 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
937 | end | |
938 | return RayHit, RayPos, RayNormal | |
939 | end | |
940 | ||
941 | Humanoid.Died:connect(function() | |
942 | q = workspace:GetChildren() | |
943 | --CreatePentagram(1500,true,-0.1,150,CF(RootPart.Position),-3) | |
944 | Head.Parent = nil | |
945 | Head = nil | |
946 | for i = 1, #q do | |
947 | local child = q[i] | |
948 | if child.ClassName == "Model" and child:FindFirstChild("Humanoid") then | |
949 | child:BreakJoints() | |
950 | end | |
951 | end | |
952 | local taunt = CreateSound("135009414", workspace, 10, 1) | |
953 | local effect = IT("PitchShiftSoundEffect",taunt) | |
954 | effect.Octave = 0.80 | |
955 | ATTACK = true | |
956 | end) | |
957 | ||
958 | Humanoid.HealthChanged:connect(function() | |
959 | if Humanoid.Health == 1 then | |
960 | Humanoid.MaxHealth = "inf" | |
961 | Humanoid.Health = "inf" | |
962 | end | |
963 | end) | |
964 | ||
965 | function PoseAllOut() | |
966 | coroutine.resume(coroutine.create(function() | |
967 | for i=0, 1, 0.1 / Animation_Speed do | |
968 | Swait() | |
969 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
970 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
971 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(180), RAD(-145)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
972 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-5), RAD(180), RAD(145)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
973 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
974 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
975 | end | |
976 | end)) | |
977 | end | |
978 | ||
979 | function PoseArmCrossed() | |
980 | coroutine.resume(coroutine.create(function() | |
981 | for i=0, 1, 0.1 / Animation_Speed do | |
982 | Swait() | |
983 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
984 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
985 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5, -1) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
986 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.5) * ANGLES(RAD(25), RAD(0), RAD(85)) * LEFTSHOULDERC0, 0.4 / Animation_Speed) | |
987 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
988 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(45)), 0.5 / Animation_Speed) | |
989 | end | |
990 | end)) | |
991 | end | |
992 | - | effect.Octave = 0.700 |
992 | + | |
993 | function PoseGoForward() | |
994 | coroutine.resume(coroutine.create(function() | |
995 | for i=0, 1, 0.1 / Animation_Speed do | |
996 | Swait() | |
997 | - | if Humanoid.Health == 0 then |
997 | + | |
998 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 0.5 / Animation_Speed) | |
999 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1000 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1001 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1002 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1003 | end | |
1004 | end)) | |
1005 | end | |
1006 | ||
1007 | function ClawForce() | |
1008 | ATTACK = true | |
1009 | Rooted = false | |
1010 | PoseArmCrossed() | |
1011 | for i=0, 2, 0.1 / Animation_Speed do | |
1012 | Swait() | |
1013 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(10 + 0.75,8,0) * ANGLES(RAD(-15), RAD(25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1014 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(-10 - 0.75,8,0) * ANGLES(RAD(-15), RAD(-25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1015 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(13 + 0.75,-4,0) * ANGLES(RAD(-25), RAD(35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1016 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(-13 - 0.75,-4,0) * ANGLES(RAD(-25), RAD(-35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1017 | end | |
1018 | Rooted = true | |
1019 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1020 | Swait() | |
1021 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(18,0,15) * ANGLES(RAD(90), RAD(25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1022 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(-18,0,15) * ANGLES(RAD(90), RAD(-25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1023 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(18,-15,15) * ANGLES(RAD(90), RAD(35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1024 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(-18,-15,15) * ANGLES(RAD(90), RAD(-35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1025 | end | |
1026 | CreateWave(VT(15,0,15),45,CF(Palm1.Position)*CF(0,-2,0),true,-0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1027 | CreateWave(VT(15,0,15),45,CF(Palm1.Position)*CF(0,-2,0),true,0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1028 | CreateWave(VT(15,0,15),45,CF(Palm2.Position)*CF(0,-2,0),true,-0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1029 | CreateWave(VT(15,0,15),45,CF(Palm2.Position)*CF(0,-2,0),true,0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1030 | CreateWave(VT(15,0,15),45,CF(Palm3.Position)*CF(0,-2,0),true,-0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1031 | CreateWave(VT(15,0,15),45,CF(Palm3.Position)*CF(0,-2,0),true,0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1032 | CreateWave(VT(15,0,15),45,CF(Palm4.Position)*CF(0,-2,0),true,-0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1033 | CreateWave(VT(15,0,15),45,CF(Palm4.Position)*CF(0,-2,0),true,0.2,COLOR2,VT(0.2,0.25,0.2)) | |
1034 | killnearest(Palm1.Position,15) | |
1035 | killnearest(Palm2.Position,15) | |
1036 | killnearest(Palm3.Position,15) | |
1037 | killnearest(Palm4.Position,15) | |
1038 | CreateSound("289842971", Effects, 3, 0.8) | |
1039 | CreateSound("289842971", Effects, 3, 1) | |
1040 | for i=0, 1, 0.1 / Animation_Speed do | |
1041 | Swait() | |
1042 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(18,0,15) * ANGLES(RAD(90), RAD(25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1043 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(-18,0,15) * ANGLES(RAD(90), RAD(-25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1044 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(18,-15,15) * ANGLES(RAD(90), RAD(35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1045 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(-18,-15,15) * ANGLES(RAD(90), RAD(-35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1046 | end | |
1047 | ATTACK = false | |
1048 | Rooted = false | |
1049 | end | |
1050 | ||
1051 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1052 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1053 | end | |
1054 | ||
1055 | function SinnerWave() | |
1056 | ATTACK = true | |
1057 | Rooted = false | |
1058 | PoseAllOut() | |
1059 | local angle = -35 | |
1060 | for i = 1, 3 do | |
1061 | turnto(Mouse.Hit.p) | |
1062 | coroutine.resume(coroutine.create(function() | |
1063 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character}) | |
1064 | local SpawnPosition = RayPos | |
1065 | local floor = RayHit | |
1066 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
1067 | local LastPosition = RayPos | |
1068 | local Delay = 1 | |
1069 | for i = 1, 4 do | |
1070 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 25, {workspace}) | |
1071 | local End = RayPos | |
1072 | LastPosition = End | |
1073 | local locatepart = Instance.new("Part",Effects) | |
1074 | locatepart.Size = VT(0.5,0.5,0.5) | |
1075 | locatepart.Position = End | |
1076 | locatepart.CanCollide = false | |
1077 | locatepart.Anchored = true | |
1078 | locatepart.Name = "Oof" | |
1079 | locatepart.Transparency = 1 | |
1080 | if SpawnPosition and i ~= 4 then | |
1081 | CreateSound("971125740", locatepart, 7, 1) | |
1082 | killnearest(End,15) | |
1083 | CreateWave(VT(2,0,2),45,CF(End),true,-0.2,COLOR2,VT(1,0.2,1)) | |
1084 | CreateWave(VT(2,0,2),45,CF(End),true,0.2,COLOR2,VT(1,0.2,1)) | |
1085 | for i = 1, 5 do | |
1086 | CreateRing(VT(52,13,52),false,0,45,CF(End) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(-52,-3,-52)/45) | |
1087 | end | |
1088 | end | |
1089 | if i == 4 then | |
1090 | CreateWave(VT(15,0,15),125,CF(End),true,-0.2,COLOR,VT(1,0.2,1)) | |
1091 | CreateWave(VT(15,0,15),125,CF(End),true,0.2,COLOR,VT(1,0.2,1)) | |
1092 | CreateSound("215270668", Effects, 3, 1) | |
1093 | coroutine.resume(coroutine.create(function() | |
1094 | local BEAM = CreatePart(3, Effects, "Glass", 0, 0.3, BRICKC(COLOR), "Effect", VT(35,100000,35)) | |
1095 | BEAM.CFrame = CF(End) | |
1096 | MakeForm(BEAM,"Cyl") | |
1097 | local BEAM1 = CreatePart(3, Effects, "Glass", 0, 0.3, BRICKC(COLOR), "Effect", VT(22.5,100000,22.5)) | |
1098 | BEAM1.CFrame = CF(End) | |
1099 | MakeForm(BEAM1,"Cyl") | |
1100 | local BEAM2 = CreatePart(3, Effects, "Glass", 0, 0.3, BRICKC(COLOR), "Effect", VT(10,100000,10)) | |
1101 | BEAM2.CFrame = CF(End) | |
1102 | MakeForm(BEAM2,"Cyl") | |
1103 | for i = 1, 125 do | |
1104 | Swait() | |
1105 | local CFRAME = CF(End)*CF(MRANDOM(-2,2),0,MRANDOM(-2,2)) | |
1106 | fling(End,45,100) | |
1107 | killnearest(End,35) | |
1108 | BEAM.CFrame = CFRAME | |
1109 | BEAM1.CFrame = CFRAME | |
1110 | BEAM2.CFrame = CFRAME | |
1111 | BEAM.Transparency = BEAM.Transparency + (0.7/125) | |
1112 | BEAM1.Transparency = BEAM.Transparency | |
1113 | BEAM2.Transparency = BEAM.Transparency | |
1114 | end | |
1115 | BEAM:remove() | |
1116 | BEAM1:remove() | |
1117 | BEAM2:remove() | |
1118 | end)) | |
1119 | end | |
1120 | Swait(35) | |
1121 | game:GetService("Debris"):AddItem(locatepart, 5) | |
1122 | end | |
1123 | end)) | |
1124 | angle = angle + 35 | |
1125 | end | |
1126 | ATTACK = false | |
1127 | Rooted = false | |
1128 | end | |
1129 | ||
1130 | function DepthsRage() | |
1131 | ATTACK = true | |
1132 | Rooted = true | |
1133 | CreateSound("463598785", Effects, 7, 1) | |
1134 | for i=0, 3, 0.1 / Animation_Speed do | |
1135 | Swait() | |
1136 | CreateRing(VT(0,0,0),false,0,10,CF(Palm1.Position) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(5,0.2,5)) | |
1137 | CreateRing(VT(0,0,0),false,0,10,CF(Palm2.Position) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(5,0.2,5)) | |
1138 | CreateRing(VT(0,0,0),false,0,10,CF(Palm3.Position) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(5,0.2,5)) | |
1139 | CreateRing(VT(0,0,0),false,0,10,CF(Palm4.Position) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(5,0.2,5)) | |
1140 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(0,-10,0) * ANGLES(RAD(0), RAD(0), RAD(-135)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1141 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(0,-10,0) * ANGLES(RAD(0), RAD(0), RAD(135)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1142 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(0,-10,0) * ANGLES(RAD(0), RAD(0), RAD(-45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1143 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(0,-10,0) * ANGLES(RAD(0), RAD(0), RAD(45)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1144 | end | |
1145 | CreatePentagram(185,true,0.2,170,RootPart.CFrame*CF(0,-15,0),VT(0,0,0)) | |
1146 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(130,100000,130)) | |
1147 | BEAM.CFrame = CF(RootPart.Position) | |
1148 | MakeForm(BEAM,"Cyl") | |
1149 | local BEAM1 = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(130*0.66,100000,130*0.66)) | |
1150 | BEAM1.CFrame = CF(RootPart.Position) | |
1151 | MakeForm(BEAM1,"Cyl") | |
1152 | local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(130*0.33,100000,130*0.33)) | |
1153 | BEAM2.CFrame = CF(RootPart.Position) | |
1154 | MakeForm(BEAM2,"Cyl") | |
1155 | CreateSound("215270668", Effects, 3, 0.8) | |
1156 | for i = 1, 155 do | |
1157 | Swait() | |
1158 | CreateWave(VT(2,0,2),15,CF(RootPart.Position)*CF(0,-15,0),true,-0.2,COLOR2,VT(5,0.4,5)) | |
1159 | CreateWave(VT(2,0,2),15,CF(RootPart.Position)*CF(0,-15,0),true,0.2,COLOR2,VT(5,0.4,5)) | |
1160 | local CFRAME = CF(RootPart.Position)*CF(MRANDOM(-2,2),0,MRANDOM(-2,2)) | |
1161 | fling(RootPart.Position,80,100) | |
1162 | killnearest(RootPart.Position,70) | |
1163 | BEAM.CFrame = CFRAME | |
1164 | BEAM1.CFrame = CFRAME | |
1165 | BEAM2.CFrame = CFRAME | |
1166 | BEAM.Transparency = BEAM.Transparency + (0.7/155) | |
1167 | BEAM1.Transparency = BEAM.Transparency | |
1168 | BEAM2.Transparency = BEAM.Transparency | |
1169 | CreateRing(VT(0,0,0),false,0,10,CF(RootPart.Position)*CF(0,-15,0) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(15,0.2,15)) | |
1170 | end | |
1171 | BEAM:remove() | |
1172 | BEAM1:remove() | |
1173 | BEAM2:remove() | |
1174 | ATTACK = false | |
1175 | Rooted = false | |
1176 | end | |
1177 | ||
1178 | function HellfireSync() | |
1179 | ATTACK = true | |
1180 | Rooted = false | |
1181 | PoseGoForward() | |
1182 | MagicSphere(VT(15,15,15),25,Palm1.CFrame,COLOR2,VT(-15,-15,-15)/25) | |
1183 | MagicSphere(VT(15,15,15),25,Palm2.CFrame,COLOR2,VT(-15,-15,-15)/25) | |
1184 | MagicSphere(VT(15,15,15),25,Palm3.CFrame,COLOR2,VT(-15,-15,-15)/25) | |
1185 | MagicSphere(VT(15,15,15),25,Palm4.CFrame,COLOR2,VT(-15,-15,-15)/25) | |
1186 | for i=0, 2, 0.1 / Animation_Speed do | |
1187 | Swait() | |
1188 | turnto(Mouse.Hit.p) | |
1189 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(0,0,10) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1190 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(0,0,10) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1191 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(0,0,10) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1192 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(0,0,10) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1193 | end | |
1194 | CreateSound("463598785", Effects, 7, 1) | |
1195 | for i = 1, 65 do | |
1196 | Swait() | |
1197 | turnto(Mouse.Hit.p) | |
1198 | CreateRing(VT(62,13,62),false,0,50,CF(Palm1.Position) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(-62,-3,-62)/45) | |
1199 | end | |
1200 | CreateSound("160212892", Effects, 7, 0.8) | |
1201 | for i = 1, 50 do | |
1202 | Swait() | |
1203 | turnto(Mouse.Hit.p) | |
1204 | end | |
1205 | Rooted = true | |
1206 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(50,100000,50)) | |
1207 | MakeForm(BEAM,"Cyl") | |
1208 | local BEAM1 = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(50.5,100000,50.5)) | |
1209 | MakeForm(BEAM1,"Cyl") | |
1210 | local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(20,100000,20)) | |
1211 | MakeForm(BEAM2,"Cyl") | |
1212 | CreateSound("215270668", Effects, 3, 0.5) | |
1213 | for i = 1, 175 do | |
1214 | RootPart.CFrame = RootPart.CFrame * CF(0,0,0.1) | |
1215 | local a = MRANDOM(-2,2) | |
1216 | local b = MRANDOM(-2,2) | |
1217 | local c = MRANDOM(-2,2) | |
1218 | CreateRing(VT(0,0,0),false,0,10,CF(Palm1.Position) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),COLOR,VT(5,0.2,5)) | |
1219 | local RayHit, Way = CastProperRay(Palm1.CFrame*CF(0,0,-5)*CF(a,b,c).p,CF(Mouse.Hit.p)*CF(a,b,c).p,2000,Character) | |
1220 | turnto(Mouse.Hit.p) | |
1221 | local distance = (CF(Palm1.Position)*CF(a,b,c).p - Way).magnitude | |
1222 | BEAM.CFrame = CFrame.new(Palm1.CFrame*CF(0,0,-15)*CF(a,b,c).p, Way) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1223 | BEAM.Size = Vector3.new(35, distance+15, 35) | |
1224 | BEAM1.CFrame = CFrame.new(Palm1.CFrame*CF(0,0,-15)*CF(a,b,c).p, Way) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1225 | BEAM1.Size = Vector3.new(22.5, distance+15, 22.5) | |
1226 | BEAM2.CFrame = CFrame.new(Palm1.CFrame*CF(0,0,-15)*CF(a,b,c).p, Way) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
1227 | BEAM2.Size = Vector3.new(10, distance+15, 10) | |
1228 | BEAM.Transparency = BEAM.Transparency + (0.7/175) | |
1229 | BEAM1.Transparency = BEAM.Transparency | |
1230 | BEAM2.Transparency = BEAM.Transparency | |
1231 | killnearest(Way,35) | |
1232 | fling(Way,50,15) | |
1233 | Swait() | |
1234 | end | |
1235 | BEAM:remove() | |
1236 | BEAM1:remove() | |
1237 | BEAM2:remove() | |
1238 | ATTACK = false | |
1239 | Rooted = false | |
1240 | end | |
1241 | ||
1242 | function clerp(a, b, t) | |
1243 | return a:lerp(b, t) | |
1244 | - | local BEAM = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(35,100000,35)) |
1244 | + | |
1245 | ||
1246 | - | local BEAM1 = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(22.5,100000,22.5)) |
1246 | + | |
1247 | local A = clerp(startpos, pos2, t) | |
1248 | - | local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0.3, BRICKC(COLOR), "Effect", VT(10,100000,10)) |
1248 | + | |
1249 | local C = clerp(pos3, endpos, t) | |
1250 | local lerp1 = clerp(A, B, t) | |
1251 | local lerp2 = clerp(B, C, t) | |
1252 | local cubic = clerp(lerp1, lerp2, t) | |
1253 | return cubic | |
1254 | end | |
1255 | ||
1256 | function SoulSteal(Target,SOUL) | |
1257 | local newball = Instance.new("Part", workspace) | |
1258 | newball.Anchored = true | |
1259 | newball.Shape = "Ball" | |
1260 | newball.Material = "Neon" | |
1261 | newball.Size = Vector3.new(0,0,0) | |
1262 | newball.CanCollide = false | |
1263 | newball.CFrame = CF(Target) | |
1264 | newball.BrickColor = BRICKC"Maroon" | |
1265 | newball.Transparency = 1 | |
1266 | local POS = SOUL.Position | |
1267 | local onefourth = Target:Lerp(POS, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
1268 | local threefourths = Target:Lerp(POS, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25)) | |
1269 | local A1 = IT("Attachment",newball) | |
1270 | A1.Position = Vector3.new(0, 1.5, 0) | |
1271 | local A2 = IT("Attachment",newball) | |
1272 | A2.Position = Vector3.new(0, -1.5, 0) | |
1273 | local Trail = IT("Trail",newball) | |
1274 | Trail.LightEmission = 1 | |
1275 | Trail.FaceCamera = true | |
1276 | Trail.Texture = "rbxassetid://250037586" | |
1277 | Trail.Attachment0 = A1 | |
1278 | Trail.Attachment1 = A2 | |
1279 | Trail.Lifetime = 20 | |
1280 | Trail.MinLength = 10 | |
1281 | Trail.Transparency = NumberSequence.new(0, 1) | |
1282 | Trail.Color = ColorSequence.new(newball.Color) | |
1283 | coroutine.resume(coroutine.create(function() | |
1284 | for i = 0, 1, 0.07 do | |
1285 | Swait() | |
1286 | newball.CFrame = CFrame.new(newBezier(Target, onefourth, threefourths, POS, i)) | |
1287 | end | |
1288 | newball.Transparency = 1 | |
1289 | CreateSound("138167455", SOUL, 10, MRANDOM(8,12)/10) | |
1290 | SOUL.Size = SOUL.Size + VT(1,1,1) | |
1291 | game:GetService("Debris"):AddItem(newball, 5) | |
1292 | end)) | |
1293 | end | |
1294 | ||
1295 | function TruePowerOfSin() | |
1296 | ATTACK = true | |
1297 | Rooted = true | |
1298 | PoseAllOut() | |
1299 | local q = workspace:GetChildren() | |
1300 | for i = 1, #q do | |
1301 | if q[i]:FindFirstChildOfClass("Humanoid") and q[i] ~= Character then | |
1302 | local HUMAN = q[i]:FindFirstChildOfClass("Humanoid") | |
1303 | local TORS = q[i]:FindFirstChild("Torso") or q[i]:FindFirstChild("UpperTorso") | |
1304 | local grav = Instance.new("BodyPosition",TORS) | |
1305 | grav.P = 0 | |
1306 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1307 | grav.position = TORS.Position + VT(0,0,0) | |
1308 | grav.Name = "GravityForce" | |
1309 | VALUE2 = true | |
1310 | CreateSound("535528169", TORS, 5, MRANDOM(8,12)/10) | |
1311 | end | |
1312 | end | |
1313 | if VALUE2 == true then | |
1314 | - | Trail.Texture = "rbxassetid://217971729" |
1314 | + | |
1315 | SOULSPHERE.CFrame = CF(RootPart.Position+VT(0,75,0)) | |
1316 | MakeForm(SOULSPHERE,"Ball") | |
1317 | VALUE1 = true | |
1318 | Swait(50) | |
1319 | for i = 1, 25 do | |
1320 | Swait(5) | |
1321 | for i = 1, #q do | |
1322 | if q[i]:FindFirstChildOfClass("Humanoid") and q[i] ~= Character then | |
1323 | local HUMAN = q[i]:FindFirstChildOfClass("Humanoid") | |
1324 | local TORS = q[i]:FindFirstChild("Torso") or q[i]:FindFirstChild("UpperTorso") | |
1325 | SoulSteal(TORS.Position,SOULSPHERE) | |
1326 | local R = q[i]:GetChildren() | |
1327 | - | CreateSound("511715134", SOUL, 10, MRANDOM(8,12)/10) |
1327 | + | |
1328 | - | SOUL.Size = SOUL.Size + VT(0.5,0.5,0.5) |
1328 | + | |
1329 | R[o].Disabled = true | |
1330 | R[o]:remove() | |
1331 | R[o]:Destroy() | |
1332 | end | |
1333 | end | |
1334 | Swait() | |
1335 | end | |
1336 | end | |
1337 | end | |
1338 | for i = 1, #q do | |
1339 | if q[i]:FindFirstChildOfClass("Humanoid") and q[i] ~= Character then | |
1340 | local HUMAN = q[i]:FindFirstChildOfClass("Humanoid") | |
1341 | local TORS = q[i]:FindFirstChild("Torso") or q[i]:FindFirstChild("UpperTorso") | |
1342 | SoulSteal(TORS.Position,SOULSPHERE) | |
1343 | if TORS.Parent.Parent ~= nil and TORS ~= nil then | |
1344 | TORS.GravityForce:remove() | |
1345 | local R = q[i]:GetChildren() | |
1346 | for o = 1, #R do | |
1347 | if R[o].ClassName == "LocalScript" or R[o].ClassName == "Script" then | |
1348 | - | CreateSound("138167455", TORS, 5, MRANDOM(8,12)/10) |
1348 | + | |
1349 | R[o]:remove() | |
1350 | R[o]:Destroy() | |
1351 | end | |
1352 | end | |
1353 | HUMAN:remove() | |
1354 | end | |
1355 | end | |
1356 | end | |
1357 | coroutine.resume(coroutine.create(function() | |
1358 | Swait(100) | |
1359 | CreateSound("535528169", SOULSPHERE, 10, MRANDOM(8,12)/10) | |
1360 | MagicSphere(SOULSPHERE.Size,30,SOULSPHERE.CFrame,COLOR,SOULSPHERE.Size/60) | |
1361 | for i = 1, 50 do | |
1362 | Swait() | |
1363 | SOULSPHERE.Size = SOULSPHERE.Size * 3 | |
1364 | end | |
1365 | SOULSPHERE:remove() | |
1366 | end)) | |
1367 | end | |
1368 | VALUE2 = false | |
1369 | VALUE1 = false | |
1370 | ATTACK = false | |
1371 | Rooted = false | |
1372 | end | |
1373 | ||
1374 | --//=================================\\ | |
1375 | --|| ASSIGN THINGS TO KEYS | |
1376 | --\\=================================// | |
1377 | ||
1378 | function MouseDown(Mouse) | |
1379 | if ATTACK == false then | |
1380 | end | |
1381 | end | |
1382 | ||
1383 | function MouseUp(Mouse) | |
1384 | HOLD = false | |
1385 | end | |
1386 | ||
1387 | function KeyDown(Key) | |
1388 | KEYHOLD = true | |
1389 | if Key == "z" and ATTACK == false then | |
1390 | ClawForce() | |
1391 | end | |
1392 | ||
1393 | if Key == "b" and ATTACK == false then | |
1394 | SinnerWave() | |
1395 | end | |
1396 | ||
1397 | if Key == "c" and ATTACK == false then | |
1398 | DepthsRage() | |
1399 | end | |
1400 | ||
1401 | - | SOULSPHERE.Size = SOULSPHERE.Size * 2 |
1401 | + | |
1402 | HellfireSync() | |
1403 | end | |
1404 | ||
1405 | if Key == "x" and ATTACK == false then | |
1406 | TruePowerOfSin() | |
1407 | end | |
1408 | ||
1409 | if Key == "t" and ATTACK == false then | |
1410 | CreateSound("907328384", Effects, 5, 0.8) | |
1411 | end | |
1412 | end | |
1413 | ||
1414 | function KeyUp(Key) | |
1415 | KEYHOLD = false | |
1416 | end | |
1417 | ||
1418 | Mouse.Button1Down:connect(function(NEWKEY) | |
1419 | MouseDown(NEWKEY) | |
1420 | end) | |
1421 | Mouse.Button1Up:connect(function(NEWKEY) | |
1422 | MouseUp(NEWKEY) | |
1423 | end) | |
1424 | Mouse.KeyDown:connect(function(NEWKEY) | |
1425 | KeyDown(NEWKEY) | |
1426 | end) | |
1427 | Mouse.KeyUp:connect(function(NEWKEY) | |
1428 | KeyUp(NEWKEY) | |
1429 | end) | |
1430 | ||
1431 | --//=================================\\ | |
1432 | --\\=================================// | |
1433 | ||
1434 | ||
1435 | function unanchor() | |
1436 | if UNANCHOR == true then | |
1437 | g = Character:GetChildren() | |
1438 | for i = 1, #g do | |
1439 | if g[i].ClassName == "Part" then | |
1440 | g[i].Anchored = false | |
1441 | end | |
1442 | end | |
1443 | g = Weapon:GetChildren() | |
1444 | for i = 1, #g do | |
1445 | if g[i].ClassName == "Part" then | |
1446 | g[i].Anchored = false | |
1447 | end | |
1448 | end | |
1449 | end | |
1450 | end | |
1451 | ||
1452 | ||
1453 | --//=================================\\ | |
1454 | --|| WRAP THE WHOLE SCRIPT UP | |
1455 | --\\=================================// | |
1456 | ||
1457 | Humanoid.Changed:connect(function(Jump) | |
1458 | if Jump == "Jump" and (Disable_Jump == true) then | |
1459 | Humanoid.Jump = false | |
1460 | end | |
1461 | end) | |
1462 | ||
1463 | local FF = IT("ForceField",Character) | |
1464 | FF.Visible = false | |
1465 | ||
1466 | Humanoid.HipHeight = 15 | |
1467 | Speed = 50 | |
1468 | ||
1469 | while true do | |
1470 | Swait() | |
1471 | ANIMATE.Parent = nil | |
1472 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1473 | IDLEANIMATION:Play() | |
1474 | SINE = SINE + CHANGE | |
1475 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1476 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1477 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1478 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1479 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1480 | if ATTACK == false then | |
1481 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(10 + 0.75 * COS(SINE / 52),10 + 0.25 * COS(SINE / 52),0) * ANGLES(RAD(15), RAD(25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1482 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(-10 - 0.75 * COS(SINE / 52),10 + 0.25 * COS(SINE / 52),0) * ANGLES(RAD(15), RAD(-25), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1483 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(13 + 0.75 * COS(SINE / 52),-2 + 0.25 * COS(SINE / 52),0) * ANGLES(RAD(25), RAD(35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1484 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(-13 - 0.75 * COS(SINE / 52),-2 + 0.25 * COS(SINE / 52),0) * ANGLES(RAD(25), RAD(-35), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1485 | end | |
1486 | if TORSOVELOCITY < 1 then | |
1487 | ANIM = "Idle" | |
1488 | if ATTACK == false then | |
1489 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1490 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1491 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1492 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1493 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1494 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1495 | end | |
1496 | elseif TORSOVELOCITY > 1 then | |
1497 | ANIM = "Walk" | |
1498 | WALK = WALK + 1 / Animation_Speed | |
1499 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1500 | WALK = 0 | |
1501 | if WALKINGANIM == true then | |
1502 | WALKINGANIM = false | |
1503 | elseif WALKINGANIM == false then | |
1504 | WALKINGANIM = true | |
1505 | end | |
1506 | end | |
1507 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1508 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1509 | if ATTACK == false then | |
1510 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1511 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1512 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1513 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1514 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1515 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1516 | end | |
1517 | end | |
1518 | sick.Parent = Character | |
1519 | unanchor() | |
1520 | Humanoid.MaxHealth = "inf" | |
1521 | Humanoid.Health = "inf" | |
1522 | if Rooted == false then | |
1523 | Disable_Jump = false | |
1524 | Humanoid.WalkSpeed = Speed | |
1525 | elseif Rooted == true then | |
1526 | Disable_Jump = true | |
1527 | Humanoid.WalkSpeed = 0 | |
1528 | end | |
1529 | if Head:FindFirstChild("face") then | |
1530 | Head.face:remove() | |
1531 | end | |
1532 | if VALUE1 == true then | |
1533 | MagicBlock(2,30,Palm1.CFrame,COLOR,VT(-0.01,-0.01,-0.01)) | |
1534 | MagicBlock(2,30,Palm2.CFrame,COLOR,VT(-0.01,-0.01,-0.01)) | |
1535 | MagicBlock(2,30,Palm3.CFrame,COLOR,VT(-0.01,-0.01,-0.01)) | |
1536 | MagicBlock(2,30,Palm4.CFrame,COLOR,VT(-0.01,-0.01,-0.01)) | |
1537 | ArmWeld1.C0 = Clerp(ArmWeld1.C0, CF(0,0,15) * ANGLES(RAD(0), RAD(135+(SINE*5)), RAD(0)), 2 / Animation_Speed) | |
1538 | ArmWeld2.C0 = Clerp(ArmWeld2.C0, CF(0,0,15) * ANGLES(RAD(0), RAD(-135+(SINE*5)), RAD(0)), 2 / Animation_Speed) | |
1539 | ArmWeld3.C0 = Clerp(ArmWeld3.C0, CF(0,0,15) * ANGLES(RAD(0), RAD(45+(SINE*5)), RAD(0)), 2 / Animation_Speed) | |
1540 | ArmWeld4.C0 = Clerp(ArmWeld4.C0, CF(0,0,15) * ANGLES(RAD(0), RAD(-45+(SINE*5)), RAD(0)), 2 / Animation_Speed) | |
1541 | end | |
1542 | q = Character:GetChildren() | |
1543 | for u = 1, #q do | |
1544 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
1545 | q[u]:remove() | |
1546 | elseif q[u].ClassName == "Shirt" then | |
1547 | q[u]:Destroy() | |
1548 | elseif q[u].ClassName == "Pants" then | |
1549 | q[u]:Destroy() | |
1550 | elseif q[u].ClassName == "CharacterMesh" then | |
1551 | q[u]:remove() | |
1552 | elseif q[u].ClassName == "ShirtGraphic" then | |
1553 | q[u]:remove() | |
1554 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
1555 | q[u].Color = Color3.new(0/255, 0/255, 0/255) | |
1556 | end | |
1557 | end | |
1558 | end | |
1559 | ||
1560 | --//=================================\\ | |
1561 | --\\=================================// | |
1562 | ||
1563 | ||
1564 | ||
1565 | ||
1566 | ||
1567 | --//====================================================\\-- | |
1568 | --|| END OF SCRIPT | |
1569 | --\\=============================================== |