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,game,owner = owner,game | |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | ||
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | script.Name = "Savior" | |
146 | --//====================================================\\-- | |
147 | --|| CREATED BY SHACKLUSTER EDITED BY DUCKILES | |
148 | --\\====================================================//-- | |
149 | script:ClearAllChildren() | |
150 | wait(0.2) | |
151 | ||
152 | Sound0 = Instance.new("Sound") | |
153 | Sound0.Volume = 9.3 | |
154 | Sound0.Parent = game.Players.LocalPlayer.Character.Head | |
155 | Sound0.SoundId = "rbxassetid://1383202399" | |
156 | Sound0.Looped = true | |
157 | Sound0:Play() | |
158 | ||
159 | Player = game:GetService("Players").LocalPlayer | |
160 | PlayerGui = Player.PlayerGui | |
161 | Cam = workspace.CurrentCamera | |
162 | Backpack = Player.Backpack | |
163 | Character = Player.Character | |
164 | Humanoid = Character.Humanoid | |
165 | Mouse = Player:GetMouse() | |
166 | RootPart = Character["HumanoidRootPart"] | |
167 | Torso = Character["Torso"] | |
168 | Head = Character["Head"] | |
169 | RightArm = Character["Right Arm"] | |
170 | LeftArm = Character["Left Arm"] | |
171 | RightLeg = Character["Right Leg"] | |
172 | LeftLeg = Character["Left Leg"] | |
173 | RootJoint = RootPart["RootJoint"] | |
174 | Neck = Torso["Neck"] | |
175 | RightShoulder = Torso["Right Shoulder"] | |
176 | LeftShoulder = Torso["Left Shoulder"] | |
177 | RightHip = Torso["Right Hip"] | |
178 | LeftHip = Torso["Left Hip"] | |
179 | local TIME = 0 | |
180 | local sick = Instance.new("Sound",Torso) | |
181 | ||
182 | IT = Instance.new | |
183 | CF = CFrame.new | |
184 | VT = Vector3.new | |
185 | RAD = math.rad | |
186 | C3 = Color3.new | |
187 | UD2 = UDim2.new | |
188 | BRICKC = BrickColor.new | |
189 | ANGLES = CFrame.Angles | |
190 | EULER = CFrame.fromEulerAnglesXYZ | |
191 | COS = math.cos | |
192 | ACOS = math.acos | |
193 | SIN = math.sin | |
194 | ASIN = math.asin | |
195 | ABS = math.abs | |
196 | MRANDOM = math.random | |
197 | FLOOR = math.floor | |
198 | if Player.name == "SenseiAdi" then | |
199 | warn("Enjoy friend ;3") | |
200 | end | |
201 | --//=================================\\ | |
202 | --|| USEFUL VALUES | |
203 | --\\=================================// | |
204 | ||
205 | Animation_Speed = 3 | |
206 | local FORCERESET = false | |
207 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
208 | local Speed = 16 | |
209 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
210 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
211 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
212 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
213 | local DAMAGEMULTIPLIER = 1 | |
214 | local ANIM = "Idle" | |
215 | local ATTACK = false | |
216 | local EQUIPPED = false | |
217 | local HOLD = false | |
218 | local COMBO = 1 | |
219 | local Rooted = false | |
220 | local SINE = 0 | |
221 | local KEYHOLD = false | |
222 | local CHANGE = 2 / Animation_Speed | |
223 | local WALKINGANIM = false | |
224 | local VALUE1 = false | |
225 | local VALUE2 = false | |
226 | local ROBLOXIDLEANIMATION = IT("Animation") | |
227 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
228 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
229 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
230 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
231 | WEAPONGUI.Name = "BanishV3Gui" | |
232 | local Weapon = IT("Model") | |
233 | Weapon.Name = "Adds" | |
234 | local Effects = IT("Folder", Weapon) | |
235 | Effects.Name = "Effects" | |
236 | local ANIMATOR = Humanoid.Animator | |
237 | local ANIMATE = Character:FindFirstChild("Animate") | |
238 | local UNANCHOR = true | |
239 | local TOBANISH = {} | |
240 | script.Parent = PlayerGui | |
241 | Player_Size = 1 --Size of the player. | |
242 | local EXTRATRANS = 0 | |
243 | local Effects2 = {} | |
244 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
245 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
246 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
247 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
248 | local SIZE = 2 | |
249 | local SKILLTEXTCOLOR = C3(0,0,0) | |
250 | local SKILLTEXTCOLOR2 = C3(1,0,0) | |
251 | --//=================================\\ | |
252 | --\\=================================// | |
253 | ||
254 | ||
255 | --//=================================\\ | |
256 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
257 | --\\=================================// | |
258 | ||
259 | ArtificialHB = Instance.new("BindableEvent", script) | |
260 | ArtificialHB.Name = "ArtificialHB" | |
261 | ||
262 | script:WaitForChild("ArtificialHB") | |
263 | ||
264 | frame = Frame_Speed | |
265 | tf = 0 | |
266 | allowframeloss = false | |
267 | tossremainder = false | |
268 | lastframe = tick() | |
269 | script.ArtificialHB:Fire() | |
270 | ||
271 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
272 | tf = tf + s | |
273 | if tf >= frame then | |
274 | if allowframeloss then | |
275 | script.ArtificialHB:Fire() | |
276 | lastframe = tick() | |
277 | else | |
278 | for i = 1, math.floor(tf / frame) do | |
279 | script.ArtificialHB:Fire() | |
280 | end | |
281 | lastframe = tick() | |
282 | end | |
283 | if tossremainder then | |
284 | tf = 0 | |
285 | else | |
286 | tf = tf - frame * math.floor(tf / frame) | |
287 | end | |
288 | end | |
289 | end) | |
290 | ||
291 | --//=================================\\ | |
292 | --\\=================================// | |
293 | ||
294 | --//=================================\\ | |
295 | --|| SOME FUNCTIONS | |
296 | --\\=================================// | |
297 | ||
298 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
299 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
300 | end | |
301 | ||
302 | function PositiveAngle(NUMBER) | |
303 | if NUMBER >= 0 then | |
304 | NUMBER = 0 | |
305 | end | |
306 | return NUMBER | |
307 | end | |
308 | ||
309 | function NegativeAngle(NUMBER) | |
310 | if NUMBER <= 0 then | |
311 | NUMBER = 0 | |
312 | end | |
313 | return NUMBER | |
314 | end | |
315 | ||
316 | function Swait(NUMBER) | |
317 | if NUMBER == 0 or NUMBER == nil then | |
318 | ArtificialHB.Event:wait() | |
319 | else | |
320 | for i = 1, NUMBER do | |
321 | ArtificialHB.Event:wait() | |
322 | end | |
323 | end | |
324 | end | |
325 | ||
326 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
327 | local NEWMESH = IT(MESH) | |
328 | if MESH == "SpecialMesh" then | |
329 | NEWMESH.MeshType = MESHTYPE | |
330 | if MESHID ~= "nil" and MESHID ~= "" then | |
331 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
332 | end | |
333 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
334 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
335 | end | |
336 | end | |
337 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
338 | NEWMESH.Scale = SCALE | |
339 | NEWMESH.Parent = PARENT | |
340 | return NEWMESH | |
341 | end | |
342 | ||
343 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
344 | local NEWPART = IT("Part") | |
345 | NEWPART.formFactor = FORMFACTOR | |
346 | NEWPART.Reflectance = REFLECTANCE | |
347 | NEWPART.Transparency = TRANSPARENCY | |
348 | NEWPART.CanCollide = false | |
349 | NEWPART.Locked = true | |
350 | NEWPART.Anchored = true | |
351 | if ANCHOR == false then | |
352 | NEWPART.Anchored = false | |
353 | end | |
354 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
355 | NEWPART.Name = NAME | |
356 | NEWPART.Size = SIZE | |
357 | NEWPART.Position = Torso.Position | |
358 | NEWPART.Material = MATERIAL | |
359 | NEWPART:BreakJoints() | |
360 | NEWPART.Parent = PARENT | |
361 | return NEWPART | |
362 | end | |
363 | ||
364 | local function weldBetween(a, b) | |
365 | local weldd = Instance.new("ManualWeld") | |
366 | weldd.Part0 = a | |
367 | weldd.Part1 = b | |
368 | weldd.C0 = CFrame.new() | |
369 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
370 | weldd.Parent = a | |
371 | return weldd | |
372 | end | |
373 | ||
374 | ||
375 | function QuaternionFromCFrame(cf) | |
376 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
377 | local trace = m00 + m11 + m22 | |
378 | if trace > 0 then | |
379 | local s = math.sqrt(1 + trace) | |
380 | local recip = 0.5 / s | |
381 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
382 | else | |
383 | local i = 0 | |
384 | if m11 > m00 then | |
385 | i = 1 | |
386 | end | |
387 | if m22 > (i == 0 and m00 or m11) then | |
388 | i = 2 | |
389 | end | |
390 | if i == 0 then | |
391 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
392 | local recip = 0.5 / s | |
393 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
394 | elseif i == 1 then | |
395 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
396 | local recip = 0.5 / s | |
397 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
398 | elseif i == 2 then | |
399 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
400 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
401 | end | |
402 | end | |
403 | end | |
404 | ||
405 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
406 | local xs, ys, zs = x + x, y + y, z + z | |
407 | local wx, wy, wz = w * xs, w * ys, w * zs | |
408 | local xx = x * xs | |
409 | local xy = x * ys | |
410 | local xz = x * zs | |
411 | local yy = y * ys | |
412 | local yz = y * zs | |
413 | local zz = z * zs | |
414 | 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)) | |
415 | end | |
416 | ||
417 | function QuaternionSlerp(a, b, t) | |
418 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
419 | local startInterp, finishInterp; | |
420 | if cosTheta >= 0.0001 then | |
421 | if (1 - cosTheta) > 0.0001 then | |
422 | local theta = ACOS(cosTheta) | |
423 | local invSinTheta = 1 / SIN(theta) | |
424 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
425 | finishInterp = SIN(t * theta) * invSinTheta | |
426 | else | |
427 | startInterp = 1 - t | |
428 | finishInterp = t | |
429 | end | |
430 | else | |
431 | if (1 + cosTheta) > 0.0001 then | |
432 | local theta = ACOS(-cosTheta) | |
433 | local invSinTheta = 1 / SIN(theta) | |
434 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
435 | finishInterp = SIN(t * theta) * invSinTheta | |
436 | else | |
437 | startInterp = t - 1 | |
438 | finishInterp = t | |
439 | end | |
440 | end | |
441 | 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 | |
442 | end | |
443 | ||
444 | function Clerp(a, b, t) | |
445 | local qa = {QuaternionFromCFrame(a)} | |
446 | local qb = {QuaternionFromCFrame(b)} | |
447 | local ax, ay, az = a.x, a.y, a.z | |
448 | local bx, by, bz = b.x, b.y, b.z | |
449 | local _t = 1 - t | |
450 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
451 | end | |
452 | ||
453 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
454 | local frame = IT("Frame") | |
455 | frame.BackgroundTransparency = TRANSPARENCY | |
456 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
457 | frame.Position = POSITION | |
458 | frame.Size = SIZE | |
459 | frame.BackgroundColor3 = COLOR | |
460 | frame.BorderColor3 = BORDERCOLOR | |
461 | frame.Name = NAME | |
462 | frame.Parent = PARENT | |
463 | return frame | |
464 | end | |
465 | ||
466 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
467 | local label = IT("TextLabel") | |
468 | label.BackgroundTransparency = 1 | |
469 | label.Size = UD2(1, 0, 1, 0) | |
470 | label.Position = UD2(0, 0, 0, 0) | |
471 | label.TextColor3 = TEXTCOLOR | |
472 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
473 | label.TextTransparency = TRANSPARENCY | |
474 | label.FontSize = TEXTFONTSIZE | |
475 | label.Font = TEXTFONT | |
476 | label.BorderSizePixel = BORDERSIZEPIXEL | |
477 | label.TextScaled = false | |
478 | label.Text = TEXT | |
479 | label.Name = NAME | |
480 | label.Parent = PARENT | |
481 | return label | |
482 | end | |
483 | ||
484 | function NoOutlines(PART) | |
485 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
486 | end | |
487 | ||
488 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
489 | local NEWWELD = IT(TYPE) | |
490 | NEWWELD.Part0 = PART0 | |
491 | NEWWELD.Part1 = PART1 | |
492 | NEWWELD.C0 = C0 | |
493 | NEWWELD.C1 = C1 | |
494 | NEWWELD.Parent = PARENT | |
495 | return NEWWELD | |
496 | end | |
497 | ||
498 | local S = IT("Sound") | |
499 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
500 | local NEWSOUND = nil | |
501 | coroutine.resume(coroutine.create(function() | |
502 | NEWSOUND = S:Clone() | |
503 | NEWSOUND.Parent = PARENT | |
504 | NEWSOUND.Volume = VOLUME | |
505 | NEWSOUND.Pitch = PITCH | |
506 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
507 | NEWSOUND:play() | |
508 | if DOESLOOP == true then | |
509 | NEWSOUND.Looped = true | |
510 | else | |
511 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
512 | NEWSOUND:remove() | |
513 | end | |
514 | end)) | |
515 | return NEWSOUND | |
516 | end | |
517 | ||
518 | function CFrameFromTopBack(at, top, back) | |
519 | local right = top:Cross(back) | |
520 | 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) | |
521 | end | |
522 | ||
523 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
524 | function WACKYEFFECT(Table) | |
525 | local TYPE = (Table.EffectType or "Sphere") | |
526 | local SIZE = (Table.Size or VT(1,1,1)) | |
527 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
528 | local TRANSPARENCY = (Table.Transparency or 0) | |
529 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
530 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
531 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
532 | local ROTATION1 = (Table.RotationX or 0) | |
533 | local ROTATION2 = (Table.RotationY or 0) | |
534 | local ROTATION3 = (Table.RotationZ or 0) | |
535 | local MATERIAL = (Table.Material or "Neon") | |
536 | local COLOR = (Table.Color or C3(0,0,0)) | |
537 | local TIME = (Table.Time or 45) | |
538 | local SOUNDID = (Table.SoundID or nil) | |
539 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
540 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
541 | coroutine.resume(coroutine.create(function() | |
542 | local PLAYSSOUND = false | |
543 | local SOUND = nil | |
544 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
545 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
546 | PLAYSSOUND = true | |
547 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
548 | end | |
549 | EFFECT.Color = COLOR | |
550 | local MSH = nil | |
551 | if TYPE == "Sphere" then | |
552 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
553 | elseif TYPE == "Block" then | |
554 | MSH = IT("BlockMesh",EFFECT) | |
555 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
556 | elseif TYPE == "Wave" then | |
557 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
558 | elseif TYPE == "Ring" then | |
559 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
560 | elseif TYPE == "Slash" then | |
561 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
562 | elseif TYPE == "Round Slash" then | |
563 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
564 | elseif TYPE == "Swirl" then | |
565 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
566 | elseif TYPE == "Skull" then | |
567 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
568 | elseif TYPE == "Crystal" then | |
569 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
570 | end | |
571 | if MSH ~= nil then | |
572 | local MOVESPEED = nil | |
573 | if MOVEDIRECTION ~= nil then | |
574 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
575 | end | |
576 | local GROWTH = SIZE - ENDSIZE | |
577 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
578 | if TYPE == "Block" then | |
579 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
580 | else | |
581 | EFFECT.CFrame = CFRAME | |
582 | end | |
583 | for LOOP = 1, TIME+1 do | |
584 | Swait() | |
585 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
586 | if TYPE == "Wave" then | |
587 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
588 | end | |
589 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
590 | if TYPE == "Block" then | |
591 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
592 | else | |
593 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
594 | end | |
595 | if MOVEDIRECTION ~= nil then | |
596 | local ORI = EFFECT.Orientation | |
597 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
598 | EFFECT.Orientation = ORI | |
599 | end | |
600 | end | |
601 | if PLAYSSOUND == false then | |
602 | EFFECT:remove() | |
603 | else | |
604 | SOUND.Stopped:Connect(function() | |
605 | EFFECT:remove() | |
606 | end) | |
607 | end | |
608 | else | |
609 | if PLAYSSOUND == false then | |
610 | EFFECT:remove() | |
611 | else | |
612 | repeat Swait() until SOUND.Playing == false | |
613 | EFFECT:remove() | |
614 | end | |
615 | end | |
616 | end)) | |
617 | end | |
618 | --Lightning({Material = "Neon", FadeIn = false, Color = C3(1,1,1), Start = Torso.Position, End = Mouse.Hit.p, SegmentL = 2, Thickness = 0.1, DoesFade = false, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 15, Thicken = false}) | |
619 | function Lightning(Table) | |
620 | local Color = Table.Color or C3(1,1,1) | |
621 | local StartPos = Table.Start or Torso.Position | |
622 | local EndPos = Table.End or Mouse.Hit.p | |
623 | local SegmentLength = Table.SegmentL or 2 | |
624 | local Thickness = Table.Thickness or 0.1 | |
625 | local Dissapear = Table.DoesFade or false | |
626 | local Parent = Table.Ignore or Character | |
627 | local MaxDist = Table.MaxDist or 400 | |
628 | local Branches = Table.Branches or false | |
629 | local Thicken = Table.Thicken or false | |
630 | local FadeTime = Table.FadeTime or 15 | |
631 | local FadeIn = Table.FadeIn or false | |
632 | local Material = Table.Material or "Neon" | |
633 | local HIT,HITPOS = CastProperRay(StartPos, EndPos, MaxDist, Parent) | |
634 | local DISTANCE = math.ceil((StartPos - HITPOS).Magnitude/((SegmentLength/SegmentLength)/1.5)) | |
635 | local LIGHTNINGMODEL = IT("Model",Effects) | |
636 | LIGHTNINGMODEL.Name = "Lightning" | |
637 | local LastBolt = nil | |
638 | for E = 1, DISTANCE do | |
639 | local ExtraSize = 0 | |
640 | if Thicken == true then | |
641 | ExtraSize = (DISTANCE-E)/15 | |
642 | end | |
643 | local TRANSPARENCY = 0 | |
644 | if FadeIn == true then | |
645 | TRANSPARENCY = 1-(E/(DISTANCE/1.5)) | |
646 | if TRANSPARENCY < 0 then | |
647 | TRANSPARENCY = 0 | |
648 | end | |
649 | end | |
650 | local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "LightningPart"..E, VT(Thickness+ExtraSize,SegmentLength,Thickness+ExtraSize)) | |
651 | PART.Color = Color | |
652 | MakeForm(PART,"Cyl") | |
653 | if LastBolt == nil then | |
654 | PART.CFrame = CF(StartPos,HITPOS)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
655 | else | |
656 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,CF(HITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,DISTANCE-E).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
657 | end | |
658 | LastBolt = PART | |
659 | if Branches == true and E < (DISTANCE-5) then | |
660 | local CHOICE = MRANDOM(1,7+((DISTANCE-E)*2)) | |
661 | if CHOICE == 1 then | |
662 | local LASTBRANCH = nil | |
663 | for i = 1, MRANDOM(2,5) do | |
664 | local ExtraSize2 = 0 | |
665 | if Thicken == true then | |
666 | ExtraSize = ((DISTANCE-E)/25)/i | |
667 | end | |
668 | local PART = CreatePart(3, LIGHTNINGMODEL, Material, 0, TRANSPARENCY, BRICKC("Pearl"), "Branch"..E.."-"..i, VT(Thickness+ExtraSize2,SegmentLength,Thickness+ExtraSize2)) | |
669 | PART.Color = Color | |
670 | MakeForm(PART,"Cyl") | |
671 | if LASTBRANCH == nil then | |
672 | PART.CFrame = CF(LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0).p,LastBolt.CFrame*CF(0,-LastBolt.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*7,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
673 | else | |
674 | PART.CFrame = CF(LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0).p,LASTBRANCH.CFrame*CF(0,-LASTBRANCH.Size.Y/2,0)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,Thickness*3,0)*CF(0,0,-1).p)*ANGLES(RAD(90),RAD(0),RAD(0))*CF(0,-PART.Size.Y/2,0) | |
675 | end | |
676 | LASTBRANCH = PART | |
677 | end | |
678 | end | |
679 | end | |
680 | end | |
681 | if Dissapear == true then | |
682 | coroutine.resume(coroutine.create(function() | |
683 | for i = 1, FadeTime do | |
684 | Swait() | |
685 | for _, c in pairs(LIGHTNINGMODEL:GetChildren()) do | |
686 | if c.ClassName == "Part" then | |
687 | c.Transparency = c.Transparency + (i/FadeTime)/10 | |
688 | end | |
689 | end | |
690 | end | |
691 | LIGHTNINGMODEL:remove() | |
692 | end)) | |
693 | elseif Dissapear == false then | |
694 | Debris:AddItem(LIGHTNINGMODEL,0.1) | |
695 | end | |
696 | return {Hit = HIT,Pos = HITPOS,End = LastBolt.CFrame*CF(0,0,-LastBolt.Size.Z).p,LastBolt = LastBolt,Model = LIGHTNINGMODEL} | |
697 | end | |
698 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
699 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
700 | wave.Color = COLOR | |
701 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
702 | wave.CFrame = CFRAME | |
703 | coroutine.resume(coroutine.create(function(PART) | |
704 | for i = 1, WAIT do | |
705 | Swait() | |
706 | mesh.Scale = mesh.Scale + GROW | |
707 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
708 | if DOESROT == true then | |
709 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
710 | end | |
711 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
712 | if wave.Transparency > 0.99 then | |
713 | wave:remove() | |
714 | end | |
715 | end | |
716 | end)) | |
717 | end | |
718 | ||
719 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
720 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
721 | wave.Color = COLOR | |
722 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0)) | |
723 | wave.CFrame = CFRAME | |
724 | coroutine.resume(coroutine.create(function(PART) | |
725 | for i = 1, WAIT do | |
726 | Swait() | |
727 | mesh.Scale = mesh.Scale + GROW | |
728 | wave.Transparency = wave.Transparency + (1/WAIT) | |
729 | if wave.Transparency > 0.99 then | |
730 | wave:remove() | |
731 | end | |
732 | end | |
733 | end)) | |
734 | end | |
735 | function MakeForm(PART,TYPE) | |
736 | if TYPE == "Cyl" then | |
737 | local MSH = IT("BlockMesh",PART) | |
738 | elseif TYPE == "Ball" then | |
739 | local MSH = IT("SpecialMesh",PART) | |
740 | MSH.MeshType = "Sphere" | |
741 | elseif TYPE == "Cyl2" then | |
742 | local MSH = IT("CylinderMesh",PART) | |
743 | elseif TYPE == "Wedge" then | |
744 | local MSH = IT("SpecialMesh",PART) | |
745 | MSH.MeshType = "Wedge" | |
746 | end | |
747 | end | |
748 | ||
749 | function SpawnTrail(FROM,TO,BIG) | |
750 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Light gray", "Trail", VT(0,0,0)) | |
751 | MakeForm(TRAIL,"Cyl") | |
752 | local DIST = (FROM - TO).Magnitude | |
753 | if BIG == true then | |
754 | TRAIL.Size = VT(0.5,DIST,0.5) | |
755 | else | |
756 | TRAIL.Size = VT(0.25,DIST,0.25) | |
757 | end | |
758 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
759 | coroutine.resume(coroutine.create(function() | |
760 | for i = 1, 5 do | |
761 | Swait() | |
762 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
763 | end | |
764 | TRAIL:remove() | |
765 | end)) | |
766 | end | |
767 | ||
768 | Debris = game:GetService("Debris") | |
769 | ||
770 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
771 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
772 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
773 | end | |
774 | ||
775 | function turnto(position) | |
776 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
777 | end | |
778 | ||
779 | --//=================================\\ | |
780 | --|| WEAPON CREATION | |
781 | --\\=================================// | |
782 | ||
783 | ||
784 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false) | |
785 | PRT.Color = C3(0,0,0) | |
786 | local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0)) | |
787 | CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0)) | |
788 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false) | |
789 | PRT.Color = C3(0,0,0) | |
790 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0)) | |
791 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0)) | |
792 | for i = 1, 16 do | |
793 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false) | |
794 | FACE.Color = C3(0,0,0) | |
795 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
796 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0)) | |
797 | end | |
798 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Violet", "Eyeball", VT(0.15,0,0.15),false) | |
799 | MakeForm(EYE,"Ball") | |
800 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0.15,0.26,-0.55), CF(0, 0, 0)) | |
801 | local EYE2 = CreatePart(3, Character, "Neon", 0, 0, "Violet", "Eyeball", VT(0.15,0.15,0.15),false) | |
802 | MakeForm(EYE2,"Ball") | |
803 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE2, CF(-0.15,0.26,-0.55), CF(0, 0, 0)) | |
804 | local LASTPART = Head | |
805 | for i = 1, 20 do | |
806 | local MATH = (1-(i/25)) | |
807 | if LASTPART == Head then | |
808 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
809 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
810 | LASTPART = Horn | |
811 | Horn.Color = C3((i*3-3)/153,0,153) | |
812 | else | |
813 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Purple", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
814 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/3, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
815 | LASTPART = Horn | |
816 | Horn.Color = C3((i*3-3)/153,0,153) | |
817 | end | |
818 | end | |
819 | local LASTPART = Head | |
820 | for i = 1, 20 do | |
821 | local MATH = (1-(i/25)) | |
822 | if LASTPART == Head then | |
823 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
824 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
825 | LASTPART = Horn | |
826 | Horn.Color = C3((i*3-3)/153,0,153) | |
827 | else | |
828 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
829 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/3, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0)) | |
830 | LASTPART = Horn | |
831 | Horn.Color = C3((i*3-3)/153,0,153) | |
832 | end | |
833 | end | |
834 | ||
835 | local Eyes = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eyes", VT(0.6,0.1,1)/2,false) | |
836 | MakeForm(Eyes,"Ball") | |
837 | CreateWeldOrSnapOrMotor("Weld", Eyes, Head, Eyes, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
838 | local Eyes = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Eyes", VT(0.6,0.1,1)/2,false) | |
839 | MakeForm(Eyes,"Ball") | |
840 | CreateWeldOrSnapOrMotor("Weld", Eyes, Head, Eyes, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
841 | ||
842 | local Particle = IT("ParticleEmitter",nil) | |
843 | Particle.Enabled = false | |
844 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
845 | Particle.LightEmission = 0.5 | |
846 | Particle.Rate = 150 | |
847 | Particle.ZOffset = 0.2 | |
848 | Particle.Rotation = NumberRange.new(-180, 180) | |
849 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
850 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
851 | Particle.Color = ColorSequence.new(C3(0,0,0),C3(0,0,0)) | |
852 | ||
853 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
854 | function ParticleEmitter(Table) | |
855 | local PRTCL = Particle:Clone() | |
856 | local Speed = Table.Speed or 5 | |
857 | local Drag = Table.Drag or 0 | |
858 | local Size1 = Table.Size1 or 1 | |
859 | local Size2 = Table.Size2 or 5 | |
860 | local Lifetime1 = Table.Lifetime1 or 1 | |
861 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
862 | local Parent = Table.Parent or Torso | |
863 | local Emit = Table.Emit or 100 | |
864 | local Offset = Table.Offset or 360 | |
865 | local Acel = Table.Acel or VT(0,0,0) | |
866 | local Enabled = Table.Enabled or false | |
867 | PRTCL.Parent = Parent | |
868 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
869 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
870 | PRTCL.Speed = NumberRange.new(Speed) | |
871 | PRTCL.VelocitySpread = Offset | |
872 | PRTCL.Drag = Drag | |
873 | PRTCL.Acceleration = Acel | |
874 | if Enabled == false then | |
875 | PRTCL:Emit(Emit) | |
876 | Debris:AddItem(PRTCL,Lifetime2) | |
877 | else | |
878 | PRTCL.Enabled = true | |
879 | end | |
880 | return PRTCL | |
881 | end | |
882 | ||
883 | ||
884 | local Handle = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.6,0.2),false) | |
885 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
886 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.5,0.2),false) | |
887 | MakeForm(Part,"Wedge") | |
888 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
889 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.3,0.2),false) | |
890 | MakeForm(Part,"Wedge") | |
891 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
892 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.3,0.3,0.3),false) | |
893 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
894 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.3,0.5,0.5),false) | |
895 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
896 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.4,0.4,0.4),false) | |
897 | MakeForm(Part,"Cyl") | |
898 | - | local SKILLFONT = "Antique" |
898 | + | |
899 | for i = 1, 8 do | |
900 | local Piece = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Eye", VT(0,0.35,0.41),false) | |
901 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
902 | end | |
903 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Eye", VT(0.38,0.41,0.38),false) | |
904 | MakeForm(Part,"Cyl") | |
905 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
906 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.37,0.5,0.37),false) | |
907 | MakeForm(Part,"Ball") | |
908 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
909 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.7,0.4),false) | |
910 | MakeForm(Part,"Wedge") | |
911 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
912 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.3,0.4,0.2),false) | |
913 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Break", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") |
913 | + | |
914 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.35,0.35,0.35),false) | |
915 | MakeForm(Part,"Cyl") | |
916 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
917 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.5,0.1,0.5),false) | |
918 | MakeForm(Part,"Cyl") | |
919 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
920 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.5,0.1,0.45),false) | |
921 | MakeForm(Part,"Cyl") | |
922 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
923 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.2,0.5,0.2),false) | |
924 | MakeForm(Part,"Wedge") | |
925 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
926 | local LASTPART = Handle | |
927 | for i = 1, 10 do | |
928 | if LASTPART == Handle then | |
929 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.1,0.2,0),false) | |
930 | LASTPART = Part | |
931 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
932 | else | |
933 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.1,0.05,0),false) | |
934 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
935 | LASTPART = Part | |
936 | end | |
937 | end | |
938 | ||
939 | local Barrel = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.15,2,0.15),false) | |
940 | MakeForm(Barrel,"Cyl") | |
941 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
942 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0.25,1,0.25),false) | |
943 | MakeForm(Part,"Cyl") | |
944 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
945 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0,0.1,0.2),false) | |
946 | MakeForm(Part,"Wedge") | |
947 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
948 | local Hole = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Eye", VT(0.125,0,0.125),false) | |
949 | MakeForm(Hole,"Cyl") | |
950 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
951 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Light gray", "Part", VT(0,0,0),false) | |
952 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
953 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
954 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0.5, "Light gray", "Eye", VT(0,0,0),false) | |
955 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
956 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
957 | coroutine.resume(coroutine.create(function() | |
958 | while wait() do | |
959 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
960 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
961 | end | |
962 | end)) | |
963 | ||
964 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
965 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
966 | ||
967 | for _, c in pairs(Weapon:GetDescendants()) do | |
968 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
969 | c.Material = "Glass" | |
970 | c.Color = C3(0,0,0) | |
971 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
972 | c.Color = C3(0,0,0) | |
973 | c.Material = "Neon" | |
974 | end | |
975 | end | |
976 | ||
977 | Weapon.Parent = Character | |
978 | for _, c in pairs(Weapon:GetChildren()) do | |
979 | if c.ClassName == "Part" then | |
980 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
981 | end | |
982 | end | |
983 | ||
984 | local BODY = {} | |
985 | for _, c in pairs(Character:GetDescendants()) do | |
986 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
987 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
988 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
989 | end | |
990 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
991 | elseif c:IsA("JointInstance") then | |
992 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
993 | end | |
994 | end | |
995 | for e = 1, #BODY do | |
996 | if BODY[e] ~= nil then | |
997 | local STUFF = BODY[e] | |
998 | local PART = STUFF[1] | |
999 | local PARENT = STUFF[2] | |
1000 | local MATERIAL = STUFF[3] | |
1001 | local COLOR = STUFF[4] | |
1002 | local TRANSPARENCY = STUFF[5] | |
1003 | if PART.ClassName == "Part" and PART ~= RootPart then | |
1004 | PART.Material = MATERIAL | |
1005 | PART.Color = COLOR | |
1006 | PART.Transparency = TRANSPARENCY | |
1007 | end | |
1008 | PART.AncestryChanged:Connect(function() | |
1009 | PART.Parent = PARENT | |
1010 | end) | |
1011 | end | |
1012 | end | |
1013 | function refit() | |
1014 | Character.Parent = workspace | |
1015 | for e = 1, #BODY do | |
1016 | if BODY[e] ~= nil then | |
1017 | local STUFF = BODY[e] | |
1018 | local PART = STUFF[1] | |
1019 | local PARENT = STUFF[2] | |
1020 | local MATERIAL = STUFF[3] | |
1021 | local COLOR = STUFF[4] | |
1022 | local TRANSPARENCY = STUFF[5] | |
1023 | if PART:IsA("BasePart") and PART ~= RootPart then | |
1024 | PART.Material = MATERIAL | |
1025 | PART.Color = COLOR | |
1026 | PART.Transparency = TRANSPARENCY+EXTRATRANS | |
1027 | end | |
1028 | if PART.Parent ~= PARENT then | |
1029 | Humanoid:remove() | |
1030 | PART.Parent = PARENT | |
1031 | Humanoid = IT("Humanoid",Character) | |
1032 | end | |
1033 | end | |
1034 | end | |
1035 | end | |
1036 | ||
1037 | Humanoid.Died:connect(function() | |
1038 | refit() | |
1039 | end) | |
1040 | ||
1041 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1042 | local SKILLFONT = "Arcade" | |
1043 | local SKILLTEXTSIZE = 7 | |
1044 | ||
1045 | Humanoid.Died:connect(function() | |
1046 | ATTACK = true | |
1047 | end) | |
1048 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1049 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1050 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1051 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1052 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1053 | local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame") | |
1054 | ||
1055 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Darkness", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1056 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Death", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1057 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Banish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1058 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Madness", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1059 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[Q] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6") | |
1060 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE+1, SKILLFONT, 0, 2, 1, "Text 5") | |
1061 | function printbye(Name) | |
1062 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1063 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1064 | end | |
1065 | ||
1066 | workspace.ChildAdded:connect(function(instance) | |
1067 | for BANISH = 1, #TOBANISH do | |
1068 | if TOBANISH[BANISH] ~= nil then | |
1069 | if instance.Name == TOBANISH[BANISH] then | |
1070 | coroutine.resume(coroutine.create(function() | |
1071 | printbye(instance.Name) | |
1072 | instance:ClearAllChildren() | |
1073 | Debris:AddItem(instance,0.0005) | |
1074 | end)) | |
1075 | end | |
1076 | end | |
1077 | end | |
1078 | end) | |
1079 | ||
1080 | --//=================================\\ | |
1081 | --|| DAMAGING | |
1082 | --\\=================================// | |
1083 | ||
1084 | local asd = Instance.new("ParticleEmitter") | |
1085 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
1086 | asd.LightEmission = .1 | |
1087 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
1088 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
1089 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
1090 | asd.Transparency = bbb | |
1091 | asd.Size = aaa | |
1092 | asd.ZOffset = .9 | |
1093 | asd.Acceleration = Vector3.new(0, -15, 0) | |
1094 | asd.LockedToPart = false | |
1095 | asd.EmissionDirection = "Back" | |
1096 | asd.Lifetime = NumberRange.new(1, 2) | |
1097 | asd.Rotation = NumberRange.new(-100, 100) | |
1098 | asd.RotSpeed = NumberRange.new(-100, 100) | |
1099 | asd.Speed = NumberRange.new(10) | |
1100 | asd.Enabled = false | |
1101 | asd.VelocitySpread = 999 | |
1102 | function getbloody(victim,amount) | |
1103 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
1104 | PART.CFrame = victim.CFrame | |
1105 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1106 | Debris:AddItem(PART,5) | |
1107 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1108 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1109 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
1110 | local prtcl = asd:Clone() | |
1111 | prtcl.Parent = PART | |
1112 | prtcl:Emit(amount*10) | |
1113 | end | |
1114 | function Banish(Char) | |
1115 | local NewCharacter = Instance.new("Model",Effects) | |
1116 | NewCharacter.Name = "Ow im ded ;-;" | |
1117 | for _, c in pairs(Char:GetDescendants()) do | |
1118 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1119 | if c.Parent == Char then | |
1120 | getbloody(c,5) | |
1121 | end | |
1122 | c:BreakJoints() | |
1123 | c.Material = "Glass" | |
1124 | c.Color = C3(0.5,0,0) | |
1125 | c.CanCollide = true | |
1126 | c.Transparency = 0.3 | |
1127 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1128 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1129 | end | |
1130 | if c.Name == "Head" then | |
1131 | c:ClearAllChildren() | |
1132 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1133 | end | |
1134 | if c.ClassName == "MeshPart" then | |
1135 | c.TextureID = "" | |
1136 | end | |
1137 | if c:FindFirstChildOfClass("BodyPosition") then | |
1138 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1139 | end | |
1140 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1141 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1142 | end | |
1143 | c.Parent = NewCharacter | |
1144 | c.Name = "DeadPart" | |
1145 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1146 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1147 | end | |
1148 | end | |
1149 | Char:remove() | |
1150 | Debris:AddItem(NewCharacter,5) | |
1151 | end | |
1152 | ||
1153 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1154 | local CHILDREN = workspace:GetDescendants() | |
1155 | for index, CHILD in pairs(CHILDREN) do | |
1156 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1157 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1158 | if HUM then | |
1159 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1160 | if TORSO then | |
1161 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1162 | if ISBANISH == true then | |
1163 | Banish(CHILD) | |
1164 | else | |
1165 | if ISBANISH == "Gravity" then | |
1166 | HUM.PlatformStand = true | |
1167 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1168 | local grav = Instance.new("BodyPosition",TORSO) | |
1169 | grav.D = 15 | |
1170 | grav.P = 20000 | |
1171 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1172 | grav.position = TORSO.Position | |
1173 | grav.Name = "V3BanishForce"..Player.Name | |
1174 | else | |
1175 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1176 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1177 | end | |
1178 | else | |
1179 | HUM.PlatformStand = false | |
1180 | end | |
1181 | end | |
1182 | elseif ISBANISH == "Gravity" then | |
1183 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1184 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1185 | HUM.PlatformStand = false | |
1186 | end | |
1187 | end | |
1188 | end | |
1189 | end | |
1190 | end | |
1191 | end | |
1192 | end | |
1193 | function ApplyKill(POSITION,RANGE,BRUTAL) | |
1194 | local CHILDREN = workspace:GetDescendants() | |
1195 | for index, CHILD in pairs(CHILDREN) do | |
1196 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1197 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1198 | if HUM then | |
1199 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1200 | if TORSO then | |
1201 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1202 | if BRUTAL == true then | |
1203 | Banish(CHILD) | |
1204 | else | |
1205 | CHILD:BreakJoints() | |
1206 | end | |
1207 | end | |
1208 | end | |
1209 | end | |
1210 | end | |
1211 | end | |
1212 | end | |
1213 | --//=================================\\ | |
1214 | --|| ATTACK FUNCTIONS AND STUFF | |
1215 | --\\=================================// | |
1216 | function Kill(Foe) | |
1217 | if Foe then | |
1218 | coroutine.resume(coroutine.create(function() | |
1219 | --if game.Players:FindFirstChild(Foe.Name) then | |
1220 | table.insert(TOBANISH,Foe.Name) | |
1221 | printbye(Foe.Name) | |
1222 | --end | |
1223 | Foe.Archivable = true | |
1224 | local CLONE = Foe:Clone() | |
1225 | Foe:Destroy() | |
1226 | CLONE.Parent = Effects | |
1227 | CLONE:BreakJoints() | |
1228 | local MATERIALS = {"Glass","Neon"} | |
1229 | for _, c in pairs(CLONE:GetDescendants()) do | |
1230 | if c:IsA("BasePart") then | |
1231 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1232 | CreateSound(340722848, c, 10, 1, false) | |
1233 | end | |
1234 | c.Anchored = true | |
1235 | c.Transparency = c.Transparency + 0.2 | |
1236 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1237 | c.Color = C3(0,0,0) | |
1238 | if c.ClassName == "MeshPart" then | |
1239 | c.TextureID = "" | |
1240 | end | |
1241 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1242 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1243 | end | |
1244 | if c:FindFirstChildOfClass("Decal") then | |
1245 | c:FindFirstChildOfClass("Decal"):remove() | |
1246 | end | |
1247 | c.Name = "Banished" | |
1248 | c.CanCollide = false | |
1249 | else | |
1250 | c:remove() | |
1251 | end | |
1252 | end | |
1253 | local A = false | |
1254 | for i = 1, 35 do | |
1255 | if A == false then | |
1256 | A = true | |
1257 | elseif A == true then | |
1258 | A = false | |
1259 | end | |
1260 | for _, c in pairs(CLONE:GetDescendants()) do | |
1261 | if c:IsA("BasePart") then | |
1262 | c.Anchored = true | |
1263 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1264 | c.Transparency = c.Transparency + 0.8/35 | |
1265 | if A == false then | |
1266 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1267 | elseif A == true then | |
1268 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1269 | end | |
1270 | end | |
1271 | end | |
1272 | Swait() | |
1273 | end | |
1274 | CLONE:remove() | |
1275 | end)) | |
1276 | end | |
1277 | end | |
1278 | ||
1279 | function Madness() | |
1280 | ATTACK = true | |
1281 | Rooted = false | |
1282 | local GYRO = IT("BodyGyro",RootPart) | |
1283 | GYRO.D = 750 | |
1284 | GYRO.P = 20000 | |
1285 | GYRO.MaxTorque = VT(0,40000000,0) | |
1286 | local LOCKED = true | |
1287 | local SHOT = false | |
1288 | coroutine.resume(coroutine.create(function() | |
1289 | for i=0, 1, 0.1 / Animation_Speed do | |
1290 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1291 | Swait() | |
1292 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1293 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1294 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1295 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1296 | end | |
1297 | LOCKED = false | |
1298 | SHOT = true | |
1299 | repeat | |
1300 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1301 | Swait() | |
1302 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1303 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1304 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1305 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1306 | until HOLD == false and SHOT == false | |
1307 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1308 | Swait() | |
1309 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1310 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1311 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(100), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1312 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1313 | end | |
1314 | GYRO:remove() | |
1315 | ATTACK = false | |
1316 | Rooted = false | |
1317 | end)) | |
1318 | repeat wait() until LOCKED == false | |
1319 | repeat | |
1320 | SHOT = true | |
1321 | wait(0.2) | |
1322 | SHOT = false | |
1323 | local BULLET = Lightning({Material = "Glass", FadeIn = true, Color = C3(0,0,0), Start = Hole.CFrame*CF(0, 1, 0.045).p, End = Mouse.Hit.p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false}) | |
1324 | local HIT = BULLET.Hit | |
1325 | local HITPOS = BULLET.End | |
1326 | if HIT then | |
1327 | if HIT.Parent:FindFirstChildOfClass("Humanoid") then | |
1328 | Kill(HIT.Parent) | |
1329 | end | |
1330 | end | |
1331 | WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = 304999618, SoundPitch = 2, SoundVolume = 1}) | |
1332 | WACKYEFFECT({Time = 15, EffectType = "Skull", Size = VT(0,0,0), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 2}) | |
1333 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(1,1.2,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1, SoundVolume = 2}) | |
1334 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(2,1,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0, 1, 0.045) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 145080998, SoundPitch = 1, SoundVolume = 2}) | |
1335 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1336 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1337 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1338 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1339 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1340 | until HOLD == false | |
1341 | end | |
1342 | ||
1343 | function Banisher_Bullet() | |
1344 | ATTACK = true | |
1345 | Rooted = false | |
1346 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1347 | Swait() | |
1348 | turnto(Mouse.Hit.p) | |
1349 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1350 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1351 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1352 | end | |
1353 | repeat | |
1354 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1355 | Swait() | |
1356 | turnto(Mouse.Hit.p) | |
1357 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1358 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
1359 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1360 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1361 | end | |
1362 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1363 | SpawnTrail(Hole.Position,POS) | |
1364 | if HIT ~= nil then | |
1365 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1366 | Banish(HIT.Parent) | |
1367 | end | |
1368 | end | |
1369 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1370 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1371 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1372 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1373 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1374 | Swait() | |
1375 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1376 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
1377 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1378 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1379 | end | |
1380 | until KEYHOLD == false | |
1381 | ATTACK = false | |
1382 | Rooted = false | |
1383 | end | |
1384 | ||
1385 | function AttackTemplate() | |
1386 | ATTACK = true | |
1387 | Rooted = false | |
1388 | for i=0, 1, 0.1 / Animation_Speed do | |
1389 | Swait() | |
1390 | 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) | |
1391 | 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) | |
1392 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1393 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1394 | 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) | |
1395 | 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) | |
1396 | end | |
1397 | ATTACK = false | |
1398 | Rooted = false | |
1399 | end | |
1400 | ||
1401 | function HI() | |
1402 | ATTACK = true | |
1403 | Rooted = false | |
1404 | local LOOP = 0 | |
1405 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1406 | Swait() | |
1407 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1408 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1409 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1410 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1411 | end | |
1412 | for i=0, 3, 0.1 / Animation_Speed do | |
1413 | Swait() | |
1414 | LOOP = LOOP + 1 | |
1415 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1416 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1417 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1418 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.8, 0.4) * ANGLES(RAD(170), RAD(0), RAD(-25 - 25 * SIN(LOOP / 5))) * ANGLES(RAD(0), RAD(-45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1419 | end | |
1420 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1421 | Swait() | |
1422 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1423 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1424 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1425 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.4) * ANGLES(RAD(5-3 * COS(SINE / 6)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1426 | end | |
1427 | ATTACK = false | |
1428 | Rooted = false | |
1429 | end | |
1430 | ||
1431 | function Mercy() | |
1432 | ATTACK = true | |
1433 | Rooted = true | |
1434 | local SPOTS = {} | |
1435 | for i = 1, 15 do | |
1436 | Swait() | |
1437 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1438 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 0.1 / Animation_Speed) | |
1439 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 0.1 / Animation_Speed) | |
1440 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1441 | end | |
1442 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Maroon".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7}) | |
1443 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1444 | Swait() | |
1445 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(65 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1446 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(-65 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1447 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1448 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1449 | end | |
1450 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 150, Character) | |
1451 | table.insert(SPOTS,HITPOS) | |
1452 | CreateSound(145080998, Hole, 2, 1, false) | |
1453 | Lightning({Material = "Neon", FadeIn = false, Color = C3(1,0,0), Start = Hole.CFrame*CF(0, 1, 0.045).p, End = Hole.CFrame*CF(0, 1000, 0.045).p, SegmentL = 1, Thickness = 0.1, DoesFade = true, Ignore = Character, MaxDist = 400, Branches = false, FadeTime = 22, Thicken = false}) | |
1454 | coroutine.resume(coroutine.create(function() | |
1455 | local POS = Mouse.Hit.p | |
1456 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0)) | |
1457 | MakeForm(RAY,"Cyl") | |
1458 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really black", "Strike", VT(0,0,0)) | |
1459 | MakeForm(SPHERE,"Ball") | |
1460 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0)) | |
1461 | MakeForm(SHIELD,"Ball") | |
1462 | SHIELD.CFrame = CF(POS) | |
1463 | RAY.CFrame = CF(POS) | |
1464 | SPHERE.CFrame = CF(POS) | |
1465 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
1466 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
1467 | for i = 1, 200 do | |
1468 | Swait() | |
1469 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1470 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1471 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*2,5+(i),SPHERE.Size.X*2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1472 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
1473 | SPHERE.Size = SPHERE.Size + VT(0.4,0.4,0.4) | |
1474 | SHIELD.Size = SPHERE.Size + VT(0.5,0.5,0.5) | |
1475 | ApplyKill(SPHERE.Position,SPHERE.Size.X/2,true) | |
1476 | end | |
1477 | for i = 1, 45 do | |
1478 | Swait() | |
1479 | RAY.Transparency = RAY.Transparency + 1/45 | |
1480 | SPHERE.Transparency = RAY.Transparency | |
1481 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1482 | end | |
1483 | RAY:remove() | |
1484 | SHIELD:remove() | |
1485 | SPHERE:remove() | |
1486 | end)) | |
1487 | ATTACK = false | |
1488 | Rooted = false | |
1489 | end | |
1490 | function Warp() | |
1491 | for e = 1, #BODY do | |
1492 | if BODY[e] ~= nil then | |
1493 | local STUFF = BODY[e] | |
1494 | local PART = STUFF[1] | |
1495 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
1496 | local PRT = PART:Clone() | |
1497 | PRT.Anchored = true | |
1498 | PRT.CanCollide = false | |
1499 | PRT.Material = "Neon" | |
1500 | PRT.Color = C3(0,0,0) | |
1501 | PRT.Name = "WarpEffect" | |
1502 | PRT.Parent = Effects | |
1503 | PRT.CFrame = PART.CFrame | |
1504 | PRT:BreakJoints() | |
1505 | if PRT:FindFirstChildOfClass("Sound") then | |
1506 | PRT:FindFirstChildOfClass("Sound"):remove() | |
1507 | end | |
1508 | if PRT:FindFirstChildOfClass("Decal") then | |
1509 | PRT:FindFirstChildOfClass("Decal"):remove() | |
1510 | end | |
1511 | coroutine.resume(coroutine.create(function() | |
1512 | for i = 1, 100 do | |
1513 | Swait() | |
1514 | PRT.Transparency = PRT.Transparency + 1/100 | |
1515 | end | |
1516 | PRT:remove() | |
1517 | end)) | |
1518 | end | |
1519 | end | |
1520 | end | |
1521 | CreateSound(217767125, Torso, 10, 1) | |
1522 | local POS = RootPart.Orientation | |
1523 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1524 | RootPart.Orientation = POS | |
1525 | RootJoint.Parent = RootPart | |
1526 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eyes.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1527 | ATTACK = false | |
1528 | Rooted = false | |
1529 | end | |
1530 | function killnearest(position,range,maxstrength,BRUTAL,RANGE) | |
1531 | for i,v in ipairs(workspace:GetChildren()) do | |
1532 | local body = v:GetChildren() | |
1533 | for part = 1, #body do | |
1534 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1535 | if(body[part].Position - position).Magnitude < range then | |
1536 | if v.ClassName == "Model" then | |
1537 | v:BreakJoints() | |
1538 | end | |
1539 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1540 | local bv = Instance.new("BodyVelocity") | |
1541 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1542 | bv.velocity = CF(position,body[part].Position).lookVector*maxstrength | |
1543 | bv.Parent = body[part] | |
1544 | Debris:AddItem(bv,0.2) | |
1545 | end | |
1546 | end | |
1547 | end | |
1548 | if v.ClassName == "Part" then | |
1549 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1550 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1551 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | end | |
1556 | function Darkness() | |
1557 | ATTACK = true | |
1558 | Rooted = true | |
1559 | local GYRO = IT("BodyGyro",RootPart) | |
1560 | GYRO.D = 100 | |
1561 | GYRO.P = 2000 | |
1562 | GYRO.MaxTorque = VT(0,4000000,0) | |
1563 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1564 | CreateSound("429459101", RightArm, 10, 0.8) | |
1565 | for i=0, 3.5, 0.1 / Animation_Speed do | |
1566 | Swait() | |
1567 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1568 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,10,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1569 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1570 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1571 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1572 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1573 | end | |
1574 | GYRO:remove() | |
1575 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1576 | Swait() | |
1577 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1578 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.3,0.3,0.3), Size2 = VT(0,10,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Hole.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1579 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1580 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1581 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1582 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1583 | end | |
1584 | local BOMBSPOTS = {} | |
1585 | for i = 1, 25 do | |
1586 | local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Relly black", "Blade", VT(8,1,8)) | |
1587 | SPOT.Color = SKILLTEXTCOLOR | |
1588 | SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5) | |
1589 | table.insert(BOMBSPOTS,SPOT) | |
1590 | MakeForm(SPOT,"Cyl2") | |
1591 | end | |
1592 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1593 | Swait() | |
1594 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7}) | |
1595 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1596 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1597 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.75 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1598 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1599 | end | |
1600 | ATTACK = false | |
1601 | Rooted = false | |
1602 | coroutine.resume(coroutine.create(function() | |
1603 | Swait(3) | |
1604 | for i = 1, #BOMBSPOTS do | |
1605 | if BOMBSPOTS[i] ~= nil then | |
1606 | local E = BOMBSPOTS[i] | |
1607 | coroutine.resume(coroutine.create(function() | |
1608 | local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Relly black", "Blade", VT(0,0,0)) | |
1609 | BLADE.Color = SKILLTEXTCOLOR | |
1610 | CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0)) | |
1611 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6) | |
1612 | BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15))) | |
1613 | for i = 1, 10 do | |
1614 | Swait() | |
1615 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(0,50,0), Transparency = 0, Transparency2 = 1, CFrame = CF(BLADE.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-35,35), RotationZ = 0, Material = "Glass", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(7,15)/10, SoundVolume = 10}) | |
1616 | killnearest(BLADE.Position,6,80) | |
1617 | BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0) | |
1618 | BLADE.Transparency = BLADE.Transparency - 0.1 | |
1619 | end | |
1620 | Swait(45) | |
1621 | for i = 1, 100 do | |
1622 | Swait() | |
1623 | BLADE.Transparency = BLADE.Transparency + 0.01 | |
1624 | E.Transparency = E.Transparency + 0.01 | |
1625 | end | |
1626 | BLADE:remove() | |
1627 | E:remove() | |
1628 | end)) | |
1629 | end | |
1630 | end | |
1631 | end)) | |
1632 | end | |
1633 | function Death() | |
1634 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1635 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1636 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1637 | if TORSO and HUM.Health > 0 then | |
1638 | ATTACK = true | |
1639 | Rooted = true | |
1640 | local GYRO = IT("BodyGyro",RootPart) | |
1641 | GYRO.D = 175 | |
1642 | GYRO.P = 20000 | |
1643 | GYRO.MaxTorque = VT(0,40000,0) | |
1644 | for i=0, 1, 0.1 / Animation_Speed do | |
1645 | Swait() | |
1646 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
1647 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed) | |
1648 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed) | |
1649 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1650 | end | |
1651 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7}) | |
1652 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.6, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = 1, SoundVolume = 7}) | |
1653 | local MAGIC = ParticleEmitter({Speed = 5, Drag = 3, Size1 = 1.7, Size2 = 0, Lifetime1 = 1, Lifetime2 = 3, Parent = TORSO, Emit = 100, Offset = 360, Enabled = true}) | |
1654 | MAGIC.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1655 | local grav = Instance.new("BodyPosition",TORSO) | |
1656 | grav.D = 1500 | |
1657 | grav.P = 20000 | |
1658 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1659 | grav.position = TORSO.Position+VT(0,15,0) | |
1660 | Debris:AddItem(grav,10) | |
1661 | Debris:AddItem(MAGIC,10) | |
1662 | CreateSound(429459101, Torso, 7, 1, false) | |
1663 | CreateSound(429459101, TORSO, 7, 1, false) | |
1664 | GYRO:remove() | |
1665 | ATTACK = false | |
1666 | Rooted = false | |
1667 | end | |
1668 | end | |
1669 | end | |
1670 | --//=================================\\ | |
1671 | --|| ASSIGN THINGS TO KEYS | |
1672 | --\\=================================// | |
1673 | ||
1674 | function MouseDown(Mouse) | |
1675 | if ATTACK == false then | |
1676 | end | |
1677 | end | |
1678 | ||
1679 | function MouseUp(Mouse) | |
1680 | HOLD = false | |
1681 | end | |
1682 | ||
1683 | function KeyDown(Key) | |
1684 | KEYHOLD = true | |
1685 | if Key == "c" and ATTACK == false then | |
1686 | Banisher_Bullet() | |
1687 | end | |
1688 | ||
1689 | if Key == "b" and ATTACK == false then | |
1690 | Death() | |
1691 | end | |
1692 | ||
1693 | if Key == "z" and ATTACK == false then | |
1694 | Darkness() | |
1695 | end | |
1696 | ||
1697 | if Key == "v" and ATTACK == false then | |
1698 | Madness() | |
1699 | end | |
1700 | ||
1701 | if Key == "x" and ATTACK == false then | |
1702 | Mercy() | |
1703 | end | |
1704 | ||
1705 | if Key == "q" and ATTACK == false then | |
1706 | Warp() | |
1707 | end | |
1708 | ||
1709 | if Key == "t" and ATTACK == false then | |
1710 | HI() | |
1711 | end | |
1712 | end | |
1713 | ||
1714 | function KeyUp(Key) | |
1715 | KEYHOLD = false | |
1716 | end | |
1717 | ||
1718 | Mouse.Button1Down:connect(function(NEWKEY) | |
1719 | MouseDown(NEWKEY) | |
1720 | end) | |
1721 | Mouse.Button1Up:connect(function(NEWKEY) | |
1722 | MouseUp(NEWKEY) | |
1723 | end) | |
1724 | Mouse.KeyDown:connect(function(NEWKEY) | |
1725 | KeyDown(NEWKEY) | |
1726 | end) | |
1727 | Mouse.KeyUp:connect(function(NEWKEY) | |
1728 | KeyUp(NEWKEY) | |
1729 | end) | |
1730 | ||
1731 | --//=================================\\ | |
1732 | --\\=================================// | |
1733 | ||
1734 | ||
1735 | function unanchor() | |
1736 | if UNANCHOR == true then | |
1737 | g = Character:GetChildren() | |
1738 | for i = 1, #g do | |
1739 | if g[i].ClassName == "Part" then | |
1740 | g[i].Anchored = false | |
1741 | end | |
1742 | end | |
1743 | end | |
1744 | end | |
1745 | ||
1746 | ||
1747 | --//=================================\\ | |
1748 | --|| WRAP THE WHOLE SCRIPT UP | |
1749 | --\\=================================// | |
1750 | ||
1751 | Humanoid.Changed:connect(function(Jump) | |
1752 | if Jump == "Jump" and (Disable_Jump == true) then | |
1753 | Humanoid.Jump = false | |
1754 | end | |
1755 | end) | |
1756 | ||
1757 | local CONNECT = nil | |
1758 | ||
1759 | while true do | |
1760 | Swait() | |
1761 | ANIMATE.Parent = nil | |
1762 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1763 | Humanoid = IT("Humanoid",Character) | |
1764 | end | |
1765 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1766 | v:Stop(); | |
1767 | end | |
1768 | SINE = SINE + CHANGE | |
1769 | Humanoid.HipHeight = 1.5 | |
1770 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1771 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1772 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
1773 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1774 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1775 | elseif TORSOVELOCITY > 1 then | |
1776 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3) | |
1777 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1778 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1779 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1780 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1781 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1782 | end | |
1783 | if TORSOVERTICALVELOCITY > 1 then | |
1784 | ANIM = "Jump" | |
1785 | if ATTACK == false then | |
1786 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1787 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1790 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1792 | end | |
1793 | elseif TORSOVERTICALVELOCITY < -1 then | |
1794 | ANIM = "Fall" | |
1795 | if ATTACK == false then | |
1796 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1797 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1798 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1799 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1800 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1801 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1802 | end | |
1803 | elseif TORSOVELOCITY < 1 then | |
1804 | ANIM = "Idle" | |
1805 | if ATTACK == false then | |
1806 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(25 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1807 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-25 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1808 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.15 + 0.25 * COS(SINE / 12), -0.3) * ANGLES(RAD(140), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1809 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0.4) * ANGLES(RAD(-5), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1810 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1811 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1812 | end | |
1813 | elseif TORSOVELOCITY > 1 then | |
1814 | ANIM = "Walk" | |
1815 | if ATTACK == false then | |
1816 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3) | |
1817 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1818 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
1819 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1820 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1821 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1822 | end | |
1823 | end | |
1824 | unanchor() | |
1825 | Humanoid.MaxHealth = "inf" | |
1826 | Humanoid.Health = "inf" | |
1827 | if Rooted == false then | |
1828 | Disable_Jump = false | |
1829 | Humanoid.WalkSpeed = Speed | |
1830 | elseif Rooted == true then | |
1831 | Disable_Jump = true | |
1832 | Humanoid.WalkSpeed = 0 | |
1833 | end | |
1834 | for _, c in pairs(Character:GetDescendants()) do | |
1835 | if c == Head then | |
1836 | if c:FindFirstChild("face") then | |
1837 | c.face:remove() | |
1838 | end | |
1839 | end | |
1840 | end MagicSphere(VT(1,1,1)/5,35,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(0,0,0),VT(0,0,0)) | |
1841 | sick:resume() | |
1842 | sick.Volume = 0.5 | |
1843 | sick.Pitch = 1 | |
1844 | sick.SoundId = "rbxassetid://924339757" | |
1845 | sick.Name = "BanishV3Music" | |
1846 | sick.Playing = PLAYSONG | |
1847 | Humanoid.PlatformStand = false | |
1848 | Humanoid.Name = "U ar ded" | |
1849 | refit() | |
1850 | for _, c in pairs(Character:GetChildren()) do | |
1851 | if c:IsA("BasePart") and ATTACK == false then | |
1852 | for _, e in pairs(c:GetChildren()) do | |
1853 | if e:IsA("ParticleEmitter") or e:IsA("BodyPosition") or e:IsA("BodyGyro") then | |
1854 | e:remove() | |
1855 | end | |
1856 | end | |
1857 | end | |
1858 | end | |
1859 | end | |
1860 | ||
1861 | ||
1862 | --//=================================\\ | |
1863 | --\\=================================// | |
1864 | ||
1865 | ||
1866 | ||
1867 | ||
1868 | ||
1869 | --//====================================================\\-- | |
1870 | --|| END OF SCRIPT | |
1871 | --\\====================================================//-- |