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