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