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