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