SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility code by Mokiros Edit by Zach ") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | wait(0.2) | |
172 | ||
173 | Player = game:GetService("Players").LocalPlayer | |
174 | PlayerGui = Player.PlayerGui | |
175 | Cam = workspace.CurrentCamera | |
176 | Backpack = Player.Backpack | |
177 | Character = Player.Character | |
178 | Humanoid = Character.Humanoid | |
179 | Mouse = Player:GetMouse() | |
180 | RootPart = Character["HumanoidRootPart"] | |
181 | Torso = Character["Torso"] | |
182 | Head = Character["Head"] | |
183 | RightArm = Character["Right Arm"] | |
184 | LeftArm = Character["Left Arm"] | |
185 | RightLeg = Character["Right Leg"] | |
186 | LeftLeg = Character["Left Leg"] | |
187 | RootJoint = RootPart["RootJoint"] | |
188 | Neck = Torso["Neck"] | |
189 | RightShoulder = Torso["Right Shoulder"] | |
190 | LeftShoulder = Torso["Left Shoulder"] | |
191 | RightHip = Torso["Right Hip"] | |
192 | LeftHip = Torso["Left Hip"] | |
193 | Character.Archivable = true | |
194 | Player:ClearCharacterAppearance() | |
195 | ||
196 | IT = Instance.new | |
197 | CF = CFrame.new | |
198 | VT = Vector3.new | |
199 | RAD = math.rad | |
200 | C3 = Color3.new | |
201 | UD2 = UDim2.new | |
202 | BRICKC = BrickColor.new | |
203 | ANGLES = CFrame.Angles | |
204 | EULER = CFrame.fromEulerAnglesXYZ | |
205 | COS = math.cos | |
206 | ACOS = math.acos | |
207 | SIN = math.sin | |
208 | ASIN = math.asin | |
209 | ABS = math.abs | |
210 | MRANDOM = math.random | |
211 | FLOOR = math.floor | |
212 | ||
213 | --//=================================\\ | |
214 | --|| USEFUL VALUES | |
215 | --\\=================================// | |
216 | ||
217 | Animation_Speed = 3 | |
218 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
219 | local Speed = 20 | |
220 | local SIZE = 1 | |
221 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
222 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
223 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
224 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
225 | local DAMAGEMULTIPLIER = 1 | |
226 | local ANIM = "Idle" | |
227 | local ATTACK = false | |
228 | local EQUIPPED = false | |
229 | local HOLD = false | |
230 | local COMBO = 1 | |
231 | local Rooted = false | |
232 | local SINE = 0 | |
233 | local KEYHOLD = false | |
234 | local CHANGE = 2 / Animation_Speed | |
235 | local WALKINGANIM = false | |
236 | local Player_Size = 1 | |
237 | local VALUE1 = false | |
238 | local VALUE2 = false | |
239 | local ROBLOXIDLEANIMATION = IT("Animation") | |
240 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
241 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
242 | local ATANIM = IT("Animation") | |
243 | ATANIM.Name = "Attack Animation" | |
244 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
245 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
246 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
247 | WEAPONGUI.Name = "Weapon GUI" | |
248 | local Weapon = IT("Model") | |
249 | Weapon.Name = "Adds" | |
250 | local Effects = IT("Folder", Weapon) | |
251 | Effects.Name = "Effects" | |
252 | local ANIMATOR = Humanoid.Animator | |
253 | local ANIMATE = Character.Animate | |
254 | local UNANCHOR = true | |
255 | local CLOCKLOOP = 0 | |
256 | local SONG = 1497785701 | |
257 | local CLOCKTARGET = nil | |
258 | local CLOCKSPEED = 1 | |
259 | script.Parent = WEAPONGUI | |
260 | local CLONE = Character:Clone() | |
261 | CLONE.Parent = nil | |
262 | local Delete = IT("Model", Character) | |
263 | Delete.Name = "Those who must be Punished." | |
264 | Character.Archivable = false | |
265 | local sick = Instance.new("Sound",Torso) | |
266 | local ENERGYSOUND = 1417051162 | |
267 | local EXPLOSIONSOUND = 1417056081 | |
268 | ||
269 | ||
270 | --//=================================\\ | |
271 | --\\=================================// | |
272 | ||
273 | ||
274 | ||
275 | --//=================================\\ | |
276 | --\\=================================// | |
277 | ||
278 | --//=================================\\ | |
279 | --|| SOME TAG EDIT | |
280 | --\\=================================// | |
281 | ||
282 | m = game.Players.LocalPlayer | |
283 | char = m.Character | |
284 | local txt = Instance.new("BillboardGui", char) | |
285 | txt.Adornee = char.Head | |
286 | txt.Name = "_status" | |
287 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
288 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
289 | local text = Instance.new("TextLabel", txt) | |
290 | text.Size = UDim2.new(10, 0, 11, 0) | |
291 | text.FontSize = "Size24" | |
292 | text.TextScaled = true | |
293 | text.TextTransparency = 0 | |
294 | text.BackgroundTransparency = 1 | |
295 | text.TextTransparency = 0 | |
296 | text.TextStrokeTransparency = 0 | |
297 | text.Font = "Bodoni" | |
298 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
299 | v = Instance.new("Part") | |
300 | v.Name = "ColorBrick" | |
301 | v.Parent = m.Character | |
302 | v.FormFactor = "Symmetric" | |
303 | v.Anchored = true | |
304 | v.CanCollide = false | |
305 | v.BottomSurface = "Smooth" | |
306 | v.TopSurface = "Smooth" | |
307 | v.Size = Vector3.new(5, 5, 3) | |
308 | v.Transparency = 1 | |
309 | v.CFrame = char.Torso.CFrame | |
310 | v.BrickColor = BrickColor.new("Really black") | |
311 | v.Transparency = 1 | |
312 | v.Shape = "Block" | |
313 | spawn(function() | |
314 | local TweenService = game:GetService("TweenService") | |
315 | local Colours = {Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0),Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0),Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0),Color3.fromRGB(255, 176, 0),Color3.fromRGB(0,0,0)} | |
316 | local Int = 0 | |
317 | while wait(0.5) do | |
318 | if Int == #Colours then Int = 0 end | |
319 | Int = Int+1 | |
320 | TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play() | |
321 | end | |
322 | end) | |
323 | text.Text = "The Death Speaker" | |
324 | ||
325 | --//=================================\\ | |
326 | --|| SOME FUNCTIONS | |
327 | --\\=================================// | |
328 | ||
329 | local asd = Instance.new("ParticleEmitter") | |
330 | asd.Color = ColorSequence.new(Color3.new(0.5, 0.5, 0), Color3.new(.3, 0, 0)) | |
331 | asd.LightEmission = .1 | |
332 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
333 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
334 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
335 | asd.Transparency = bbb | |
336 | asd.Size = aaa | |
337 | asd.ZOffset = .9 | |
338 | asd.Acceleration = Vector3.new(0, -15, 0) | |
339 | asd.LockedToPart = false | |
340 | asd.EmissionDirection = "Back" | |
341 | asd.Lifetime = NumberRange.new(1, 2) | |
342 | asd.Rotation = NumberRange.new(-100, 100) | |
343 | asd.RotSpeed = NumberRange.new(-100, 100) | |
344 | asd.Speed = NumberRange.new(10) | |
345 | asd.Enabled = false | |
346 | asd.VelocitySpread = 999 | |
347 | ||
348 | function getbloody(victim,amount) | |
349 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
350 | PART.CFrame = victim.CFrame | |
351 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
352 | Debris:AddItem(PART,5) | |
353 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
354 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
355 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
356 | local prtcl = asd:Clone() | |
357 | prtcl.Parent = PART | |
358 | prtcl:Emit(amount*10) | |
359 | end | |
360 | ||
361 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
362 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
363 | end | |
364 | ||
365 | function PositiveAngle(NUMBER) | |
366 | if NUMBER >= 0 then | |
367 | NUMBER = 0 | |
368 | end | |
369 | return NUMBER | |
370 | end | |
371 | ||
372 | function NegativeAngle(NUMBER) | |
373 | if NUMBER <= 0 then | |
374 | NUMBER = 0 | |
375 | end | |
376 | return NUMBER | |
377 | end | |
378 | ||
379 | function Swait(NUMBER) | |
380 | if NUMBER == 0 or NUMBER == nil then | |
381 | - | ArtificialHB.Event:wait() |
381 | + | |
382 | for i = 1, NUMBER do | |
383 | end | |
384 | - | ArtificialHB.Event:wait() |
384 | + | |
385 | end | |
386 | ||
387 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
388 | local NEWMESH = IT(MESH) | |
389 | if MESH == "SpecialMesh" then | |
390 | NEWMESH.MeshType = MESHTYPE | |
391 | if MESHID ~= "nil" and MESHID ~= "" then | |
392 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
393 | end | |
394 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
395 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
396 | end | |
397 | end | |
398 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
399 | NEWMESH.Scale = SCALE | |
400 | NEWMESH.Parent = PARENT | |
401 | return NEWMESH | |
402 | end | |
403 | ||
404 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
405 | local NEWPART = IT("Part") | |
406 | NEWPART.formFactor = FORMFACTOR | |
407 | NEWPART.Reflectance = REFLECTANCE | |
408 | NEWPART.Transparency = TRANSPARENCY | |
409 | NEWPART.CanCollide = false | |
410 | NEWPART.Locked = true | |
411 | NEWPART.Anchored = true | |
412 | if ANCHOR == false then | |
413 | NEWPART.Anchored = false | |
414 | end | |
415 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
416 | NEWPART.Name = NAME | |
417 | NEWPART.Size = SIZE | |
418 | NEWPART.Position = Torso.Position | |
419 | NEWPART.Material = MATERIAL | |
420 | NEWPART:BreakJoints() | |
421 | NEWPART.Parent = PARENT | |
422 | return NEWPART | |
423 | end | |
424 | ||
425 | local function weldBetween(a, b) | |
426 | local weldd = Instance.new("ManualWeld") | |
427 | weldd.Part0 = a | |
428 | weldd.Part1 = b | |
429 | weldd.C0 = CFrame.new() | |
430 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
431 | weldd.Parent = a | |
432 | return weldd | |
433 | end | |
434 | ||
435 | ||
436 | function QuaternionFromCFrame(cf) | |
437 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
438 | local trace = m00 + m11 + m22 | |
439 | if trace > 0 then | |
440 | local s = math.sqrt(1 + trace) | |
441 | local recip = 0.5 / s | |
442 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
443 | else | |
444 | local i = 0 | |
445 | if m11 > m00 then | |
446 | i = 1 | |
447 | end | |
448 | if m22 > (i == 0 and m00 or m11) then | |
449 | i = 2 | |
450 | end | |
451 | if i == 0 then | |
452 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
453 | local recip = 0.5 / s | |
454 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
455 | elseif i == 1 then | |
456 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
457 | local recip = 0.5 / s | |
458 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
459 | elseif i == 2 then | |
460 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
461 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
462 | end | |
463 | end | |
464 | end | |
465 | ||
466 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
467 | local xs, ys, zs = x + x, y + y, z + z | |
468 | local wx, wy, wz = w * xs, w * ys, w * zs | |
469 | local xx = x * xs | |
470 | local xy = x * ys | |
471 | local xz = x * zs | |
472 | local yy = y * ys | |
473 | local yz = y * zs | |
474 | local zz = z * zs | |
475 | 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)) | |
476 | end | |
477 | ||
478 | function QuaternionSlerp(a, b, t) | |
479 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
480 | local startInterp, finishInterp; | |
481 | if cosTheta >= 0.0001 then | |
482 | if (1 - cosTheta) > 0.0001 then | |
483 | local theta = ACOS(cosTheta) | |
484 | local invSinTheta = 1 / SIN(theta) | |
485 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
486 | finishInterp = SIN(t * theta) * invSinTheta | |
487 | else | |
488 | startInterp = 1 - t | |
489 | finishInterp = t | |
490 | end | |
491 | else | |
492 | if (1 + cosTheta) > 0.0001 then | |
493 | local theta = ACOS(-cosTheta) | |
494 | local invSinTheta = 1 / SIN(theta) | |
495 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
496 | finishInterp = SIN(t * theta) * invSinTheta | |
497 | else | |
498 | startInterp = t - 1 | |
499 | finishInterp = t | |
500 | end | |
501 | end | |
502 | 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 | |
503 | end | |
504 | ||
505 | function Clerp(a, b, t) | |
506 | local qa = {QuaternionFromCFrame(a)} | |
507 | local qb = {QuaternionFromCFrame(b)} | |
508 | local ax, ay, az = a.x, a.y, a.z | |
509 | local bx, by, bz = b.x, b.y, b.z | |
510 | local _t = 1 - t | |
511 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
512 | end | |
513 | ||
514 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
515 | local frame = IT("Frame") | |
516 | frame.BackgroundTransparency = TRANSPARENCY | |
517 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
518 | frame.Position = POSITION | |
519 | frame.Size = SIZE | |
520 | frame.BackgroundColor3 = COLOR | |
521 | frame.BorderColor3 = BORDERCOLOR | |
522 | frame.Name = NAME | |
523 | frame.Parent = PARENT | |
524 | return frame | |
525 | end | |
526 | ||
527 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
528 | local label = IT("TextLabel") | |
529 | label.BackgroundTransparency = 1 | |
530 | label.Size = UD2(1, 0, 1, 0) | |
531 | label.Position = UD2(0, 0, 0, 0) | |
532 | label.TextColor3 = TEXTCOLOR | |
533 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
534 | label.TextTransparency = TRANSPARENCY | |
535 | label.FontSize = TEXTFONTSIZE | |
536 | label.Font = TEXTFONT | |
537 | label.BorderSizePixel = BORDERSIZEPIXEL | |
538 | label.TextStrokeColor3 = C3(1,1,1) | |
539 | label.TextScaled = false | |
540 | label.Text = TEXT | |
541 | label.Name = NAME | |
542 | label.Parent = PARENT | |
543 | return label | |
544 | end | |
545 | ||
546 | function NoOutlines(PART) | |
547 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
548 | end | |
549 | ||
550 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
551 | local NEWWELD = IT(TYPE) | |
552 | NEWWELD.Part0 = PART0 | |
553 | NEWWELD.Part1 = PART1 | |
554 | NEWWELD.C0 = C0 | |
555 | NEWWELD.C1 = C1 | |
556 | NEWWELD.Parent = PARENT | |
557 | return NEWWELD | |
558 | end | |
559 | ||
560 | local S = IT("Sound") | |
561 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
562 | local NEWSOUND = nil | |
563 | coroutine.resume(coroutine.create(function() | |
564 | NEWSOUND = S:Clone() | |
565 | NEWSOUND.Parent = PARENT | |
566 | NEWSOUND.Volume = VOLUME | |
567 | NEWSOUND.Pitch = PITCH | |
568 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
569 | NEWSOUND:play() | |
570 | if DOESLOOP == true then | |
571 | NEWSOUND.Looped = true | |
572 | else | |
573 | repeat wait(1) until NEWSOUND.Playing == false | |
574 | NEWSOUND:remove() | |
575 | end | |
576 | end)) | |
577 | return NEWSOUND | |
578 | end | |
579 | ||
580 | function CFrameFromTopBack(at, top, back) | |
581 | local right = top:Cross(back) | |
582 | 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) | |
583 | end | |
584 | ||
585 | --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}) | |
586 | function WACKYEFFECT(Table) | |
587 | local TYPE = (Table.EffectType or "Sphere") | |
588 | local SIZE = (Table.Size or VT(1,1,1)) | |
589 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
590 | local TRANSPARENCY = (Table.Transparency or 0) | |
591 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
592 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
593 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
594 | local ROTATION1 = (Table.RotationX or 0) | |
595 | local ROTATION2 = (Table.RotationY or 0) | |
596 | local ROTATION3 = (Table.RotationZ or 0) | |
597 | local MATERIAL = (Table.Material or "Neon") | |
598 | local COLOR = (Table.Color or C3(1,1,1)) | |
599 | local TIME = (Table.Time or 45) | |
600 | local SOUNDID = (Table.SoundID or nil) | |
601 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
602 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
603 | coroutine.resume(coroutine.create(function() | |
604 | local PLAYSSOUND = false | |
605 | local SOUND = nil | |
606 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
607 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
608 | PLAYSSOUND = true | |
609 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
610 | end | |
611 | EFFECT.Color = COLOR | |
612 | local MSH = nil | |
613 | if TYPE == "Sphere" then | |
614 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
615 | elseif TYPE == "Block" then | |
616 | MSH = IT("BlockMesh",EFFECT) | |
617 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
618 | elseif TYPE == "Wave" then | |
619 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
620 | elseif TYPE == "Ring" then | |
621 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
622 | elseif TYPE == "Slash" then | |
623 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
624 | elseif TYPE == "Round Slash" then | |
625 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
626 | elseif TYPE == "Swirl" then | |
627 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
628 | elseif TYPE == "Skull" then | |
629 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
630 | elseif TYPE == "Crystal" then | |
631 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
632 | end | |
633 | if MSH ~= nil then | |
634 | local MOVESPEED = nil | |
635 | if MOVEDIRECTION ~= nil then | |
636 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
637 | end | |
638 | local GROWTH = SIZE - ENDSIZE | |
639 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
640 | if TYPE == "Block" then | |
641 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
642 | else | |
643 | EFFECT.CFrame = CFRAME | |
644 | end | |
645 | for LOOP = 1, TIME+1 do | |
646 | Swait() | |
647 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
648 | if TYPE == "Wave" then | |
649 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
650 | end | |
651 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
652 | if TYPE == "Block" then | |
653 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
654 | else | |
655 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
656 | end | |
657 | if MOVEDIRECTION ~= nil then | |
658 | local ORI = EFFECT.Orientation | |
659 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
660 | EFFECT.Orientation = ORI | |
661 | end | |
662 | end | |
663 | if PLAYSSOUND == false then | |
664 | EFFECT:remove() | |
665 | else | |
666 | repeat Swait() until SOUND.Playing == false | |
667 | EFFECT:remove() | |
668 | end | |
669 | else | |
670 | if PLAYSSOUND == false then | |
671 | EFFECT:remove() | |
672 | else | |
673 | repeat Swait() until SOUND.Playing == false | |
674 | EFFECT:remove() | |
675 | end | |
676 | end | |
677 | end)) | |
678 | end | |
679 | ||
680 | function MakeForm(PART,TYPE) | |
681 | if TYPE == "Cyl" then | |
682 | local MSH = IT("CylinderMesh",PART) | |
683 | elseif TYPE == "Ball" then | |
684 | local MSH = IT("SpecialMesh",PART) | |
685 | MSH.MeshType = "Sphere" | |
686 | elseif TYPE == "Wedge" then | |
687 | local MSH = IT("SpecialMesh",PART) | |
688 | MSH.MeshType = "Wedge" | |
689 | end | |
690 | end | |
691 | ||
692 | Debris = game:GetService("Debris") | |
693 | ||
694 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
695 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
696 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
697 | end | |
698 | ||
699 | function turnto(position) | |
700 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
701 | end | |
702 | ||
703 | function SpawnTrail(FROM,TO,BIG) | |
704 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Deep orange", "Trail", VT(0,0,0)) | |
705 | MakeForm(TRAIL,"Cyl") | |
706 | local DIST = (FROM - TO).Magnitude | |
707 | if BIG == true then | |
708 | TRAIL.Size = VT(0.5,DIST,0.5) | |
709 | else | |
710 | TRAIL.Size = VT(0.25,DIST,0.25) | |
711 | end | |
712 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
713 | coroutine.resume(coroutine.create(function() | |
714 | for i = 1, 5 do | |
715 | Swait() | |
716 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
717 | end | |
718 | TRAIL:remove() | |
719 | end)) | |
720 | end | |
721 | ||
722 | --//=================================\\ | |
723 | --|| WEAPON CREATION | |
724 | --\\=================================// | |
725 | ||
726 | Humanoid.Parent = nil | |
727 | RootPart.Size = RootPart.Size*SIZE | |
728 | Torso.Size = Torso.Size*SIZE | |
729 | RightArm.Size = RightArm.Size*SIZE | |
730 | RightLeg.Size = RightLeg.Size*SIZE | |
731 | LeftArm.Size = LeftArm.Size*SIZE | |
732 | LeftLeg.Size = LeftLeg.Size*SIZE | |
733 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
734 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
735 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
736 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
737 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
738 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
739 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
740 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
741 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
742 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
743 | Head.Size = Head.Size*SIZE | |
744 | RootJoint.Parent = RootPart | |
745 | Neck.Parent = Torso | |
746 | RightShoulder.Parent = Torso | |
747 | LeftShoulder.Parent = Torso | |
748 | RightHip.Parent = Torso | |
749 | LeftHip.Parent = Torso | |
750 | ||
751 | local Handle = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,1.2,0.2),false) | |
752 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0)) | |
753 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.8,0.2),false) | |
754 | MakeForm(Part,"Wedge") | |
755 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
756 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.6),false) | |
757 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
758 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
759 | MakeForm(Part,"Cyl") | |
760 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
761 | for i = 1, 8 do | |
762 | local Piece = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
763 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
764 | end | |
765 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
766 | MakeForm(Part,"Wedge") | |
767 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
768 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.39,0.41,0.39),false) | |
769 | MakeForm(Part,"Cyl") | |
770 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
771 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
772 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
773 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.5),false) | |
774 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
775 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0,0.6),false) | |
776 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3)) | |
777 | local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0.28,5,0.28),false) | |
778 | MakeForm(RightBarrel,"Cyl") | |
779 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0)) | |
780 | local Part = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.2,0.2),false) | |
781 | MakeForm(Part,"Wedge") | |
782 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
783 | local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Mid gray", "Eye", VT(0.2,0,0.2),false) | |
784 | MakeForm(RightHole,"Cyl") | |
785 | CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0)) | |
786 | ||
787 | Humanoid.DisplayDistanceType = "None" | |
788 | local top = Instance.new("Shirt") | |
789 | top.ShirtTemplate = "rbxassetid://1830724093" | |
790 | top.Parent = Character | |
791 | top.Name = "Cloth" | |
792 | local bottom = Instance.new("Pants") | |
793 | bottom.PantsTemplate = "rbxassetid://230347534" | |
794 | bottom.Parent = Character | |
795 | bottom.Name = "Cloth" | |
796 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
797 | PRT.Color = C3(0,0,0) | |
798 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.1,0.15*SIZE,0.085) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0)) | |
799 | CreateMesh("SpecialMesh", PRT, "FileMesh", "19999424", "20571982", VT(1.07,1.07,1.07)*SIZE, VT(0,0,0)) | |
800 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
801 | PRT.Color = C3(0,0,0) | |
802 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.031,-1.1*SIZE,-0.2) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
803 | CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "1149570750", VT(1, 1, 1)*SIZE, VT(0,0,0)) | |
804 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
805 | PRT.Color = C3(0,0,0) | |
806 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.14*SIZE,-0.20) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0)) | |
807 | CreateMesh("SpecialMesh", PRT, "FileMesh", "11419729", "112346956", VT(1, 1, 1)*SIZE, VT(0,0,0)) | |
808 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
809 | PRT.Color = C3(0,0,0) | |
810 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.8*SIZE,0) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0)) | |
811 | CreateMesh("SpecialMesh", PRT, "FileMesh", "1374148", "413143035", VT(1, 1, 1)*SIZE, VT(0,0,0)) | |
812 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
813 | PRT.Color = C3(0,0,0) | |
814 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0,0*SIZE,0.7) * ANGLES(RAD(12), RAD(0), RAD(0)), CF(0, 0, 0)) | |
815 | CreateMesh("SpecialMesh", PRT, "FileMesh", "1147817045", "1147816718", VT(0.8, 0.8, 0.8)*SIZE, VT(0,0,0)) | |
816 | ||
817 | local BasePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Institutional white", "BraceletPart", VT(1.01,0.3,1.01),false) | |
818 | CreateWeldOrSnapOrMotor("Weld", LeftArm, LeftArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
819 | for i = 1, 3 do | |
820 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
821 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
822 | MakeForm(Part,"Cyl") | |
823 | end | |
824 | for i = 1, 3 do | |
825 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
826 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0)) | |
827 | MakeForm(Part,"Cyl") | |
828 | end | |
829 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
830 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
831 | MakeForm(Part,"Wedge") | |
832 | local Part = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
833 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
834 | MakeForm(Part,"Wedge") | |
835 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
836 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
837 | MakeForm(Part,"Wedge") | |
838 | local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Deep orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
839 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
840 | MakeForm(Part,"Wedge") | |
841 | ||
842 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Cocoa", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
843 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
844 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Rust", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
845 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
846 | MakeForm(PRT,"Cyl") | |
847 | local PRT = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Mid gray", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
848 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
849 | MakeForm(PRT,"Cyl") | |
850 | PRT.Color = C3(255/255, 176/255, 0/255) | |
851 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Cocoa", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
852 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
853 | MakeForm(RING,"Cyl") | |
854 | RING.Color = C3(99/255, 95/255, 98/255) | |
855 | for i = 1, 12 do | |
856 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0)*SIZE,false) | |
857 | PRT.Color = C3(99/255, 95/255, 98/255) | |
858 | local MSH = IT("BlockMesh",PRT) | |
859 | MSH.Scale = VT(0.6,1,1) | |
860 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
861 | end | |
862 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
863 | PRT.Color = C3(99/255, 95/255, 98/255) | |
864 | local MSH = IT("BlockMesh",PRT) | |
865 | MSH.Scale = VT(0.4,1,1) | |
866 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
867 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
868 | PRT.Color = C3(99/255, 95/255, 98/255) | |
869 | local MSH = IT("BlockMesh",PRT) | |
870 | MSH.Scale = VT(0.4,1,1) | |
871 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
872 | coroutine.resume(coroutine.create(function() | |
873 | while true do | |
874 | Swait() | |
875 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
876 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
877 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
878 | if CLOCKLOOP <= -150 then | |
879 | if VALUE1 == false then | |
880 | CLOCKLOOP = 0 | |
881 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4}) | |
882 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
883 | ApplyAoE(HITPOS,10,15,45,75,false) | |
884 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
885 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 255/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
886 | if CLOCKTARGET ~= nil then | |
887 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
888 | if CLOCKTARGET.Torso ~= nil then | |
889 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
890 | end | |
891 | if CLOCKTARGET.Health == 0 then | |
892 | CLOCKTARGET = nil | |
893 | end | |
894 | end | |
895 | end | |
896 | end | |
897 | end | |
898 | end)) | |
899 | ||
900 | for _, c in pairs(Weapon:GetChildren()) do | |
901 | if c.ClassName == "Part" then | |
902 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
903 | end | |
904 | end | |
905 | ||
906 | Neck.Name = "Weld" | |
907 | RootJoint.Name = "Weld" | |
908 | RightShoulder.Name = "Weld" | |
909 | LeftShoulder.Name = "Weld" | |
910 | RightHip.Name = "Weld" | |
911 | LeftHip.Name = "Weld" | |
912 | ||
913 | local SKILLTEXTCOLOR = C3(255/255, 176/255, 0/255) | |
914 | local SKILLFONT = "Fantasy" | |
915 | local SKILLTEXTSIZE = 7 | |
916 | ||
917 | Weapon.Parent = Character | |
918 | Humanoid.Parent = Character | |
919 | ||
920 | Humanoid.Died:connect(function() | |
921 | ATTACK = true | |
922 | end) | |
923 | ||
924 | local BODY = {} | |
925 | for _, c in pairs(Character:GetDescendants()) do | |
926 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
927 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
928 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
929 | end | |
930 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
931 | elseif c:IsA("JointInstance") then | |
932 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
933 | end | |
934 | end | |
935 | for e = 1, #BODY do | |
936 | if BODY[e] ~= nil then | |
937 | local STUFF = BODY[e] | |
938 | local PART = STUFF[1] | |
939 | local PARENT = STUFF[2] | |
940 | local MATERIAL = STUFF[3] | |
941 | local COLOR = STUFF[4] | |
942 | local TRANSPARENCY = STUFF[5] | |
943 | if PART.ClassName == "Part" and PART ~= RootPart then | |
944 | PART.Material = MATERIAL | |
945 | PART.Color = COLOR | |
946 | PART.Transparency = TRANSPARENCY | |
947 | end | |
948 | PART.AncestryChanged:Connect(function() | |
949 | PART.Parent = PARENT | |
950 | end) | |
951 | end | |
952 | end | |
953 | ||
954 | --//=================================\\ | |
955 | --|| ANIM | |
956 | --\\=================================// | |
957 | ||
958 | ||
959 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
960 | PLAYMAINANIM = false | |
961 | if WhichPose == "Cast1" then | |
962 | for i=0, Time, 0.1 / Animation_Speed do | |
963 | Swait() | |
964 | if Magic == true then | |
965 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
966 | end | |
967 | if Gyro ~= nil and Gyro ~= false then | |
968 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
969 | end | |
970 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
971 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
972 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
973 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
974 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
975 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
976 | end | |
977 | elseif WhichPose == "Cast2" then | |
978 | for i=0, Time, 0.1 / Animation_Speed do | |
979 | Swait() | |
980 | if Magic == true then | |
981 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
982 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
983 | end | |
984 | if Gyro ~= nil and Gyro ~= false then | |
985 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
986 | end | |
987 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
988 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
989 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
990 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
991 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
992 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
993 | end | |
994 | elseif WhichPose == "RightArmUp" then | |
995 | for i=0, Time, 0.1 / Animation_Speed do | |
996 | Swait() | |
997 | if Magic == true then | |
998 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Deep orange".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
999 | end | |
1000 | if Gyro ~= nil and Gyro ~= false then | |
1001 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1002 | end | |
1003 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1004 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1005 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(-90), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1006 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1007 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1008 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1009 | end | |
1010 | elseif WhichPose == "Taunt" then | |
1011 | for i=0, Time, 0.1 / Animation_Speed do | |
1012 | Swait() | |
1013 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1014 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1015 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1016 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1017 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1018 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1019 | end | |
1020 | CreateSound(221057812,Torso,10,1,false) | |
1021 | for i=0, Time*2, 0.1 / Animation_Speed do | |
1022 | Swait() | |
1023 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1024 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1025 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1026 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1027 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1028 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1029 | end | |
1030 | for i=0, Time, 0.1 / Animation_Speed do | |
1031 | Swait() | |
1032 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1033 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1034 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1035 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1036 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1037 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1038 | end | |
1039 | elseif WhichPose == "Prepare key" then | |
1040 | for i=0, Time, 0.1 / Animation_Speed do | |
1041 | Swait() | |
1042 | if Gyro ~= nil and Gyro ~= false then | |
1043 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
1044 | end | |
1045 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
1046 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
1047 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1048 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1049 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1050 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1051 | end | |
1052 | elseif WhichPose == "Turn key" then | |
1053 | for i=0, Time, 0.1 / Animation_Speed do | |
1054 | Swait() | |
1055 | if Gyro ~= nil and Gyro ~= false then | |
1056 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
1057 | end | |
1058 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
1059 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
1060 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
1061 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
1062 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
1063 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
1064 | end | |
1065 | end | |
1066 | PLAYMAINANIM = true | |
1067 | end | |
1068 | ||
1069 | --//=================================\\ | |
1070 | --|| DAMAGING | |
1071 | --\\=================================// | |
1072 | ||
1073 | function CastWarpOutlines(TARGET) | |
1074 | coroutine.resume(coroutine.create(function() | |
1075 | local T = TARGET:GetChildren() | |
1076 | for i = 1, #T do | |
1077 | local child = T[i] | |
1078 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
1079 | do | |
1080 | local clone = child:Clone() | |
1081 | clone.Parent = Effects | |
1082 | clone.Anchored = true | |
1083 | clone.CanCollide = false | |
1084 | clone:ClearAllChildren() | |
1085 | clone.CFrame = child.CFrame | |
1086 | if clone.Name == "Head" then | |
1087 | clone.Size = VT(clone.Size.Y, clone.Size.Y, clone.Size.Y) | |
1088 | end | |
1089 | if clone.ClassName == "MeshPart" then | |
1090 | clone.TextureID = "" | |
1091 | end | |
1092 | clone.Color = C3(255/255, 176/255, 0) | |
1093 | clone.Material = "Neon" | |
1094 | coroutine.resume(coroutine.create(function() | |
1095 | for i = 1, 100 do | |
1096 | Swait() | |
1097 | clone.Transparency = clone.Transparency + 0.01 | |
1098 | clone.Size = clone.Size + VT(0.001, 0.001, 0.001) | |
1099 | end | |
1100 | clone:remove() | |
1101 | end)) | |
1102 | end | |
1103 | end | |
1104 | end | |
1105 | end)) | |
1106 | end | |
1107 | ||
1108 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
1109 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1110 | defence.Name = ("HitBy"..Player.Name) | |
1111 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1112 | Damage = Damage * DAMAGEMULTIPLIER | |
1113 | if Humanoid.Health ~= 0 then | |
1114 | local CritChance = MRANDOM(1,100) | |
1115 | if Damage > Humanoid.Health then | |
1116 | Damage = math.ceil(Humanoid.Health) | |
1117 | if Damage == 0 then | |
1118 | Damage = 0.1 | |
1119 | end | |
1120 | end | |
1121 | Humanoid.Health = Humanoid.Health - Damage | |
1122 | end | |
1123 | end | |
1124 | ||
1125 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1126 | local CHILDREN = workspace:GetDescendants() | |
1127 | for index, CHILD in pairs(CHILDREN) do | |
1128 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1129 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1130 | if HUM then | |
1131 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1132 | if TORSO then | |
1133 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1134 | if INSTAKILL == true then | |
1135 | CHILD:BreakJoints() | |
1136 | else | |
1137 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1138 | ApplyDamage(HUM,DMG,TORSO) | |
1139 | end | |
1140 | if FLING > 0 then | |
1141 | for _, c in pairs(CHILD:GetChildren()) do | |
1142 | if c:IsA("BasePart") then | |
1143 | local bv = Instance.new("BodyVelocity") | |
1144 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1145 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1146 | bv.Parent = c | |
1147 | Debris:AddItem(bv,0.05) | |
1148 | end | |
1149 | end | |
1150 | end | |
1151 | end | |
1152 | end | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | end | |
1157 | ||
1158 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1159 | local CHILDREN = workspace:GetDescendants() | |
1160 | for index, CHILD in pairs(CHILDREN) do | |
1161 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1162 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1163 | if HUM then | |
1164 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1165 | if TORSO then | |
1166 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1167 | if BRUTAL == true then | |
1168 | Kill(CHILD) | |
1169 | else | |
1170 | CHILD:BreakJoints() | |
1171 | end | |
1172 | end | |
1173 | end | |
1174 | end | |
1175 | end | |
1176 | end | |
1177 | end | |
1178 | ||
1179 | function Kill(Char) | |
1180 | local NewCharacter = IT("Model",Effects) | |
1181 | NewCharacter.Name = "Ow im ded ;-;" | |
1182 | for _, c in pairs(Char:GetDescendants()) do | |
1183 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1184 | if c.Parent == Char then | |
1185 | getbloody(c,5) | |
1186 | end | |
1187 | c:BreakJoints() | |
1188 | c.Material = "Glass" | |
1189 | c.Color = C3(1,0,0) | |
1190 | c.CanCollide = true | |
1191 | c.Transparency = 0.3 | |
1192 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1193 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1194 | end | |
1195 | if c.Name == "Head" then | |
1196 | c:ClearAllChildren() | |
1197 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1198 | end | |
1199 | if c.ClassName == "MeshPart" then | |
1200 | c.TextureID = "" | |
1201 | end | |
1202 | if c:FindFirstChildOfClass("BodyPosition") then | |
1203 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1204 | end | |
1205 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1206 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1207 | end | |
1208 | c.Parent = NewCharacter | |
1209 | c.Name = "DeadPart" | |
1210 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1211 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1212 | end | |
1213 | end | |
1214 | Char:remove() | |
1215 | Debris:AddItem(NewCharacter,5) | |
1216 | end | |
1217 | ||
1218 | function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier) | |
1219 | local dmg = math.random(min,max) | |
1220 | for i,v in ipairs(workspace:GetChildren()) do | |
1221 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1222 | local body = v:GetChildren() | |
1223 | for part = 1, #body do | |
1224 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1225 | if(body[part].Position - position).Magnitude < radius then | |
1226 | if v.ClassName == "Model" then | |
1227 | if v:FindFirstChildOfClass("Humanoid") then | |
1228 | ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier) | |
1229 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1230 | end | |
1231 | end | |
1232 | end | |
1233 | end | |
1234 | end | |
1235 | end | |
1236 | if v:FindFirstChild("HitBy"..Player.Name) then | |
1237 | v:FindFirstChild("HitBy"..Player.Name):remove() | |
1238 | end | |
1239 | end | |
1240 | end | |
1241 | ||
1242 | function CreateCrown(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
1243 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
1244 | local mesh = IT("SpecialMesh",wave) | |
1245 | mesh.MeshType = "FileMesh" | |
1246 | mesh.MeshId = "http://www.roblox.com/asset/?id=1078075" | |
1247 | mesh.Scale = SIZE | |
1248 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
1249 | wave.CFrame = CFRAME | |
1250 | coroutine.resume(coroutine.create(function(PART) | |
1251 | for i = 1, WAIT do | |
1252 | Swait() | |
1253 | mesh.Scale = mesh.Scale + GROW | |
1254 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
1255 | if DOESROT == true then | |
1256 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
1257 | end | |
1258 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
1259 | if wave.Transparency > 0.99 then | |
1260 | wave:remove() | |
1261 | end | |
1262 | end | |
1263 | end)) | |
1264 | end | |
1265 | ||
1266 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1267 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1268 | local mesh = IT("SpecialMesh",wave) | |
1269 | mesh.MeshType = "Sphere" | |
1270 | mesh.Scale = SIZE | |
1271 | mesh.Offset = VT(0,0,0) | |
1272 | wave.CFrame = CFRAME | |
1273 | coroutine.resume(coroutine.create(function(PART) | |
1274 | for i = 1, WAIT do | |
1275 | Swait() | |
1276 | mesh.Scale = mesh.Scale + GROW | |
1277 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1278 | if wave.Transparency > 0.99 then | |
1279 | wave:remove() | |
1280 | end | |
1281 | end | |
1282 | end)) | |
1283 | end | |
1284 | ||
1285 | function killnearest(position, range, maxstrength) | |
1286 | for i, v in ipairs(workspace:GetChildren()) do | |
1287 | local body = v:GetChildren() | |
1288 | for part = 1, #body do | |
1289 | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude and v.ClassName == "Model" then | |
1290 | CastWarpOutlines(v) | |
1291 | v:remove() | |
1292 | if game.Players:FindFirstChild(v.Name) then | |
1293 | local Value = IT("BoolValue", Kill) | |
1294 | Value.Name = v.Name | |
1295 | end | |
1296 | end | |
1297 | end | |
1298 | end | |
1299 | end | |
1300 | ||
1301 | function MagicSphere3(SIZE, WAIT, CFRAME, COLOR, GROW) | |
1302 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Deep orange"), "Effect", VT(1, 1, 1), true) | |
1303 | local mesh = IT("SpecialMesh", wave) | |
1304 | mesh.MeshType = "Sphere" | |
1305 | mesh.Scale = SIZE | |
1306 | mesh.Offset = VT(0, 0, 0) | |
1307 | wave.CFrame = CFRAME | |
1308 | coroutine.resume(coroutine.create(function(PART) | |
1309 | for i = 1, WAIT do | |
1310 | Swait() | |
1311 | mesh.Scale = mesh.Scale + GROW | |
1312 | wave.Transparency = wave.Transparency + 1 / WAIT | |
1313 | if wave.Transparency > 0.99 then | |
1314 | wave:remove() | |
1315 | end | |
1316 | end | |
1317 | end)) | |
1318 | end | |
1319 | function MagicBlock(SIZE, WAIT, CFRAME, COLOR, GROW) | |
1320 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE, SIZE, SIZE), true) | |
1321 | local mesh = IT("BlockMesh", wave) | |
1322 | wave.CFrame = CFRAME | |
1323 | coroutine.resume(coroutine.create(function(PART) | |
1324 | for i = 1, WAIT do | |
1325 | Swait() | |
1326 | mesh.Scale = mesh.Scale + GROW | |
1327 | wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360, 360)), RAD(math.random(-360, 360)), RAD(math.random(-360, 360))) | |
1328 | wave.Transparency = wave.Transparency + 1 / WAIT | |
1329 | if wave.Transparency > 0.99 then | |
1330 | wave:remove() | |
1331 | end | |
1332 | end | |
1333 | end)) | |
1334 | end | |
1335 | ||
1336 | --//=================================\\ | |
1337 | --|| ATTACK FUNCTIONS AND STUFF | |
1338 | --\\=================================// | |
1339 | ||
1340 | function TimeSweep() | |
1341 | ATTACK = true | |
1342 | Rooted = false | |
1343 | text.Text = "Cya" | |
1344 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1345 | Swait() | |
1346 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1347 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1348 | end | |
1349 | for e = 1, #BODY do | |
1350 | if BODY[e] ~= nil then | |
1351 | local STUFF = BODY[e] | |
1352 | local PART = STUFF[1] | |
1353 | if PART:IsA("BasePart") and PART ~= RootPart and PART.Name ~= "FaceGradient" and PART.Name ~= "Hair" and PART.Transparency ~= 1 then | |
1354 | local PRT = PART:Clone() | |
1355 | PRT.Anchored = true | |
1356 | PRT.CanCollide = false | |
1357 | PRT.Material = "Glass" | |
1358 | PRT.Color = C3(0.5,0.5,0) | |
1359 | PRT.Name = "WarpEffect" | |
1360 | PRT.Parent = Effects | |
1361 | PRT.CFrame = PART.CFrame | |
1362 | PRT:BreakJoints() | |
1363 | if PRT:FindFirstChildOfClass("Sound") then | |
1364 | PRT:FindFirstChildOfClass("Sound"):remove() | |
1365 | end | |
1366 | if PRT:FindFirstChildOfClass("Decal") then | |
1367 | PRT:FindFirstChildOfClass("Decal"):remove() | |
1368 | end | |
1369 | coroutine.resume(coroutine.create(function() | |
1370 | for i = 1, 100 do | |
1371 | Swait() | |
1372 | PRT.Transparency = PRT.Transparency + 1/100 | |
1373 | end | |
1374 | PRT:remove() | |
1375 | end)) | |
1376 | end | |
1377 | end | |
1378 | end | |
1379 | CreateSound(289556450, Torso, 10, 1) | |
1380 | local POS = RootPart.Orientation | |
1381 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0)) | |
1382 | RootPart.Orientation = POS | |
1383 | RootJoint.Parent = RootPart | |
1384 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1385 | Swait() | |
1386 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1387 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1388 | end | |
1389 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1390 | Swait() | |
1391 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 1*SIZE, -0.3*SIZE) * ANGLES(RAD(0.98), RAD(-119.59 + 2.5 * SIN(SINE / 25)), RAD(-175.39 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1392 | end | |
1393 | text.Text = "wanTH092" | |
1394 | ATTACK = false | |
1395 | Rooted = false | |
1396 | end | |
1397 | ||
1398 | function MagicMissiles() | |
1399 | ATTACK = true | |
1400 | Rooted = true | |
1401 | text.Text = "Look up bro." | |
1402 | local SELECTING = true | |
1403 | local SPOTS = {} | |
1404 | coroutine.resume(coroutine.create(function() | |
1405 | local LOOP = 0 | |
1406 | repeat | |
1407 | LOOP = LOOP + 1 | |
1408 | Swait() | |
1409 | if LOOP >= 10 then | |
1410 | LOOP = 0 | |
1411 | for i = 1, #SPOTS do | |
1412 | if SPOTS[i] ~= nil then | |
1413 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1414 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0/255, 0/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1415 | end | |
1416 | end | |
1417 | end | |
1418 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1419 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, -.1 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1420 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(155), RAD(-45), RAD(15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1421 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1422 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1423 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1424 | until SELECTING == false | |
1425 | Rooted = false | |
1426 | repeat | |
1427 | LOOP = LOOP + 1 | |
1428 | Swait() | |
1429 | if LOOP >= 10 then | |
1430 | LOOP = 0 | |
1431 | for i = 1, #SPOTS do | |
1432 | if SPOTS[i] ~= nil then | |
1433 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1434 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1435 | end | |
1436 | end | |
1437 | end | |
1438 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1439 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1440 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1441 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1442 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1443 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1444 | until ATTACK == false | |
1445 | end)) | |
1446 | repeat | |
1447 | repeat Swait() until HOLD == true | |
1448 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1449 | if DIST > 9999999 then | |
1450 | DIST = 9999999 | |
1451 | end | |
1452 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1453 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1454 | if HITFLOOR ~= nil then | |
1455 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
1456 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(3,1,3), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = 213603013, SoundPitch = 1, SoundVolume = 6}) | |
1457 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(2,1.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1458 | end | |
1459 | repeat Swait() until HOLD == false | |
1460 | until #SPOTS == 4 | |
1461 | SELECTING = false | |
1462 | for i = 1, #SPOTS do | |
1463 | if SPOTS[i] ~= nil then | |
1464 | local POS = SPOTS[i] | |
1465 | coroutine.resume(coroutine.create(function() | |
1466 | local MISSILE = IT("Model",Effects) | |
1467 | MISSILE.Name = "Missile" | |
1468 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Deep orange", "Part", VT(2,2,2)) | |
1469 | MakeForm(BASEPART,"Cyl") | |
1470 | MISSILE.PrimaryPart = BASEPART | |
1471 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
1472 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Deep orange", "Part", VT(2,4,2)) | |
1473 | MakeForm(HEAD,"Ball") | |
1474 | HEAD.CFrame = BASEPART.CFrame*CF(0,1,0) | |
1475 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Deep orange", "Part", VT(2.5,0.1,2.5)) | |
1476 | MakeForm(TAIL,"Cyl") | |
1477 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
1478 | for i = 1, 10 do | |
1479 | Swait() | |
1480 | for _, c in pairs(MISSILE:GetChildren()) do | |
1481 | if c.ClassName == "Part" then | |
1482 | c.Transparency = c.Transparency - 1/10 | |
1483 | end | |
1484 | end | |
1485 | end | |
1486 | for i = 1, 15*1.5 do | |
1487 | Swait() | |
1488 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
1489 | end | |
1490 | ApplyAoE(BASEPART.CFrame.p,80,140,180,300,false) | |
1491 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(300,4,300), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 255/255), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) | |
1492 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(140,140,140), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4}) | |
1493 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(88,8,88), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 255/255, 255/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1494 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(80,12,80), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1495 | MISSILE:remove() | |
1496 | end)) | |
1497 | end | |
1498 | end | |
1499 | wait(0.6) | |
1500 | text.Text = "wanTH092" | |
1501 | ATTACK = false | |
1502 | Rooted = false | |
1503 | end | |
1504 | ||
1505 | function TimesUp() | |
1506 | CLOCKTARGET = nil | |
1507 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1508 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1509 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1510 | if TORSO then | |
1511 | ATTACK = true | |
1512 | Rooted = false | |
1513 | coroutine.resume(coroutine.create(function() | |
1514 | repeat | |
1515 | Swait() | |
1516 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1517 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1518 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1519 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1520 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1521 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1522 | until ATTACK == false | |
1523 | end)) | |
1524 | if Effects:FindFirstChild("NeonDoll") then | |
1525 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil | |
1526 | end | |
1527 | wait(0.5) | |
1528 | local FAKECHARACTER = IT("Model",Effects) | |
1529 | FAKECHARACTER.Name = "NeonDoll" | |
1530 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.3,0.3,0.15),false) | |
1531 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0)) | |
1532 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
1533 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
1534 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
1535 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
1536 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
1537 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0)) | |
1538 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.3,0.15),false) | |
1539 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
1540 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Deep orange", "Part", VT(0.15,0.15,0.15),false) | |
1541 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
1542 | CreateSound(201858045, TORS, 5, 0.4, false) | |
1543 | for i = 1, 150 do | |
1544 | Swait() | |
1545 | text.Text = "Stand still this will take a few Sec" | |
1546 | CLOCKSPEED = 15 | |
1547 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1548 | if c.ClassName == "Part" then | |
1549 | c.Transparency = c.Transparency - 0.5/150 | |
1550 | end | |
1551 | end | |
1552 | end | |
1553 | CLOCKTARGET = HUM | |
1554 | coroutine.resume(coroutine.create(function() | |
1555 | repeat Swait() CLOCKSPEED = 0.5 until CLOCKTARGET == nil | |
1556 | for i = 1, 25 do | |
1557 | Swait() | |
1558 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1559 | if c.ClassName == "Part" then | |
1560 | c.Transparency = c.Transparency + 0.5/25 | |
1561 | end | |
1562 | end | |
1563 | end | |
1564 | CLOCKSPEED = 1 | |
1565 | FAKECHARACTER:remove() | |
1566 | end)) | |
1567 | wait(0.5) | |
1568 | text.Text = "wanTH092" | |
1569 | ATTACK = false | |
1570 | Rooted = false | |
1571 | end | |
1572 | end | |
1573 | end | |
1574 | ||
1575 | function ChainPunch() | |
1576 | ATTACK = true | |
1577 | Rooted = false | |
1578 | text.Text = "Lightning Dragon..." | |
1579 | local GYRO = IT("BodyGyro",RootPart) | |
1580 | GYRO.D = 25 | |
1581 | GYRO.P = 2000 | |
1582 | GYRO.MaxTorque = VT(0,40000,0) | |
1583 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1584 | repeat | |
1585 | Swait() | |
1586 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1587 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1588 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1589 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1590 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1591 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1592 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1593 | until HOLD == true | |
1594 | local POS = Mouse.Hit.p | |
1595 | local CHAINS = false | |
1596 | local CHAINLINKS = {} | |
1597 | local A = IT("Attachment",RightArm) | |
1598 | A.Position = VT(1,-1,0)*SIZE | |
1599 | A.Orientation = VT(-90, -89.982, 0) | |
1600 | local B = IT("Attachment",RightArm) | |
1601 | B.Position = VT(-1,-1,0)*SIZE | |
1602 | B.Orientation = VT(-90, 89.988, 0) | |
1603 | local C = IT("Attachment",RightArm) | |
1604 | C.Position = VT(0.5,-1.3,0)*SIZE | |
1605 | C.Orientation = VT(-90, -89.982, 0) | |
1606 | local D = IT("Attachment",RightArm) | |
1607 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
1608 | D.Orientation = VT(-90, 89.988, 0) | |
1609 | local LIGHT = IT("Attachment",RightArm) | |
1610 | LIGHT.Position = VT(0,-1,0)*SIZE | |
1611 | local LIGHT2 = IT("PointLight",LIGHT) | |
1612 | LIGHT2.Range = 7 | |
1613 | LIGHT2.Brightness = 5 | |
1614 | LIGHT2.Color = SKILLTEXTCOLOR | |
1615 | for i = 1, 2 do | |
1616 | local TWIST = -2 | |
1617 | local START = A | |
1618 | local END = B | |
1619 | if i == 1 then | |
1620 | START = B | |
1621 | END = A | |
1622 | end | |
1623 | local ChainLink = IT("Beam",Torso) | |
1624 | ChainLink.Texture = "rbxassetid://73042633" | |
1625 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1626 | ChainLink.TextureSpeed = 1 | |
1627 | ChainLink.Width0 = 1 | |
1628 | ChainLink.Width1 = 1 | |
1629 | ChainLink.TextureLength = 2.5 | |
1630 | ChainLink.Attachment0 = START | |
1631 | ChainLink.Attachment1 = END | |
1632 | ChainLink.CurveSize0 = TWIST | |
1633 | ChainLink.CurveSize1 = TWIST | |
1634 | --ChainLink.FaceCamera = true | |
1635 | ChainLink.Segments = 45 | |
1636 | ChainLink.Transparency = NumberSequence.new(1) | |
1637 | table.insert(CHAINLINKS,ChainLink) | |
1638 | end | |
1639 | for i = 1, 2 do | |
1640 | local TWIST = -1 | |
1641 | local START = C | |
1642 | local END = D | |
1643 | if i == 1 then | |
1644 | START = D | |
1645 | END = C | |
1646 | end | |
1647 | local ChainLink = IT("Beam",Torso) | |
1648 | ChainLink.Texture = "rbxassetid://73042633" | |
1649 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1650 | ChainLink.TextureSpeed = 1 | |
1651 | ChainLink.Width0 = 1 | |
1652 | ChainLink.Width1 = 1 | |
1653 | ChainLink.TextureLength = 5 | |
1654 | ChainLink.Attachment0 = START | |
1655 | ChainLink.Attachment1 = END | |
1656 | ChainLink.CurveSize0 = TWIST | |
1657 | ChainLink.CurveSize1 = TWIST | |
1658 | --ChainLink.FaceCamera = true | |
1659 | ChainLink.Segments = 25 | |
1660 | ChainLink.LightEmission = 0.5 | |
1661 | ChainLink.Transparency = NumberSequence.new(1) | |
1662 | table.insert(CHAINLINKS,ChainLink) | |
1663 | end | |
1664 | coroutine.resume(coroutine.create(function() | |
1665 | repeat | |
1666 | Swait() | |
1667 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1668 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1669 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1670 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1671 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1672 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1673 | until CHAINS == true | |
1674 | repeat | |
1675 | Swait() | |
1676 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1677 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1678 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1679 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1680 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1681 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1682 | until ATTACK == false | |
1683 | for e = 1, 15 do | |
1684 | Swait() | |
1685 | for i = 1, #CHAINLINKS do | |
1686 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
1687 | end | |
1688 | end | |
1689 | A:remove() | |
1690 | B:remove() | |
1691 | C:remove() | |
1692 | D:remove() | |
1693 | end)) | |
1694 | text.Text = "Smash!!!" | |
1695 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
1696 | for e = 1, 15 do | |
1697 | Swait() | |
1698 | for i = 1, #CHAINLINKS do | |
1699 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
1700 | end | |
1701 | end | |
1702 | CHAINS = true | |
1703 | Rooted = true | |
1704 | wait(0.25) | |
1705 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2)) | |
1706 | FIST.Color = C3(255/255, 176/255, 0/255) | |
1707 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1708 | local LIGHT3 = IT("PointLight",FIST) | |
1709 | LIGHT3.Range = 7 | |
1710 | LIGHT3.Brightness = 5 | |
1711 | LIGHT3.Color = SKILLTEXTCOLOR | |
1712 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0)) | |
1713 | local FISTA = IT("Attachment",FIST) | |
1714 | FISTA.Position = VT(0.062, 0.977, 0) | |
1715 | local ChainLink = IT("Beam",Torso) | |
1716 | ChainLink.Texture = "rbxassetid://73042633" | |
1717 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1718 | ChainLink.TextureSpeed = 0 | |
1719 | ChainLink.Width0 = 3 | |
1720 | ChainLink.Width1 = 3 | |
1721 | ChainLink.TextureLength = 12 | |
1722 | ChainLink.Attachment0 = LIGHT | |
1723 | ChainLink.Attachment1 = FISTA | |
1724 | ChainLink.FaceCamera = true | |
1725 | ChainLink.Segments = 45 | |
1726 | ChainLink.LightEmission = 0.5 | |
1727 | ChainLink.Transparency = NumberSequence.new(0.25) | |
1728 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
1729 | for i = 1, 85 do | |
1730 | Swait() | |
1731 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
1732 | ChainLink.TextureLength = 12+(i*2) | |
1733 | ApplyAoE(FIST.Position,10,15,25,100,false) | |
1734 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1735 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
1736 | if HITFLOOR ~= nil then | |
1737 | HITFLOOR:BreakJoints() | |
1738 | coroutine.resume(coroutine.create(function() | |
1739 | for i = 1, 15 do | |
1740 | Swait() | |
1741 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
1742 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,false) | |
1743 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(255/255, 176/255, 0/255), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1744 | end | |
1745 | end)) | |
1746 | break | |
1747 | end | |
1748 | end | |
1749 | coroutine.resume(coroutine.create(function() | |
1750 | for i = 1, 50 do | |
1751 | Swait() | |
1752 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
1753 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
1754 | end | |
1755 | FIST:remove() | |
1756 | end)) | |
1757 | LIGHT:remove() | |
1758 | GYRO:remove() | |
1759 | text.Text = "wanTH092" | |
1760 | ATTACK = false | |
1761 | Rooted = false | |
1762 | end | |
1763 | ||
1764 | function Taunt1() | |
1765 | ATTACK = true | |
1766 | Rooted = true | |
1767 | text.Text = "Just don't bore me" | |
1768 | local TAUNT = CreateSound(159882635, Torso,50, 1.08, false) | |
1769 | repeat | |
1770 | Swait() | |
1771 | TAUNT.Parent = Torso | |
1772 | TAUNT.Playing = true | |
1773 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1774 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(-0.02, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1775 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1776 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1777 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1778 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1779 | until TAUNT.TimePosition >= 1.25 | |
1780 | for i=0, 1.6, 0.1 / Animation_Speed do | |
1781 | text.Text = "Yeah.." | |
1782 | Swait() | |
1783 | TAUNT.Parent = Torso | |
1784 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1785 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1786 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.45) * ANGLES(RAD(110), RAD(0), RAD(-80)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1787 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.45) * ANGLES(RAD(80), RAD(0), RAD(80)) * ANGLES(RAD(0), RAD(45), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1788 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1789 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1790 | end | |
1791 | text.Text = "wanTH092" | |
1792 | ATTACK = false | |
1793 | Rooted = false | |
1794 | end | |
1795 | ||
1796 | function Charge(TIME,GYRO) | |
1797 | local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false) | |
1798 | local G = nil | |
1799 | if GYRO == true then | |
1800 | G = IT("BodyGyro",RootPart) | |
1801 | G.D = 250 | |
1802 | G.P = 200000 | |
1803 | G.MaxTorque = VT(math.huge,math.huge,math.huge) | |
1804 | end | |
1805 | for i=0, 4.5, 0.1 / Animation_Speed do | |
1806 | Swait() | |
1807 | if G then | |
1808 | G.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1809 | end | |
1810 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1811 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1812 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1813 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(-90), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1814 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1815 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1816 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1817 | end | |
1818 | SND:remove() | |
1819 | if G then | |
1820 | return G | |
1821 | end | |
1822 | end | |
1823 | ||
1824 | function Reminder_Circle() | |
1825 | text.Text = "Reminder.." | |
1826 | ATTACK = true | |
1827 | Rooted = true | |
1828 | Charge(2,false) | |
1829 | local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
1830 | local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false) | |
1831 | for i = 1, 60 do | |
1832 | Swait() | |
1833 | ApplyAoE(RootPart.Position,i*2.6,2,2,-400,true) | |
1834 | SND.Pitch = SND.Pitch - 1/60 | |
1835 | SND2.Pitch = SND.Pitch | |
1836 | WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*4,20,i*4), Size2 = VT(i*4,20,i*4), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1837 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,20,0), Size2 = VT(i*4,12,i*4), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1838 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,12,0), Size2 = VT(i*3.2,20,i*3.2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1839 | text.Text = "Circle!!" | |
1840 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1841 | 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) | |
1842 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1843 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1844 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1845 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1846 | end | |
1847 | SND:remove() | |
1848 | SND2:remove() | |
1849 | text.Text = "wanTH092" | |
1850 | ATTACK = false | |
1851 | Rooted = false | |
1852 | end | |
1853 | ||
1854 | function Mornin_Star() | |
1855 | ATTACK = true | |
1856 | Rooted = true | |
1857 | text.Text = "Gud-" | |
1858 | for i=0, 2, 0.1 / Animation_Speed do | |
1859 | Swait() | |
1860 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1861 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1862 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1863 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5 + 0.025 * COS(SINE / 22), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1864 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1865 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1866 | end | |
1867 | coroutine.resume(coroutine.create(function() | |
1868 | text.Text = "Mornin.." | |
1869 | local POS = Mouse.Hit.p | |
1870 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Deep orange", "Strike", VT(0,2000,0)) | |
1871 | MakeForm(RAY,"Cyl") | |
1872 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "CGA orange", "Strike", VT(0,0,0)) | |
1873 | MakeForm(SPHERE,"Ball") | |
1874 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Deep orange", "Strike", VT(0,0,0)) | |
1875 | MakeForm(SHIELD,"Ball") | |
1876 | SHIELD.CFrame = CF(POS) | |
1877 | RAY.CFrame = CF(POS) | |
1878 | SPHERE.CFrame = CF(POS) | |
1879 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
1880 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
1881 | for i = 1, 200 do | |
1882 | Swait() | |
1883 | 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}) | |
1884 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
1885 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
1886 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
1887 | ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true) | |
1888 | end | |
1889 | for i = 1, 45 do | |
1890 | Swait() | |
1891 | RAY.Transparency = RAY.Transparency + 1/45 | |
1892 | SPHERE.Transparency = RAY.Transparency | |
1893 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
1894 | end | |
1895 | RAY:remove() | |
1896 | SHIELD:remove() | |
1897 | SPHERE:remove() | |
1898 | end)) | |
1899 | for i=0, 1, 0.1 / Animation_Speed do | |
1900 | Swait() | |
1901 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1902 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1903 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-270), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1904 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1905 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1906 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1907 | end | |
1908 | text.Text = "wanTH092" | |
1909 | ATTACK = false | |
1910 | Rooted = false | |
1911 | end | |
1912 | ||
1913 | function Taunt2() | |
1914 | ATTACK = true | |
1915 | Rooted = true | |
1916 | text.Text = "I don't have all day.." | |
1917 | local TAUNT = CreateSound(159882303,Torso,10,1.07,false) | |
1918 | coroutine.resume(coroutine.create(function() | |
1919 | repeat | |
1920 | Swait() | |
1921 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1922 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1923 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(-90), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1924 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1925 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1926 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1927 | until ATTACK == false | |
1928 | end)) | |
1929 | repeat wait() until TAUNT.Playing == false | |
1930 | text.Text = "wanTH092" | |
1931 | ATTACK = false | |
1932 | Rooted = false | |
1933 | end | |
1934 | ||
1935 | function Forget_Circle() | |
1936 | ATTACK = true | |
1937 | Rooted = true | |
1938 | text.Text = "Forget.." | |
1939 | for i=0, 1, 0.1 / Animation_Speed do | |
1940 | Swait() | |
1941 | MagicSphere(VT(65,2,65),15,RootPart.CFrame*CF(0,-3,0),"Deep orange",VT(0,0,0)) | |
1942 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1943 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1944 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(185), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1945 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1946 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1947 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
1948 | end | |
1949 | text.Text = "Crown!!" | |
1950 | CreateSound("588736245", RightArm, 8, 1) | |
1951 | for i=0, 1, 0.1 / Animation_Speed do | |
1952 | Swait() | |
1953 | MagicSphere(VT(65,2,65),15,RootPart.CFrame*CF(0,-3,0),"Deep orange",VT(0,0,0)) | |
1954 | AoEDamage(RootPart.CFrame*CF(0,-3,0).p,35,5,8,5,2,2) | |
1955 | CreateCrown(VT(62,0,62),15,RootPart.CFrame*CF(0,-3,0),true,4,"Deep orange",VT(0,12,0)) | |
1956 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1957 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1958 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed) | |
1959 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1960 | RightHip.C0 = Clerp(RightHip.C0, CF(1, 0.5, -0.75) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
1961 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.4) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(90)), 0.8 / Animation_Speed) | |
1962 | end | |
1963 | text.Text = "wanTH092" | |
1964 | ATTACK = false | |
1965 | Rooted = false | |
1966 | end | |
1967 | ||
1968 | function AfterLife_Rain() | |
1969 | ATTACK = true | |
1970 | Rooted = true | |
1971 | text.Text = "AfterLife.." | |
1972 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1973 | Swait() | |
1974 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1975 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1976 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1977 | 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) | |
1978 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
1979 | end | |
1980 | local DONE = false | |
1981 | local GATE = nil | |
1982 | local GATESPIN = true | |
1983 | coroutine.resume(coroutine.create(function() | |
1984 | repeat | |
1985 | Swait() | |
1986 | if GATE ~= nil then | |
1987 | GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0)) | |
1988 | end | |
1989 | until GATESPIN == false | |
1990 | end)) | |
1991 | coroutine.resume(coroutine.create(function() | |
1992 | repeat | |
1993 | Swait() | |
1994 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1995 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1996 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1997 | 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) | |
1998 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3, 0.75, -0.5) * ANGLES(RAD(0), RAD(-180), RAD(12)) * ANGLES(RAD(175 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed) | |
1999 | until DONE == true | |
2000 | Swait(10) | |
2001 | for i = 1, 75 do | |
2002 | Swait(1.5) | |
2003 | local FIRED = false | |
2004 | local CHILDREN = workspace:GetDescendants() | |
2005 | for index, CHILD in pairs(CHILDREN) do | |
2006 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
2007 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
2008 | if HUM then | |
2009 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
2010 | if TORSO then | |
2011 | if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then | |
2012 | local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character) | |
2013 | local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15))) | |
2014 | 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,1), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 3}) | |
2015 | 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,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2016 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2017 | Kill(CHILD) | |
2018 | FIRED = true | |
2019 | break | |
2020 | end | |
2021 | end | |
2022 | end | |
2023 | end | |
2024 | end | |
2025 | if FIRED == false then | |
2026 | 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))) | |
2027 | 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,1), SoundID = 213603013, SoundPitch = 1.5, SoundVolume = 6}) | |
2028 | 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,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2029 | SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p) | |
2030 | local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character) | |
2031 | if HITBOD ~= nil then | |
2032 | if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then | |
2033 | Kill(HITBOD.Parent) | |
2034 | end | |
2035 | end | |
2036 | end | |
2037 | end | |
2038 | for i = 1, 45 do | |
2039 | Swait() | |
2040 | GATE.Size = GATE.Size - VT(3,0,3) | |
2041 | end | |
2042 | GATESPIN = false | |
2043 | GATE:remove() | |
2044 | end)) | |
2045 | text.Text = "Rain!!" | |
2046 | Swait(5) | |
2047 | local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p, (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 15, Character) | |
2048 | GATE = CreatePart(3, Effects, "Neon", 0, 1, "Teal", "Gate", VT(0,0,0)) | |
2049 | local DECAL = IT("Decal",GATE) | |
2050 | DECAL.Texture = "http://www.roblox.com/asset/?id=0" | |
2051 | DECAL.Face = "Top" | |
2052 | GATE.CFrame = CF(HITPOS) | |
2053 | CreateSound(160772554, GATE, 4, 1.3, false) | |
2054 | for i = 1, 45 do | |
2055 | Swait() | |
2056 | GATE.Size = GATE.Size + VT(3,0,3) | |
2057 | end | |
2058 | CreateSound(213603013, RightBarrel, 6, 1, false) | |
2059 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightBarrel.CFrame*CF(0,2.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2060 | text.Text = "wanTH092" | |
2061 | ATTACK = false | |
2062 | Rooted = false | |
2063 | DONE = true | |
2064 | end | |
2065 | ||
2066 | function Spirital_Wall() | |
2067 | text.Text = "Cya" | |
2068 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 8, Character) | |
2069 | if HITFLOOR ~= nil then | |
2070 | if HITFLOOR.Anchored == true then | |
2071 | local WALL = HITFLOOR:Clone() | |
2072 | WALL.Size = VT(45,45,5) | |
2073 | WALL.Parent = Effects | |
2074 | WALL.Name = "Wall" | |
2075 | WALL.CFrame = RootPart.CFrame*CF(0,-65/2.1,-5)*ANGLES(RAD(-15),RAD(0),RAD(0)) | |
2076 | CreateSound(130972023,WALL,5,0.8,false) | |
2077 | ATTACK = true | |
2078 | Rooted = true | |
2079 | local HIT = WALL.Touched:Connect(function(hit) | |
2080 | if hit.Parent ~= Character then | |
2081 | hit:BreakJoints() | |
2082 | end | |
2083 | end) | |
2084 | coroutine.resume(coroutine.create(function() | |
2085 | WACKYEFFECT({Time = 35, EffectType = "Box", Size = WALL.Size, Size2 = WALL.Size*2, Transparency = 0, Transparency2 = 1, CFrame = WALL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Lavender".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2086 | for i = 1, 90 do | |
2087 | Swait() | |
2088 | WALL.CFrame = WALL.CFrame*CF(0,0.5,0) | |
2089 | end | |
2090 | HIT:disconnect() | |
2091 | wait(5) | |
2092 | for i = 1, 46 do | |
2093 | Swait() | |
2094 | WALL.CFrame = WALL.CFrame*CF(0,-1,0) | |
2095 | end | |
2096 | WALL:remove() | |
2097 | end)) | |
2098 | Pose("RightArmUp",1.5,1.2,true) | |
2099 | text.Text = "wanTH092" | |
2100 | ATTACK = false | |
2101 | Rooted = false | |
2102 | end | |
2103 | end | |
2104 | end | |
2105 | ||
2106 | function FoxRampage() | |
2107 | ATTACK = true | |
2108 | Rooted = false | |
2109 | text.Text = "FoxRampage!!!" | |
2110 | for i = 0, 2, 0.1 / Animation_Speed do | |
2111 | Swait() | |
2112 | turnto(Mouse.Hit.p) | |
2113 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2114 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2115 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2116 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2117 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2118 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2119 | end | |
2120 | local HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character) | |
2121 | repeat | |
2122 | Swait() | |
2123 | HITFLOOR = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 4 * Player_Size, Character) | |
2124 | until HITFLOOR ~= nil | |
2125 | CreateSound("238353911", RightBarrel, 10, MRANDOM(9, 11) / 10) | |
2126 | local SOUND = CreateSound("415700134", Effects, 10, 1.6) | |
2127 | CreateSound("138677306", Effects, 7, 1.2) | |
2128 | coroutine.resume(coroutine.create(function() | |
2129 | local CFRAME = RootPart.CFrame * CF(0, -1.2, -3) | |
2130 | local SIZE = 1 | |
2131 | while true do | |
2132 | text.Text = "wanTH092" | |
2133 | Swait() | |
2134 | for i = 1, 2 do | |
2135 | MagicSphere(VT(SIZE / 5, SIZE / 5, SIZE * 2), 65, CF(CFRAME * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, CFRAME.p), "Deep orange", VT(0.001, 0.001, 0), 0.5) | |
2136 | end | |
2137 | do | |
2138 | local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5)) | |
2139 | Part.CFrame = CFRAME * CF(SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
2140 | coroutine.resume(coroutine.create(function() | |
2141 | Swait(200) | |
2142 | Part.Anchored = false | |
2143 | end)) | |
2144 | local Part = CreatePart(3, Effects, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(SIZE / 5, SIZE / 5, SIZE / 5)) | |
2145 | Part.CFrame = CFRAME * CF(-SIZE / 1.5, -0.7, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))) | |
2146 | coroutine.resume(coroutine.create(function() | |
2147 | Swait(200) | |
2148 | Part.Anchored = false | |
2149 | end)) | |
2150 | MagicSphere(VT(SIZE, SIZE, SIZE), 75, CFRAME, "Deep orange", VT(-SIZE / 75, -SIZE / 75, -SIZE / 75)) | |
2151 | killnearest(CFRAME.p, SIZE, 0) | |
2152 | SIZE = SIZE + 2 | |
2153 | CFRAME = CFRAME * CF(0, 0, -2) | |
2154 | if SOUND.Playing == false then | |
2155 | break | |
2156 | end | |
2157 | end | |
2158 | end | |
2159 | end)) | |
2160 | MagicSphere(VT(0.1, 0.1, 0.1), 45, RightBarrel.CFrame, "Deep orange", VT(0.1, 5, 0.1)) | |
2161 | MagicSphere(VT(0.1, 0.1, 0.1), 45, RightBarrel.CFrame, "Deep orange", VT(0.05, 5, 0.05)) | |
2162 | for i = 0, 3, 0.1 / Animation_Speed do | |
2163 | Swait() | |
2164 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2165 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2166 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(85), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2167 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2168 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2169 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2170 | end | |
2171 | ATTACK = false | |
2172 | Rooted = false | |
2173 | end | |
2174 | ||
2175 | --//=================================\\ | |
2176 | --|| ASSIGN THINGS TO KEYS | |
2177 | --\\=================================// | |
2178 | ||
2179 | function MouseDown(Mouse) | |
2180 | HOLD = true | |
2181 | if ATTACK == false then | |
2182 | end | |
2183 | end | |
2184 | ||
2185 | function MouseUp(Mouse) | |
2186 | HOLD = false | |
2187 | end | |
2188 | ||
2189 | function KeyDown(Key) | |
2190 | KEYHOLD = true | |
2191 | if Key == "z" and ATTACK == false then | |
2192 | MagicMissiles() | |
2193 | end | |
2194 | ||
2195 | if Key == "b" and ATTACK == false then | |
2196 | TimesUp() | |
2197 | end | |
2198 | ||
2199 | if Key == "c" and ATTACK == false then | |
2200 | ChainPunch() | |
2201 | end | |
2202 | ||
2203 | if Key == "q" and ATTACK == false then | |
2204 | TimeSweep() | |
2205 | end | |
2206 | ||
2207 | if Key == "e" and ATTACK == false then | |
2208 | Reminder_Circle() | |
2209 | end | |
2210 | ||
2211 | if Key == "v" and ATTACK == false then | |
2212 | Spirital_Wall() | |
2213 | end | |
2214 | ||
2215 | if Key == "r" and ATTACK == false then | |
2216 | Forget_Circle() | |
2217 | end | |
2218 | ||
2219 | if Key == "x" and ATTACK == false then | |
2220 | Mornin_Star() | |
2221 | end | |
2222 | ||
2223 | if Key == "g" and ATTACK == false then | |
2224 | FoxRampage() | |
2225 | end | |
2226 | ||
2227 | if Key == "f" and ATTACK == false then | |
2228 | AfterLife_Rain() | |
2229 | end | |
2230 | ||
2231 | if Key == "1" and ATTACK == false then | |
2232 | Taunt1() | |
2233 | end | |
2234 | if Key == "2" and ATTACK == false then | |
2235 | Taunt2() | |
2236 | end | |
2237 | end | |
2238 | ||
2239 | function KeyUp(Key) | |
2240 | KEYHOLD = false | |
2241 | end | |
2242 | ||
2243 | Mouse.Button1Down:connect(function(NEWKEY) | |
2244 | MouseDown(NEWKEY) | |
2245 | end) | |
2246 | Mouse.Button1Up:connect(function(NEWKEY) | |
2247 | MouseUp(NEWKEY) | |
2248 | end) | |
2249 | Mouse.KeyDown:connect(function(NEWKEY) | |
2250 | KeyDown(NEWKEY) | |
2251 | end) | |
2252 | Mouse.KeyUp:connect(function(NEWKEY) | |
2253 | KeyUp(NEWKEY) | |
2254 | end) | |
2255 | ||
2256 | --//=================================\\ | |
2257 | --\\=================================// | |
2258 | ||
2259 | ||
2260 | function unanchor() | |
2261 | if UNANCHOR == true then | |
2262 | RootPart.Anchored = false | |
2263 | end | |
2264 | g = Character:GetChildren() | |
2265 | for i = 1, #g do | |
2266 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
2267 | g[i].Anchored = false | |
2268 | end | |
2269 | end | |
2270 | g = Weapon:GetChildren() | |
2271 | for i = 1, #g do | |
2272 | if g[i].ClassName == "Part" then | |
2273 | g[i].Anchored = false | |
2274 | end | |
2275 | end | |
2276 | end | |
2277 | ||
2278 | ||
2279 | --//=================================\\ | |
2280 | --|| WRAP THE WHOLE SCRIPT UP | |
2281 | --\\=================================// | |
2282 | ||
2283 | Humanoid.Changed:connect(function(Jump) | |
2284 | if Jump == "Jump" and (Disable_Jump == true) then | |
2285 | Humanoid.Jump = false | |
2286 | end | |
2287 | end) | |
2288 | ||
2289 | while true do | |
2290 | wait() | |
2291 | script.Parent = WEAPONGUI | |
2292 | - | Swait() |
2292 | + | |
2293 | v:Stop(); | |
2294 | end | |
2295 | ANIMATE.Parent = nil | |
2296 | SINE = SINE + CHANGE*1.5 | |
2297 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2298 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2299 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2300 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2301 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2302 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2303 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2304 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2305 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2306 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2307 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2308 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2309 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2310 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2311 | end | |
2312 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2313 | ANIM = "Jump" | |
2314 | if ATTACK == false then | |
2315 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2316 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2317 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2318 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2319 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
2320 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2321 | end | |
2322 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2323 | ANIM = "Fall" | |
2324 | if ATTACK == false then | |
2325 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2326 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2327 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2328 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2329 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2330 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
2331 | end | |
2332 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2333 | ANIM = "Idle" | |
2334 | if ATTACK == false then | |
2335 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2336 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2337 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-5), RAD(25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2338 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2339 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2340 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2341 | end | |
2342 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2343 | ANIM = "Walk" | |
2344 | if ATTACK == false then | |
2345 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2346 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
2347 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-5), RAD(25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2348 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2349 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2350 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2351 | end | |
2352 | end | |
2353 | unanchor() | |
2354 | Humanoid.MaxHealth = "inf" | |
2355 | Humanoid.Health = "inf" | |
2356 | if Rooted == false then | |
2357 | Disable_Jump = false | |
2358 | Humanoid.WalkSpeed = Speed | |
2359 | elseif Rooted == true then | |
2360 | Disable_Jump = true | |
2361 | Humanoid.WalkSpeed = 0 | |
2362 | end | |
2363 | for _, c in pairs(Character:GetChildren()) do | |
2364 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2365 | c.Material = "Fabric" | |
2366 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2367 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2368 | end | |
2369 | if c ~= Head then | |
2370 | c.Color = C3(255/255,204/255,153/255) | |
2371 | else | |
2372 | c.Color = C3(255/255, 204/255, 153/255) | |
2373 | end | |
2374 | if c == Head then | |
2375 | if c:FindFirstChild("face") then | |
2376 | c.face.Texture = "rbxassetid://31117192" | |
2377 | end | |
2378 | end | |
2379 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2380 | c:remove() | |
2381 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2382 | c:remove() | |
2383 | end | |
2384 | end | |
2385 | sick.SoundId = "rbxassetid://"..SONG | |
2386 | sick.Looped = true | |
2387 | sick.Pitch = 1 | |
2388 | sick.Volume = 1.5 | |
2389 | sick.Parent = Torso | |
2390 | sick:Resume() | |
2391 | --sick.Playing = false | |
2392 | Humanoid.Name = "wanTH092 = "..Player.Name | |
2393 | end | |
2394 | ||
2395 | --//=================================\\ | |
2396 | --\\=================================// | |
2397 | ||
2398 | ||
2399 | ||
2400 | ||
2401 | ||
2402 | --//====================================================\\-- | |
2403 | --|| END OF SCRIPT | |
2404 | --\\====================================================//-- |