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