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