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