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