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