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