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