SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
| |
| 2 | print("FE Compatibility: by WaverlyCole & Mokiros")
| |
| 3 | InternalData = {}
| |
| 4 | do | |
| 5 | script.Parent = owner.Character | |
| 6 | local Event = Instance.new("RemoteEvent")
| |
| 7 | Event.Name = "UserInput" | |
| 8 | local function NewFakeEvent() | |
| 9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
| |
| 10 | return Fake | |
| 11 | end | |
| 12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 17 | local function TriggerEvent(self,Event,...) | |
| 18 | local Trigger = Mouse[Event] | |
| 19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
| 20 | Trigger.Function(...) | |
| 21 | end | |
| 22 | end | |
| 23 | Mouse.TrigEvent = TriggerEvent | |
| 24 | UserInputService.TrigEvent = TriggerEvent | |
| 25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 26 | if FiredBy.Name ~= owner.Name then end | |
| 27 | if Input.MouseEvent then | |
| 28 | Mouse.Target = Input.Target | |
| 29 | Mouse.Hit = Input.Hit | |
| 30 | else | |
| 31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
| 34 | end | |
| 35 | for _,Action in pairs(ContextActionService.Actions) do | |
| 36 | for _,Key in pairs(Action.Keys) do | |
| 37 | if Key==Input.KeyCode then | |
| 38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
| 39 | end | |
| 40 | end | |
| 41 | end | |
| 42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 44 | end | |
| 45 | end) | |
| 46 | InternalData["Mouse"] = Mouse | |
| 47 | InternalData["ContextActionService"] = ContextActionService | |
| 48 | InternalData["UserInputService"] = UserInputService | |
| 49 | Event.Parent = NLS([[ | |
| 50 | local Player = owner | |
| 51 | local Event = script:WaitForChild("UserInput")
| |
| 52 | local UserInputService = game:GetService("UserInputService")
| |
| 53 | local Mouse = Player:GetMouse() | |
| 54 | local Input = function(Input,gameProcessedEvent) | |
| 55 | if gameProcessedEvent then return end | |
| 56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 57 | end | |
| 58 | UserInputService.InputBegan:Connect(Input) | |
| 59 | UserInputService.InputEnded:Connect(Input) | |
| 60 | local Hit,Target | |
| 61 | while wait(1/30) do | |
| 62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 63 | Hit,Target = Mouse.Hit,Mouse.Target | |
| 64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 65 | end | |
| 66 | end | |
| 67 | ]],owner.Character) | |
| 68 | end | |
| 69 | RealGame = game;game = setmetatable({},{
| |
| 70 | __index = function (self,Index) | |
| 71 | local Sandbox = function (Thing) | |
| 72 | if Thing:IsA("Player") then
| |
| 73 | local RealPlayer = Thing | |
| 74 | return setmetatable({},{
| |
| 75 | __index = function (self,Index) | |
| 76 | local Type = type(RealPlayer[Index]) | |
| 77 | if Type == "function" then | |
| 78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 79 | return function (self) | |
| 80 | return InternalData["Mouse"] | |
| 81 | end | |
| 82 | end | |
| 83 | return function (self,...) | |
| 84 | return RealPlayer[Index](RealPlayer,...) | |
| 85 | end | |
| 86 | else | |
| 87 | if Index == "PlrObj" then | |
| 88 | return RealPlayer | |
| 89 | end | |
| 90 | return RealPlayer[Index] | |
| 91 | end | |
| 92 | end; | |
| 93 | __tostring = function(self) | |
| 94 | return RealPlayer.Name | |
| 95 | end | |
| 96 | }) | |
| 97 | end | |
| 98 | end | |
| 99 | if RealGame[Index] then | |
| 100 | local Type = type(RealGame[Index]) | |
| 101 | if Type == "function" then | |
| 102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 103 | return function (self,Service) | |
| 104 | if Service:lower() == "players" then | |
| 105 | return setmetatable({},{
| |
| 106 | __index = function (self2,Index2) | |
| 107 | local RealService = RealGame:GetService(Service) | |
| 108 | local Type2 = type(Index2) | |
| 109 | if Type2 == "function" then | |
| 110 | return function (self,...) | |
| 111 | return RealService[Index2](RealService,...) | |
| 112 | end | |
| 113 | else | |
| 114 | if Index2:lower() == "localplayer" then | |
| 115 | return Sandbox(owner) | |
| 116 | end | |
| 117 | return RealService[Index2] | |
| 118 | end | |
| 119 | end; | |
| 120 | __tostring = function(self) | |
| 121 | return RealGame:GetService(Service).Name | |
| 122 | end | |
| 123 | }) | |
| 124 | elseif Service:lower() == "contextactionservice" then | |
| 125 | return InternalData["ContextActionService"] | |
| 126 | elseif Service:lower() == "contextactionservice" then | |
| 127 | return InternalData["UserInputService"] | |
| 128 | elseif Service:lower() == "runservice" then | |
| 129 | return setmetatable({},{
| |
| 130 | __index = function(self2,Index2) | |
| 131 | local RealService = RealGame:GetService(Service) | |
| 132 | local Type2 = type(Index2) | |
| 133 | if Type2 == "function" then | |
| 134 | return function (self,...) | |
| 135 | return RealService[Index2](RealService,...) | |
| 136 | end | |
| 137 | else | |
| 138 | if Index2:lower() == "bindtorenderstep" then | |
| 139 | return function (self,Name,Priority,Function) | |
| 140 | return RealGame:GetService("RunService").Stepped:Connect(Function)
| |
| 141 | end | |
| 142 | end | |
| 143 | if Index2:lower() == "renderstepped" then | |
| 144 | return RealService["Stepped"] | |
| 145 | end | |
| 146 | return RealService[Index2] | |
| 147 | end | |
| 148 | end | |
| 149 | }) | |
| 150 | else | |
| 151 | return RealGame:GetService(Service) | |
| 152 | end | |
| 153 | end | |
| 154 | end | |
| 155 | return function (self,...) | |
| 156 | return RealGame[Index](RealGame,...) | |
| 157 | end | |
| 158 | else | |
| 159 | if game:GetService(Index) then | |
| 160 | return game:GetService(Index) | |
| 161 | end | |
| 162 | return RealGame[Index] | |
| 163 | end | |
| 164 | else | |
| 165 | return nil | |
| 166 | end | |
| 167 | end | |
| 168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
| |
| 169 | print("Complete! Running...")
| |
| 170 | ||
| 171 | Player = game:GetService("Players").LocalPlayer
| |
| 172 | PlayerGui = Player.PlayerGui | |
| 173 | Cam = workspace.CurrentCamera | |
| 174 | Backpack = Player.Backpack | |
| 175 | Character = Player.Character | |
| 176 | Humanoid = Character.Humanoid | |
| 177 | Mouse = Player:GetMouse() | |
| 178 | RootPart = Character["HumanoidRootPart"] | |
| 179 | Torso = Character["Torso"] | |
| 180 | Head = Character["Head"] | |
| 181 | RightArm = Character["Right Arm"] | |
| 182 | LeftArm = Character["Left Arm"] | |
| 183 | RightLeg = Character["Right Leg"] | |
| 184 | LeftLeg = Character["Left Leg"] | |
| 185 | RootJoint = RootPart["RootJoint"] | |
| 186 | Neck = Torso["Neck"] | |
| 187 | RightShoulder = Torso["Right Shoulder"] | |
| 188 | LeftShoulder = Torso["Left Shoulder"] | |
| 189 | RightHip = Torso["Right Hip"] | |
| 190 | LeftHip = Torso["Left Hip"] | |
| 191 | ||
| 192 | IT = Instance.new | |
| 193 | CF = CFrame.new | |
| 194 | VT = Vector3.new | |
| 195 | RAD = math.rad | |
| 196 | C3 = Color3.new | |
| 197 | UD2 = UDim2.new | |
| 198 | BRICKC = BrickColor.new | |
| 199 | ANGLES = CFrame.Angles | |
| 200 | EULER = CFrame.fromEulerAnglesXYZ | |
| 201 | COS = math.cos | |
| 202 | ACOS = math.acos | |
| 203 | SIN = math.sin | |
| 204 | ASIN = math.asin | |
| 205 | ABS = math.abs | |
| 206 | MRANDOM = math.random | |
| 207 | FLOOR = math.floor | |
| 208 | ||
| 209 | --//=================================\\ | |
| 210 | --|| USEFUL VALUES | |
| 211 | --\\=================================// | |
| 212 | ||
| 213 | Animation_Speed = 3 | |
| 214 | local FORCERESET = false | |
| 215 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 216 | local SIZE = 1 | |
| 217 | local Speed = 16 | |
| 218 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 219 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 220 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 221 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 222 | local DAMAGEMULTIPLIER = 1 | |
| 223 | local ANIM = "Idle" | |
| 224 | local ATTACK = false | |
| 225 | local EQUIPPED = false | |
| 226 | local HOLD = false | |
| 227 | local COMBO = 1 | |
| 228 | local Rooted = false | |
| 229 | local SINE = 0 | |
| 230 | local KEYHOLD = false | |
| 231 | local CHANGE = 2 / Animation_Speed | |
| 232 | local WALKINGANIM = false | |
| 233 | local VALUE1 = false | |
| 234 | local VALUE2 = false | |
| 235 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 236 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 237 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 238 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 239 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 240 | WEAPONGUI.Name = "BanishV3Gui" | |
| 241 | local Weapon = IT("Folder", Character)
| |
| 242 | Weapon.Name = "Weapon" | |
| 243 | local Weapon2 = IT("Folder", Character)
| |
| 244 | Weapon2.Name = "Weapon2" | |
| 245 | local DeadEye = IT("Folder", Character)
| |
| 246 | DeadEye.Name = "DeadEye" | |
| 247 | local HM = IT("Folder", Character)
| |
| 248 | HM.Name = "HM" | |
| 249 | local Pan = IT("Folder", Character)
| |
| 250 | Pan.Name = "Pan" | |
| 251 | local Pan2 = IT("Folder", Character)
| |
| 252 | Pan2.Name = "Pan2" | |
| 253 | local FaceGradient = IT("Folder", Character)
| |
| 254 | FaceGradient.Name = "FaceGradient" | |
| 255 | local black = IT("Folder", Character)
| |
| 256 | black.Name = "black" | |
| 257 | local Heads = IT("Folder", Character)
| |
| 258 | Heads.Name = "Heads" | |
| 259 | local Effects = IT("Folder", Character)
| |
| 260 | Effects.Name = "Effects" | |
| 261 | local ANIMATOR = Humanoid.Animator | |
| 262 | local ANIMATE = Character:FindFirstChild("Animate")
| |
| 263 | local UNANCHOR = true | |
| 264 | local CLOCKLOOP = 0 | |
| 265 | local CLOCKTARGET = nil | |
| 266 | local CLOCKSPEED = 1 | |
| 267 | script.Parent = WEAPONGUI | |
| 268 | local HITFLOOR = nil | |
| 269 | local INTRO = false | |
| 270 | local INSTANT = false | |
| 271 | local LEFTWINGS = {}
| |
| 272 | local RIGHTWINGS = {}
| |
| 273 | local BODY = {}
| |
| 274 | local TOBANISH = {}
| |
| 275 | script.Parent = PlayerGui | |
| 276 | ||
| 277 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 278 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 279 | end | |
| 280 | ||
| 281 | function PositiveAngle(NUMBER) | |
| 282 | if NUMBER >= 0 then | |
| 283 | NUMBER = 0 | |
| 284 | end | |
| 285 | return NUMBER | |
| 286 | end | |
| 287 | ||
| 288 | function NegativeAngle(NUMBER) | |
| 289 | if NUMBER <= 0 then | |
| 290 | NUMBER = 0 | |
| 291 | end | |
| 292 | return NUMBER | |
| 293 | end | |
| 294 | ||
| 295 | function Swait(NUMBER) | |
| 296 | if NUMBER == 0 or NUMBER == nil then | |
| 297 | ArtificialHB.Event:wait() | |
| 298 | else | |
| 299 | for i = 1, NUMBER do | |
| 300 | ArtificialHB.Event:wait() | |
| 301 | end | |
| 302 | end | |
| 303 | end | |
| 304 | ||
| 305 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 306 | local NEWMESH = IT(MESH) | |
| 307 | if MESH == "SpecialMesh" then | |
| 308 | NEWMESH.MeshType = MESHTYPE | |
| 309 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 310 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 311 | end | |
| 312 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 313 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 314 | end | |
| 315 | end | |
| 316 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 317 | NEWMESH.Scale = SCALE | |
| 318 | NEWMESH.Parent = PARENT | |
| 319 | return NEWMESH | |
| 320 | end | |
| 321 | ||
| 322 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 323 | local NEWPART = IT("Part")
| |
| 324 | NEWPART.formFactor = FORMFACTOR | |
| 325 | NEWPART.Reflectance = REFLECTANCE | |
| 326 | NEWPART.Transparency = TRANSPARENCY | |
| 327 | NEWPART.CanCollide = false | |
| 328 | NEWPART.Locked = true | |
| 329 | NEWPART.Anchored = true | |
| 330 | if ANCHOR == false then | |
| 331 | NEWPART.Anchored = false | |
| 332 | end | |
| 333 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 334 | NEWPART.Name = NAME | |
| 335 | NEWPART.Size = SIZE | |
| 336 | NEWPART.Position = Torso.Position | |
| 337 | NEWPART.Material = MATERIAL | |
| 338 | NEWPART:BreakJoints() | |
| 339 | NEWPART.Parent = PARENT | |
| 340 | return NEWPART | |
| 341 | end | |
| 342 | ||
| 343 | local function weldBetween(a, b) | |
| 344 | local weldd = Instance.new("ManualWeld")
| |
| 345 | weldd.Part0 = a | |
| 346 | weldd.Part1 = b | |
| 347 | weldd.C0 = CFrame.new() | |
| 348 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 349 | weldd.Parent = a | |
| 350 | return weldd | |
| 351 | end | |
| 352 | ||
| 353 | ||
| 354 | function QuaternionFromCFrame(cf) | |
| 355 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 356 | local trace = m00 + m11 + m22 | |
| 357 | if trace > 0 then | |
| 358 | local s = math.sqrt(1 + trace) | |
| 359 | local recip = 0.5 / s | |
| 360 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 361 | else | |
| 362 | local i = 0 | |
| 363 | if m11 > m00 then | |
| 364 | i = 1 | |
| 365 | end | |
| 366 | if m22 > (i == 0 and m00 or m11) then | |
| 367 | i = 2 | |
| 368 | end | |
| 369 | if i == 0 then | |
| 370 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 371 | local recip = 0.5 / s | |
| 372 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 373 | elseif i == 1 then | |
| 374 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 375 | local recip = 0.5 / s | |
| 376 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 377 | elseif i == 2 then | |
| 378 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 379 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 380 | end | |
| 381 | end | |
| 382 | end | |
| 383 | ||
| 384 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 385 | local xs, ys, zs = x + x, y + y, z + z | |
| 386 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 387 | local xx = x * xs | |
| 388 | local xy = x * ys | |
| 389 | local xz = x * zs | |
| 390 | local yy = y * ys | |
| 391 | local yz = y * zs | |
| 392 | local zz = z * zs | |
| 393 | 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)) | |
| 394 | end | |
| 395 | ||
| 396 | function QuaternionSlerp(a, b, t) | |
| 397 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 398 | local startInterp, finishInterp; | |
| 399 | if cosTheta >= 0.0001 then | |
| 400 | if (1 - cosTheta) > 0.0001 then | |
| 401 | local theta = ACOS(cosTheta) | |
| 402 | local invSinTheta = 1 / SIN(theta) | |
| 403 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 404 | finishInterp = SIN(t * theta) * invSinTheta | |
| 405 | else | |
| 406 | startInterp = 1 - t | |
| 407 | finishInterp = t | |
| 408 | end | |
| 409 | else | |
| 410 | if (1 + cosTheta) > 0.0001 then | |
| 411 | local theta = ACOS(-cosTheta) | |
| 412 | local invSinTheta = 1 / SIN(theta) | |
| 413 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 414 | finishInterp = SIN(t * theta) * invSinTheta | |
| 415 | else | |
| 416 | startInterp = t - 1 | |
| 417 | finishInterp = t | |
| 418 | end | |
| 419 | end | |
| 420 | 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 | |
| 421 | end | |
| 422 | ||
| 423 | function Clerp(a, b, t) | |
| 424 | local qa = {QuaternionFromCFrame(a)}
| |
| 425 | local qb = {QuaternionFromCFrame(b)}
| |
| 426 | local ax, ay, az = a.x, a.y, a.z | |
| 427 | local bx, by, bz = b.x, b.y, b.z | |
| 428 | local _t = 1 - t | |
| 429 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 430 | end | |
| 431 | ||
| 432 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 433 | local frame = IT("Frame")
| |
| 434 | frame.BackgroundTransparency = TRANSPARENCY | |
| 435 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 436 | frame.Position = POSITION | |
| 437 | frame.Size = SIZE | |
| 438 | frame.BackgroundColor3 = COLOR | |
| 439 | frame.BorderColor3 = BORDERCOLOR | |
| 440 | frame.Name = NAME | |
| 441 | frame.Parent = PARENT | |
| 442 | return frame | |
| 443 | end | |
| 444 | ||
| 445 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 446 | local label = IT("TextLabel")
| |
| 447 | label.BackgroundTransparency = 1 | |
| 448 | label.Size = UD2(1, 0, 1, 0) | |
| 449 | label.Position = UD2(0, 0, 0, 0) | |
| 450 | label.TextColor3 = TEXTCOLOR | |
| 451 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 452 | label.TextTransparency = TRANSPARENCY | |
| 453 | label.FontSize = TEXTFONTSIZE | |
| 454 | label.Font = TEXTFONT | |
| 455 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 456 | label.TextScaled = false | |
| 457 | label.Text = TEXT | |
| 458 | label.Name = NAME | |
| 459 | label.Parent = PARENT | |
| 460 | return label | |
| 461 | end | |
| 462 | ||
| 463 | function NoOutlines(PART) | |
| 464 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 465 | end | |
| 466 | ||
| 467 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 468 | local NEWWELD = IT(TYPE) | |
| 469 | NEWWELD.Part0 = PART0 | |
| 470 | NEWWELD.Part1 = PART1 | |
| 471 | NEWWELD.C0 = C0 | |
| 472 | NEWWELD.C1 = C1 | |
| 473 | NEWWELD.Parent = PARENT | |
| 474 | return NEWWELD | |
| 475 | end | |
| 476 | ||
| 477 | local S = IT("Sound")
| |
| 478 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 479 | local NEWSOUND = nil | |
| 480 | coroutine.resume(coroutine.create(function() | |
| 481 | NEWSOUND = S:Clone() | |
| 482 | NEWSOUND.Parent = PARENT | |
| 483 | NEWSOUND.Volume = VOLUME | |
| 484 | NEWSOUND.Pitch = PITCH | |
| 485 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 486 | NEWSOUND:play() | |
| 487 | if DOESLOOP == true then | |
| 488 | NEWSOUND.Looped = true | |
| 489 | else | |
| 490 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
| 491 | NEWSOUND:remove() | |
| 492 | end | |
| 493 | end)) | |
| 494 | return NEWSOUND | |
| 495 | end | |
| 496 | ||
| 497 | function CFrameFromTopBack(at, top, back) | |
| 498 | local right = top:Cross(back) | |
| 499 | 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) | |
| 500 | end | |
| 501 | ||
| 502 | --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})
| |
| 503 | function WACKYEFFECT(Table) | |
| 504 | local TYPE = (Table.EffectType or "Sphere") | |
| 505 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 506 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 507 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 508 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 509 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 510 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 511 | local ROTATION1 = (Table.RotationX or 0) | |
| 512 | local ROTATION2 = (Table.RotationY or 0) | |
| 513 | local ROTATION3 = (Table.RotationZ or 0) | |
| 514 | local MATERIAL = (Table.Material or "Neon") | |
| 515 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 516 | local TIME = (Table.Time or 45) | |
| 517 | local SOUNDID = (Table.SoundID or nil) | |
| 518 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 519 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 520 | coroutine.resume(coroutine.create(function() | |
| 521 | local PLAYSSOUND = false | |
| 522 | local SOUND = nil | |
| 523 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 524 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 525 | PLAYSSOUND = true | |
| 526 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 527 | end | |
| 528 | EFFECT.Color = COLOR | |
| 529 | local MSH = nil | |
| 530 | if TYPE == "Sphere" then | |
| 531 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 532 | elseif TYPE == "Block" then | |
| 533 | MSH = IT("BlockMesh",EFFECT)
| |
| 534 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 535 | elseif TYPE == "Wave" then | |
| 536 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 537 | elseif TYPE == "Ring" then | |
| 538 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 539 | elseif TYPE == "Slash" then | |
| 540 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 541 | elseif TYPE == "Round Slash" then | |
| 542 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 543 | elseif TYPE == "Swirl" then | |
| 544 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 545 | elseif TYPE == "Skull" then | |
| 546 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 547 | elseif TYPE == "Crystal" then | |
| 548 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 549 | end | |
| 550 | if MSH ~= nil then | |
| 551 | local MOVESPEED = nil | |
| 552 | if MOVEDIRECTION ~= nil then | |
| 553 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 554 | end | |
| 555 | local GROWTH = SIZE - ENDSIZE | |
| 556 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 557 | if TYPE == "Block" then | |
| 558 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 559 | else | |
| 560 | EFFECT.CFrame = CFRAME | |
| 561 | end | |
| 562 | for LOOP = 1, TIME+1 do | |
| 563 | Swait() | |
| 564 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 565 | if TYPE == "Wave" then | |
| 566 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 567 | end | |
| 568 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 569 | if TYPE == "Block" then | |
| 570 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 571 | else | |
| 572 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 573 | end | |
| 574 | if MOVEDIRECTION ~= nil then | |
| 575 | local ORI = EFFECT.Orientation | |
| 576 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 577 | EFFECT.Orientation = ORI | |
| 578 | end | |
| 579 | end | |
| 580 | if PLAYSSOUND == false then | |
| 581 | EFFECT:remove() | |
| 582 | else | |
| 583 | SOUND.Stopped:Connect(function() | |
| 584 | EFFECT:remove() | |
| 585 | end) | |
| 586 | end | |
| 587 | else | |
| 588 | if PLAYSSOUND == false then | |
| 589 | EFFECT:remove() | |
| 590 | else | |
| 591 | repeat Swait() until SOUND.Playing == false | |
| 592 | EFFECT:remove() | |
| 593 | end | |
| 594 | end | |
| 595 | end)) | |
| 596 | end | |
| 597 | for _, c in pairs(Character:GetChildren()) do | |
| 598 | if c.ClassName == "Part" then | |
| 599 | table.insert(BODY,{c,Character})
| |
| 600 | for _, q in pairs(c:GetChildren()) do | |
| 601 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
| 602 | table.insert(BODY,{q,c})
| |
| 603 | end | |
| 604 | end | |
| 605 | end | |
| 606 | end | |
| 607 | ||
| 608 | function refit() | |
| 609 | Character.Parent = workspace | |
| 610 | for e = 1, #BODY do | |
| 611 | if BODY[e] ~= nil then | |
| 612 | local STUFF = BODY[e] | |
| 613 | local PART = STUFF[1] | |
| 614 | local PARENT = STUFF[2] | |
| 615 | PART.Parent = PARENT | |
| 616 | end | |
| 617 | end | |
| 618 | end | |
| 619 | ||
| 620 | function MakeForm(PART,TYPE) | |
| 621 | if TYPE == "Cyl" then | |
| 622 | local MSH = IT("CylinderMesh",PART)
| |
| 623 | elseif TYPE == "Ball" then | |
| 624 | local MSH = IT("SpecialMesh",PART)
| |
| 625 | MSH.MeshType = "Sphere" | |
| 626 | elseif TYPE == "Wedge" then | |
| 627 | local MSH = IT("SpecialMesh",PART)
| |
| 628 | MSH.MeshType = "Wedge" | |
| 629 | end | |
| 630 | end | |
| 631 | ||
| 632 | function SpawnTrail(FROM,TO,BIG) | |
| 633 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Lime green", "Trail", VT(0,0,0)) | |
| 634 | MakeForm(TRAIL,"Cyl") | |
| 635 | local DIST = (FROM - TO).Magnitude | |
| 636 | if BIG == true then | |
| 637 | TRAIL.Size = VT(0.5,DIST,0.5) | |
| 638 | else | |
| 639 | TRAIL.Size = VT(0.25,DIST,0.25) | |
| 640 | end | |
| 641 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 642 | coroutine.resume(coroutine.create(function() | |
| 643 | for i = 1, 5 do | |
| 644 | Swait() | |
| 645 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 646 | end | |
| 647 | TRAIL:remove() | |
| 648 | end)) | |
| 649 | end | |
| 650 | ||
| 651 | Debris = game:GetService("Debris")
| |
| 652 | ||
| 653 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 654 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 655 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
| 656 | end | |
| 657 | ||
| 658 | function turnto(position) | |
| 659 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 660 | end | |
| 661 | local asd = Instance.new("ParticleEmitter")
| |
| 662 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
| 663 | asd.LightEmission = .1 | |
| 664 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
| 665 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
| |
| 666 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 667 | asd.Transparency = bbb | |
| 668 | asd.Size = aaa | |
| 669 | asd.ZOffset = .9 | |
| 670 | asd.Acceleration = Vector3.new(0, -15, 0) | |
| 671 | asd.LockedToPart = false | |
| 672 | asd.EmissionDirection = "Back" | |
| 673 | asd.Lifetime = NumberRange.new(1, 2) | |
| 674 | asd.Rotation = NumberRange.new(-100, 100) | |
| 675 | asd.RotSpeed = NumberRange.new(-100, 100) | |
| 676 | asd.Speed = NumberRange.new(10) | |
| 677 | asd.Enabled = false | |
| 678 | asd.VelocitySpread = 999 | |
| 679 | ||
| 680 | function getbloody(victim,amount) | |
| 681 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size) | |
| 682 | PART.CFrame = victim.CFrame | |
| 683 | local HITPLAYERSOUNDS = {"356551938","264486467"}
| |
| 684 | Debris:AddItem(PART,5) | |
| 685 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 686 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 687 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
| 688 | local prtcl = asd:Clone() | |
| 689 | prtcl.Parent = PART | |
| 690 | prtcl:Emit(amount*10) | |
| 691 | end | |
| 692 | ||
| 693 | local Particle = IT("ParticleEmitter",nil)
| |
| 694 | Particle.Enabled = false | |
| 695 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
| |
| 696 | Particle.LightEmission = 0.5 | |
| 697 | Particle.Rate = 150 | |
| 698 | Particle.ZOffset = 1 | |
| 699 | Particle.Rotation = NumberRange.new(-180, 180) | |
| 700 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
| 701 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
| 702 | Particle.Color = ColorSequence.new(C3(0,0,0),C3(0.4,0,0)) | |
| 703 | ||
| 704 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
| |
| 705 | function ParticleEmitter(Table) | |
| 706 | local PRTCL = Particle:Clone() | |
| 707 | local Speed = Table.Speed or 5 | |
| 708 | local Drag = Table.Drag or 0 | |
| 709 | local Size1 = Table.Size1 or 1 | |
| 710 | local Size2 = Table.Size2 or 5 | |
| 711 | local Lifetime1 = Table.Lifetime1 or 1 | |
| 712 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
| 713 | local Parent = Table.Parent or Torso | |
| 714 | local Emit = Table.Emit or 100 | |
| 715 | local Offset = Table.Offset or 360 | |
| 716 | local Acel = Table.Acel or VT(0,0,0) | |
| 717 | local Enabled = Table.Enabled or false | |
| 718 | PRTCL.Parent = Parent | |
| 719 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
| 720 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
| 721 | PRTCL.Speed = NumberRange.new(Speed) | |
| 722 | PRTCL.VelocitySpread = Offset | |
| 723 | PRTCL.Drag = Drag | |
| 724 | PRTCL.Acceleration = Acel | |
| 725 | if Enabled == false then | |
| 726 | PRTCL:Emit(Emit) | |
| 727 | Debris:AddItem(PRTCL,Lifetime2) | |
| 728 | else | |
| 729 | PRTCL.Enabled = true | |
| 730 | end | |
| 731 | return PRTCL | |
| 732 | end | |
| 733 | ||
| 734 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 735 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 736 | end | |
| 737 | ||
| 738 | function PositiveAngle(NUMBER) | |
| 739 | if NUMBER >= 0 then | |
| 740 | NUMBER = 0 | |
| 741 | end | |
| 742 | return NUMBER | |
| 743 | end | |
| 744 | ||
| 745 | function NegativeAngle(NUMBER) | |
| 746 | if NUMBER <= 0 then | |
| 747 | NUMBER = 0 | |
| 748 | end | |
| 749 | return NUMBER | |
| 750 | end | |
| 751 | ||
| 752 | function Swait(NUMBER) | |
| 753 | if NUMBER == 0 or NUMBER == nil then | |
| 754 | ArtificialHB.Event:wait() | |
| 755 | else | |
| 756 | for i = 1, NUMBER do | |
| 757 | ArtificialHB.Event:wait() | |
| 758 | end | |
| 759 | end | |
| 760 | end | |
| 761 | ||
| 762 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 763 | local NEWMESH = IT(MESH) | |
| 764 | if MESH == "SpecialMesh" then | |
| 765 | NEWMESH.MeshType = MESHTYPE | |
| 766 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 767 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 768 | end | |
| 769 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 770 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 771 | end | |
| 772 | end | |
| 773 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 774 | NEWMESH.Scale = SCALE | |
| 775 | NEWMESH.Parent = PARENT | |
| 776 | return NEWMESH | |
| 777 | end | |
| 778 | ||
| 779 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 780 | local NEWPART = IT("Part")
| |
| 781 | NEWPART.formFactor = FORMFACTOR | |
| 782 | NEWPART.Reflectance = REFLECTANCE | |
| 783 | NEWPART.Transparency = TRANSPARENCY | |
| 784 | NEWPART.CanCollide = false | |
| 785 | NEWPART.Locked = true | |
| 786 | NEWPART.Anchored = true | |
| 787 | if ANCHOR == false then | |
| 788 | NEWPART.Anchored = false | |
| 789 | end | |
| 790 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 791 | NEWPART.Name = NAME | |
| 792 | NEWPART.Size = SIZE | |
| 793 | NEWPART.Position = Torso.Position | |
| 794 | NEWPART.Material = MATERIAL | |
| 795 | NEWPART:BreakJoints() | |
| 796 | NEWPART.Parent = PARENT | |
| 797 | return NEWPART | |
| 798 | end | |
| 799 | ||
| 800 | local function weldBetween(a, b) | |
| 801 | local weldd = Instance.new("ManualWeld")
| |
| 802 | weldd.Part0 = a | |
| 803 | weldd.Part1 = b | |
| 804 | weldd.C0 = CFrame.new() | |
| 805 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 806 | weldd.Parent = a | |
| 807 | return weldd | |
| 808 | end | |
| 809 | ||
| 810 | ||
| 811 | function QuaternionFromCFrame(cf) | |
| 812 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 813 | local trace = m00 + m11 + m22 | |
| 814 | if trace > 0 then | |
| 815 | local s = math.sqrt(1 + trace) | |
| 816 | local recip = 0.5 / s | |
| 817 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 818 | else | |
| 819 | local i = 0 | |
| 820 | if m11 > m00 then | |
| 821 | i = 1 | |
| 822 | end | |
| 823 | if m22 > (i == 0 and m00 or m11) then | |
| 824 | i = 2 | |
| 825 | end | |
| 826 | if i == 0 then | |
| 827 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 828 | local recip = 0.5 / s | |
| 829 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 830 | elseif i == 1 then | |
| 831 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 832 | local recip = 0.5 / s | |
| 833 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 834 | elseif i == 2 then | |
| 835 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 836 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 837 | end | |
| 838 | end | |
| 839 | end | |
| 840 | ||
| 841 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 842 | local xs, ys, zs = x + x, y + y, z + z | |
| 843 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 844 | local xx = x * xs | |
| 845 | local xy = x * ys | |
| 846 | local xz = x * zs | |
| 847 | local yy = y * ys | |
| 848 | local yz = y * zs | |
| 849 | local zz = z * zs | |
| 850 | 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)) | |
| 851 | end | |
| 852 | ||
| 853 | function QuaternionSlerp(a, b, t) | |
| 854 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 855 | local startInterp, finishInterp; | |
| 856 | if cosTheta >= 0.0001 then | |
| 857 | if (1 - cosTheta) > 0.0001 then | |
| 858 | local theta = ACOS(cosTheta) | |
| 859 | local invSinTheta = 1 / SIN(theta) | |
| 860 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 861 | finishInterp = SIN(t * theta) * invSinTheta | |
| 862 | else | |
| 863 | startInterp = 1 - t | |
| 864 | finishInterp = t | |
| 865 | end | |
| 866 | else | |
| 867 | if (1 + cosTheta) > 0.0001 then | |
| 868 | local theta = ACOS(-cosTheta) | |
| 869 | local invSinTheta = 1 / SIN(theta) | |
| 870 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 871 | finishInterp = SIN(t * theta) * invSinTheta | |
| 872 | else | |
| 873 | startInterp = t - 1 | |
| 874 | finishInterp = t | |
| 875 | end | |
| 876 | end | |
| 877 | 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 | |
| 878 | end | |
| 879 | ||
| 880 | function Clerp(a, b, t) | |
| 881 | local qa = {QuaternionFromCFrame(a)}
| |
| 882 | local qb = {QuaternionFromCFrame(b)}
| |
| 883 | local ax, ay, az = a.x, a.y, a.z | |
| 884 | local bx, by, bz = b.x, b.y, b.z | |
| 885 | local _t = 1 - t | |
| 886 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 887 | end | |
| 888 | ||
| 889 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 890 | local frame = IT("Frame")
| |
| 891 | frame.BackgroundTransparency = TRANSPARENCY | |
| 892 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 893 | frame.Position = POSITION | |
| 894 | frame.Size = SIZE | |
| 895 | frame.BackgroundColor3 = COLOR | |
| 896 | frame.BorderColor3 = BORDERCOLOR | |
| 897 | frame.Name = NAME | |
| 898 | frame.Parent = PARENT | |
| 899 | return frame | |
| 900 | end | |
| 901 | ||
| 902 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 903 | local label = IT("TextLabel")
| |
| 904 | label.BackgroundTransparency = 1 | |
| 905 | label.Size = UD2(1, 0, 1, 0) | |
| 906 | label.Position = UD2(0, 0, 0, 0) | |
| 907 | label.TextColor3 = TEXTCOLOR | |
| 908 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 909 | label.TextTransparency = TRANSPARENCY | |
| 910 | label.FontSize = TEXTFONTSIZE | |
| 911 | label.Font = TEXTFONT | |
| 912 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 913 | label.TextScaled = false | |
| 914 | label.Text = TEXT | |
| 915 | label.Name = NAME | |
| 916 | label.Parent = PARENT | |
| 917 | return label | |
| 918 | end | |
| 919 | ||
| 920 | function NoOutlines(PART) | |
| 921 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 922 | end | |
| 923 | ||
| 924 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 925 | local NEWWELD = IT(TYPE) | |
| 926 | NEWWELD.Part0 = PART0 | |
| 927 | NEWWELD.Part1 = PART1 | |
| 928 | NEWWELD.C0 = C0 | |
| 929 | NEWWELD.C1 = C1 | |
| 930 | NEWWELD.Parent = PARENT | |
| 931 | return NEWWELD | |
| 932 | end | |
| 933 | ||
| 934 | local S = IT("Sound")
| |
| 935 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 936 | local NEWSOUND = nil | |
| 937 | coroutine.resume(coroutine.create(function() | |
| 938 | NEWSOUND = S:Clone() | |
| 939 | NEWSOUND.Parent = PARENT | |
| 940 | NEWSOUND.Volume = VOLUME | |
| 941 | NEWSOUND.Pitch = PITCH | |
| 942 | NEWSOUND.SoundId = "rbxassetid://"..ID | |
| 943 | NEWSOUND:play() | |
| 944 | if DOESLOOP == true then | |
| 945 | NEWSOUND.Looped = true | |
| 946 | else | |
| 947 | repeat wait(1) until NEWSOUND.Playing == false | |
| 948 | NEWSOUND:remove() | |
| 949 | end | |
| 950 | end)) | |
| 951 | return NEWSOUND | |
| 952 | end | |
| 953 | ||
| 954 | function CFrameFromTopBack(at, top, back) | |
| 955 | local right = top:Cross(back) | |
| 956 | 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) | |
| 957 | end | |
| 958 | ||
| 959 | function R_RANDOM(CFRAME,DIST) | |
| 960 | return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST) | |
| 961 | end | |
| 962 | ||
| 963 | --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, UseBoomerangMath = false, Boomerang = 0, SizeBoomerang = 0})
| |
| 964 | function WACKYEFFECT(Table) | |
| 965 | local TYPE = (Table.EffectType or "Sphere") | |
| 966 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 967 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 968 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 969 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 970 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 971 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 972 | local ROTATION1 = (Table.RotationX or 0) | |
| 973 | local ROTATION2 = (Table.RotationY or 0) | |
| 974 | local ROTATION3 = (Table.RotationZ or 0) | |
| 975 | local MATERIAL = (Table.Material or "Neon") | |
| 976 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 977 | local TIME = (Table.Time or 45) | |
| 978 | local SOUNDID = (Table.SoundID or nil) | |
| 979 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 980 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 981 | local USEBOOMERANGMATH = (Table.UseBoomerangMath or false) | |
| 982 | local BOOMERANG = (Table.Boomerang or 0) | |
| 983 | local SIZEBOOMERANG = (Table.SizeBoomerang or 0) | |
| 984 | coroutine.resume(coroutine.create(function() | |
| 985 | local PLAYSSOUND = false | |
| 986 | local SOUND = nil | |
| 987 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 988 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 989 | PLAYSSOUND = true | |
| 990 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 991 | end | |
| 992 | EFFECT.Color = COLOR | |
| 993 | local MSH = nil | |
| 994 | if TYPE == "Sphere" then | |
| 995 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 996 | elseif TYPE == "Block" or TYPE == "Box" then | |
| 997 | MSH = IT("BlockMesh",EFFECT)
| |
| 998 | MSH.Scale = SIZE | |
| 999 | elseif TYPE == "Wave" then | |
| 1000 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 1001 | elseif TYPE == "Ring" then | |
| 1002 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 1003 | elseif TYPE == "Slash" then | |
| 1004 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1005 | elseif TYPE == "Round Slash" then | |
| 1006 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 1007 | elseif TYPE == "Swirl" then | |
| 1008 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
| |
| 1009 | elseif TYPE == "Skull" then | |
| 1010 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 1011 | elseif TYPE == "Crystal" then | |
| 1012 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 1013 | end | |
| 1014 | if MSH ~= nil then | |
| 1015 | local BOOMR1 = 1+BOOMERANG/50 | |
| 1016 | local BOOMR2 = 1+SIZEBOOMERANG/50 | |
| 1017 | local MOVESPEED = nil | |
| 1018 | if MOVEDIRECTION ~= nil then | |
| 1019 | if USEBOOMERANGMATH == true then | |
| 1020 | MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1 | |
| 1021 | else | |
| 1022 | MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME) | |
| 1023 | end | |
| 1024 | end | |
| 1025 | local GROWTH = nil | |
| 1026 | if USEBOOMERANGMATH == true then | |
| 1027 | GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1) | |
| 1028 | else | |
| 1029 | GROWTH = (SIZE - ENDSIZE) | |
| 1030 | end | |
| 1031 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 1032 | if TYPE == "Block" then | |
| 1033 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1034 | else | |
| 1035 | EFFECT.CFrame = CFRAME | |
| 1036 | end | |
| 1037 | if USEBOOMERANGMATH == true then | |
| 1038 | for LOOP = 1, TIME+1 do | |
| 1039 | Swait() | |
| 1040 | MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME | |
| 1041 | if TYPE == "Wave" then | |
| 1042 | MSH.Offset = VT(0,0,-MSH.Scale.Z/8) | |
| 1043 | end | |
| 1044 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 1045 | if TYPE == "Block" then | |
| 1046 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1047 | else | |
| 1048 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 1049 | end | |
| 1050 | if MOVEDIRECTION ~= nil then | |
| 1051 | local ORI = EFFECT.Orientation | |
| 1052 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1))) | |
| 1053 | EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z)) | |
| 1054 | end | |
| 1055 | end | |
| 1056 | else | |
| 1057 | for LOOP = 1, TIME+1 do | |
| 1058 | Swait() | |
| 1059 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 1060 | if TYPE == "Wave" then | |
| 1061 | MSH.Offset = VT(0,0,-MSH.Scale.Z/8) | |
| 1062 | end | |
| 1063 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 1064 | if TYPE == "Block" then | |
| 1065 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 1066 | else | |
| 1067 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 1068 | end | |
| 1069 | if MOVEDIRECTION ~= nil then | |
| 1070 | local ORI = EFFECT.Orientation | |
| 1071 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 1072 | EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z)) | |
| 1073 | end | |
| 1074 | end | |
| 1075 | end | |
| 1076 | EFFECT.Transparency = 1 | |
| 1077 | if PLAYSSOUND == false then | |
| 1078 | EFFECT:remove() | |
| 1079 | else | |
| 1080 | repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
| |
| 1081 | EFFECT:remove() | |
| 1082 | end | |
| 1083 | else | |
| 1084 | if PLAYSSOUND == false then | |
| 1085 | EFFECT:remove() | |
| 1086 | else | |
| 1087 | repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
| |
| 1088 | EFFECT:remove() | |
| 1089 | end | |
| 1090 | end | |
| 1091 | end)) | |
| 1092 | end | |
| 1093 | ||
| 1094 | function MakeForm(PART,TYPE) | |
| 1095 | if TYPE == "Cyl" then | |
| 1096 | local MSH = IT("CylinderMesh",PART)
| |
| 1097 | elseif TYPE == "Ball" then | |
| 1098 | local MSH = IT("SpecialMesh",PART)
| |
| 1099 | MSH.MeshType = "Sphere" | |
| 1100 | elseif TYPE == "Wedge" then | |
| 1101 | local MSH = IT("SpecialMesh",PART)
| |
| 1102 | MSH.MeshType = "Wedge" | |
| 1103 | end | |
| 1104 | end | |
| 1105 | ||
| 1106 | Debris = game:GetService("Debris")
| |
| 1107 | ||
| 1108 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 1109 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 1110 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1111 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
| |
| 1112 | end | |
| 1113 | ||
| 1114 | local DECAL = IT("Decal")
| |
| 1115 | function MagicRing() | |
| 1116 | local RING = CreatePart(3, Effects, "Granite", 0, 1, "Maroon", "MagicRing", VT(0,0,0),true) | |
| 1117 | local MESH = IT("BlockMesh",RING)
| |
| 1118 | local BOTTOMTEXTURE = DECAL:Clone() | |
| 1119 | BOTTOMTEXTURE.Parent = RING | |
| 1120 | BOTTOMTEXTURE.Face = "Bottom" | |
| 1121 | BOTTOMTEXTURE.Name = "BottomTexture" | |
| 1122 | local TOPTEXTURE = DECAL:Clone() | |
| 1123 | TOPTEXTURE.Parent = RING | |
| 1124 | TOPTEXTURE.Face = "Top" | |
| 1125 | TOPTEXTURE.Name = "TopTexture" | |
| 1126 | BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228" | |
| 1127 | TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=1208118228" | |
| 1128 | BOTTOMTEXTURE.Color3 = C3(0,0,0) | |
| 1129 | TOPTEXTURE.Color3 = C3(0,0,0) | |
| 1130 | return RING,MESH,TOPTEXTURE,BOTTOMTEXTURE | |
| 1131 | end | |
| 1132 | ||
| 1133 | function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT) | |
| 1134 | coroutine.resume(coroutine.create(function() | |
| 1135 | local FADE = IT("Model",Effects)
| |
| 1136 | if PARENT ~= nil then | |
| 1137 | FADE.Parent = PARENT | |
| 1138 | end | |
| 1139 | FADE.Name = "FadingEffect" | |
| 1140 | for _, c in pairs(Character:GetChildren()) do | |
| 1141 | if c.ClassName == "Part" then | |
| 1142 | c.CanCollide = false | |
| 1143 | local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Pearl"), c.Name, c.Size, true)
| |
| 1144 | FADER.CFrame = c.CFrame | |
| 1145 | FADER.Color = COLOR | |
| 1146 | if FADER.Name == "Head" then | |
| 1147 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER
| |
| 1148 | elseif FADER.Name == "HumanoidRootPart" then | |
| 1149 | FADE.PrimaryPart = FADER | |
| 1150 | FADER.Transparency = 1 | |
| 1151 | end | |
| 1152 | end | |
| 1153 | end | |
| 1154 | local TRANS = 0.25/TIMER | |
| 1155 | local DIST = nil | |
| 1156 | if MOVEDIRECTION ~= nil then | |
| 1157 | DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude | |
| 1158 | end | |
| 1159 | for i = 1, TIMER do | |
| 1160 | Swait() | |
| 1161 | for _, c in pairs(FADE:GetChildren()) do | |
| 1162 | if c.ClassName == "Part" then | |
| 1163 | c.Transparency = c.Transparency + TRANS | |
| 1164 | end | |
| 1165 | end | |
| 1166 | if MOVEDIRECTION ~= nil then | |
| 1167 | local ORI = FADE.PrimaryPart.Orientation | |
| 1168 | FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z))) | |
| 1169 | end | |
| 1170 | end | |
| 1171 | FADE:remove() | |
| 1172 | end)) | |
| 1173 | end | |
| 1174 | ||
| 1175 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 1176 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 1177 | end | |
| 1178 | ||
| 1179 | function PositiveAngle(NUMBER) | |
| 1180 | if NUMBER >= 0 then | |
| 1181 | NUMBER = 0 | |
| 1182 | end | |
| 1183 | return NUMBER | |
| 1184 | end | |
| 1185 | ||
| 1186 | function NegativeAngle(NUMBER) | |
| 1187 | if NUMBER <= 0 then | |
| 1188 | NUMBER = 0 | |
| 1189 | end | |
| 1190 | return NUMBER | |
| 1191 | end | |
| 1192 | ||
| 1193 | function Swait(NUMBER) | |
| 1194 | if NUMBER == 0 or NUMBER == nil then | |
| 1195 | ArtificialHB.Event:wait() | |
| 1196 | else | |
| 1197 | for i = 1, NUMBER do | |
| 1198 | ArtificialHB.Event:wait() | |
| 1199 | end | |
| 1200 | end | |
| 1201 | end | |
| 1202 | ||
| 1203 | function QuaternionFromCFrame(cf) | |
| 1204 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1205 | local trace = m00 + m11 + m22 | |
| 1206 | if trace > 0 then | |
| 1207 | local s = math.sqrt(1 + trace) | |
| 1208 | local recip = 0.5 / s | |
| 1209 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 1210 | else | |
| 1211 | local i = 0 | |
| 1212 | if m11 > m00 then | |
| 1213 | i = 1 | |
| 1214 | end | |
| 1215 | if m22 > (i == 0 and m00 or m11) then | |
| 1216 | i = 2 | |
| 1217 | end | |
| 1218 | if i == 0 then | |
| 1219 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 1220 | local recip = 0.5 / s | |
| 1221 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 1222 | elseif i == 1 then | |
| 1223 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 1224 | local recip = 0.5 / s | |
| 1225 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 1226 | elseif i == 2 then | |
| 1227 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 1228 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 1229 | end | |
| 1230 | end | |
| 1231 | end | |
| 1232 | ||
| 1233 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1234 | local xs, ys, zs = x + x, y + y, z + z | |
| 1235 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 1236 | local xx = x * xs | |
| 1237 | local xy = x * ys | |
| 1238 | local xz = x * zs | |
| 1239 | local yy = y * ys | |
| 1240 | local yz = y * zs | |
| 1241 | local zz = z * zs | |
| 1242 | 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)) | |
| 1243 | end | |
| 1244 | ||
| 1245 | function QuaternionSlerp(a, b, t) | |
| 1246 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 1247 | local startInterp, finishInterp; | |
| 1248 | if cosTheta >= 0.0001 then | |
| 1249 | if (1 - cosTheta) > 0.0001 then | |
| 1250 | local theta = ACOS(cosTheta) | |
| 1251 | local invSinTheta = 1 / SIN(theta) | |
| 1252 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 1253 | finishInterp = SIN(t * theta) * invSinTheta | |
| 1254 | else | |
| 1255 | startInterp = 1 - t | |
| 1256 | finishInterp = t | |
| 1257 | end | |
| 1258 | else | |
| 1259 | if (1 + cosTheta) > 0.0001 then | |
| 1260 | local theta = ACOS(-cosTheta) | |
| 1261 | local invSinTheta = 1 / SIN(theta) | |
| 1262 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 1263 | finishInterp = SIN(t * theta) * invSinTheta | |
| 1264 | else | |
| 1265 | startInterp = t - 1 | |
| 1266 | finishInterp = t | |
| 1267 | end | |
| 1268 | end | |
| 1269 | 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 | |
| 1270 | end | |
| 1271 | ||
| 1272 | function Clerp(a, b, t) | |
| 1273 | local qa = {QuaternionFromCFrame(a)}
| |
| 1274 | local qb = {QuaternionFromCFrame(b)}
| |
| 1275 | local ax, ay, az = a.x, a.y, a.z | |
| 1276 | local bx, by, bz = b.x, b.y, b.z | |
| 1277 | local _t = 1 - t | |
| 1278 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 1279 | end | |
| 1280 | ||
| 1281 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 1282 | local frame = IT("Frame")
| |
| 1283 | frame.BackgroundTransparency = TRANSPARENCY | |
| 1284 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 1285 | frame.Position = POSITION | |
| 1286 | frame.Size = SIZE | |
| 1287 | frame.BackgroundColor3 = COLOR | |
| 1288 | frame.BorderColor3 = BORDERCOLOR | |
| 1289 | frame.Name = NAME | |
| 1290 | frame.Parent = PARENT | |
| 1291 | return frame | |
| 1292 | end | |
| 1293 | ||
| 1294 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 1295 | local label = IT("TextLabel")
| |
| 1296 | label.BackgroundTransparency = 1 | |
| 1297 | label.Size = UD2(1, 0, 1, 0) | |
| 1298 | label.Position = UD2(0, 0, 0, 0) | |
| 1299 | label.TextColor3 = TEXTCOLOR | |
| 1300 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 1301 | label.TextTransparency = TRANSPARENCY | |
| 1302 | label.FontSize = TEXTFONTSIZE | |
| 1303 | label.Font = TEXTFONT | |
| 1304 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 1305 | label.TextScaled = false | |
| 1306 | label.Text = TEXT | |
| 1307 | label.Name = NAME | |
| 1308 | label.Parent = PARENT | |
| 1309 | return label | |
| 1310 | end | |
| 1311 | ||
| 1312 | function NoOutlines(PART) | |
| 1313 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1314 | end | |
| 1315 | ||
| 1316 | ||
| 1317 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 1318 | local NEWWELD = IT(TYPE) | |
| 1319 | NEWWELD.Part0 = PART0 | |
| 1320 | NEWWELD.Part1 = PART1 | |
| 1321 | NEWWELD.C0 = C0 | |
| 1322 | NEWWELD.C1 = C1 | |
| 1323 | NEWWELD.Parent = PARENT | |
| 1324 | return NEWWELD | |
| 1325 | end | |
| 1326 | ||
| 1327 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
| 1328 | local NEWSOUND = nil | |
| 1329 | coroutine.resume(coroutine.create(function() | |
| 1330 | NEWSOUND = IT("Sound", PARENT)
| |
| 1331 | NEWSOUND.Volume = VOLUME | |
| 1332 | NEWSOUND.Pitch = PITCH | |
| 1333 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 1334 | Swait() | |
| 1335 | NEWSOUND:play() | |
| 1336 | game:GetService("Debris"):AddItem(NEWSOUND, 10)
| |
| 1337 | end)) | |
| 1338 | return NEWSOUND | |
| 1339 | end | |
| 1340 | ||
| 1341 | function CFrameFromTopBack(at, top, back) | |
| 1342 | local right = top:Cross(back) | |
| 1343 | 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) | |
| 1344 | end | |
| 1345 | ||
| 1346 | function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 1347 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 1348 | local mesh = IT("SpecialMesh",wave)
| |
| 1349 | mesh.MeshType = "FileMesh" | |
| 1350 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1351 | mesh.Scale = SIZE | |
| 1352 | mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 1353 | wave.CFrame = CFRAME | |
| 1354 | coroutine.resume(coroutine.create(function(PART) | |
| 1355 | for i = 1, WAIT do | |
| 1356 | Swait() | |
| 1357 | mesh.Scale = mesh.Scale + GROW | |
| 1358 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1359 | if DOESROT == true then | |
| 1360 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 1361 | end | |
| 1362 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1363 | if wave.Transparency > 0.99 then | |
| 1364 | wave:remove() | |
| 1365 | end | |
| 1366 | end | |
| 1367 | end)) | |
| 1368 | end | |
| 1369 | ||
| 1370 | function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 1371 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 1372 | local mesh = IT("SpecialMesh",wave)
| |
| 1373 | mesh.MeshType = "FileMesh" | |
| 1374 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1375 | mesh.Scale = SIZE | |
| 1376 | --mesh.Offset = VT(0,0,-SIZE.X/8) | |
| 1377 | wave.CFrame = CFRAME | |
| 1378 | coroutine.resume(coroutine.create(function(PART) | |
| 1379 | for i = 1, WAIT do | |
| 1380 | Swait() | |
| 1381 | mesh.Scale = mesh.Scale + GROW | |
| 1382 | --mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1383 | if DOESROT == true then | |
| 1384 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 1385 | end | |
| 1386 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1387 | if wave.Transparency > 0.99 then | |
| 1388 | wave:remove() | |
| 1389 | end | |
| 1390 | end | |
| 1391 | end)) | |
| 1392 | end | |
| 1393 | ||
| 1394 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
| 1395 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
| 1396 | local mesh = IT("SpecialMesh",wave)
| |
| 1397 | mesh.MeshType = "FileMesh" | |
| 1398 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 1399 | mesh.Scale = SIZE | |
| 1400 | wave.CFrame = CFRAME | |
| 1401 | coroutine.resume(coroutine.create(function(PART) | |
| 1402 | for i = 1, WAIT do | |
| 1403 | Swait() | |
| 1404 | mesh.Scale = mesh.Scale + GROW | |
| 1405 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
| 1406 | if DOESROT == true then | |
| 1407 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
| 1408 | end | |
| 1409 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1410 | if wave.Transparency > 0.99 then | |
| 1411 | wave:remove() | |
| 1412 | end | |
| 1413 | end | |
| 1414 | end)) | |
| 1415 | end | |
| 1416 | ||
| 1417 | ||
| 1418 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 1419 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 1420 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
| |
| 1421 | wave.CFrame = CFRAME | |
| 1422 | coroutine.resume(coroutine.create(function(PART) | |
| 1423 | for i = 1, WAIT do | |
| 1424 | Swait() | |
| 1425 | mesh.Scale = mesh.Scale * GROW | |
| 1426 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
| 1427 | if wave.Transparency > 0.99 then | |
| 1428 | wave:remove() | |
| 1429 | end | |
| 1430 | end | |
| 1431 | end)) | |
| 1432 | end | |
| 1433 | ||
| 1434 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
| 1435 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
| 1436 | local mesh = IT("SpecialMesh",wave)
| |
| 1437 | mesh.MeshType = "Sphere" | |
| 1438 | mesh.Scale = SIZE | |
| 1439 | mesh.Offset = VT(0,0,0) | |
| 1440 | wave.CFrame = CFRAME | |
| 1441 | coroutine.resume(coroutine.create(function(PART) | |
| 1442 | for i = 1, WAIT do | |
| 1443 | Swait() | |
| 1444 | mesh.Scale = mesh.Scale + GROW | |
| 1445 | wave.Transparency = wave.Transparency + (1/WAIT) | |
| 1446 | if wave.Transparency > 0.99 then | |
| 1447 | wave:remove() | |
| 1448 | end | |
| 1449 | end | |
| 1450 | end)) | |
| 1451 | end | |
| 1452 | ||
| 1453 | function MakeForm(PART,TYPE) | |
| 1454 | if TYPE == "Cyl" then | |
| 1455 | local MSH = IT("CylinderMesh",PART)
| |
| 1456 | elseif TYPE == "Ball" then | |
| 1457 | local MSH = IT("SpecialMesh",PART)
| |
| 1458 | MSH.MeshType = "Sphere" | |
| 1459 | elseif TYPE == "Wedge" then | |
| 1460 | local MSH = IT("SpecialMesh",PART)
| |
| 1461 | MSH.MeshType = "Wedge" | |
| 1462 | end | |
| 1463 | end | |
| 1464 | ||
| 1465 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
| 1466 | if FLOOR ~= nil then | |
| 1467 | coroutine.resume(coroutine.create(function() | |
| 1468 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
| 1469 | PART.CFrame = CF(POSITION) | |
| 1470 | for i = 1, 45 do | |
| 1471 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
| 1472 | RingPiece.Material = FLOOR.Material | |
| 1473 | RingPiece.Color = FLOOR.Color | |
| 1474 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
| 1475 | Debris:AddItem(RingPiece,SWAIT/100) | |
| 1476 | end | |
| 1477 | PART:remove() | |
| 1478 | end)) | |
| 1479 | end | |
| 1480 | end | |
| 1481 | ||
| 1482 | function CheckTableForString(Table, String) | |
| 1483 | for i, v in pairs(Table) do | |
| 1484 | if string.find(string.lower(String), string.lower(v)) then | |
| 1485 | return true | |
| 1486 | end | |
| 1487 | end | |
| 1488 | return false | |
| 1489 | end | |
| 1490 | ||
| 1491 | function CheckIntangible(Hit) | |
| 1492 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
| |
| 1493 | if Hit and Hit.Parent then | |
| 1494 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
| |
| 1495 | return true | |
| 1496 | end | |
| 1497 | end | |
| 1498 | return false | |
| 1499 | end | |
| 1500 | ||
| 1501 | Debris = game:GetService("Debris")
| |
| 1502 | ||
| 1503 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
| 1504 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 1505 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1506 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
| |
| 1507 | if RayHit and CheckIntangible(RayHit) then | |
| 1508 | if DelayIfHit then | |
| 1509 | wait() | |
| 1510 | end | |
| 1511 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
| 1512 | end | |
| 1513 | return RayHit, RayPos, RayNormal | |
| 1514 | end | |
| 1515 | ||
| 1516 | function turnto(position) | |
| 1517 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
| 1518 | end | |
| 1519 | ||
| 1520 | function CameraEnshaking(Length, Intensity) | |
| 1521 | coroutine.resume(coroutine.create(function() | |
| 1522 | local intensity = 1 * Intensity | |
| 1523 | local rotM = 0.01 * Intensity | |
| 1524 | for i = 0, Length, 0.1 do | |
| 1525 | Swait() | |
| 1526 | intensity = intensity - 0.05 * Intensity / Length | |
| 1527 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 1528 | hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) | |
| 1529 | cam.CFrame = cam.CFrame * CF(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity))) * Euler(Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM, Rad(Mrandom(-intensity, intensity)) * rotM) | |
| 1530 | end | |
| 1531 | hum.CameraOffset = Vector3.new(0, 0, 0) | |
| 1532 | end)) | |
| 1533 | end | |
| 1534 | local EXE = Instance.new("Shirt")
| |
| 1535 | EXE.ShirtTemplate = "rbxassetid://338740550" | |
| 1536 | EXE.Parent = Character | |
| 1537 | EXE.Name = "Cloth" | |
| 1538 | local LOL = Instance.new("Pants")
| |
| 1539 | LOL.PantsTemplate = "rbxassetid://338750779" | |
| 1540 | LOL.Parent = Character | |
| 1541 | LOL.Name = "Cloth" | |
| 1542 | ||
| 1543 | for i = 1, 35 do | |
| 1544 | local FACE = CreatePart(3, FaceGradient, "Fabric", 0, 0+(i-1)/35.2, "Dark stone grey", "FaceGradient", VT(1.01,0.5,1.01),false) | |
| 1545 | FACE.Color = C3(0,0,0) | |
| 1546 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
| |
| 1547 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/75,0), CF(0, 0, 0))
| |
| 1548 | end | |
| 1549 | ||
| 1550 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
| 1551 | MakeForm(Eye,"Ball") | |
| 1552 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
| |
| 1553 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false) | |
| 1554 | MakeForm(Eye,"Ball") | |
| 1555 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
| |
| 1556 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
| 1557 | MakeForm(Eye,"Ball") | |
| 1558 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
| |
| 1559 | local Eye = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false) | |
| 1560 | MakeForm(Eye,"Ball") | |
| 1561 | CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
| |
| 1562 | ||
| 1563 | local LASTPART = Head | |
| 1564 | for i = 1, 20 do | |
| 1565 | local MATH = (1-(i/25)) | |
| 1566 | if LASTPART == Head then | |
| 1567 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 1568 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
| |
| 1569 | LASTPART = Horn | |
| 1570 | Horn.Color = C3((i*3-3)/255,0,0) | |
| 1571 | else | |
| 1572 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 1573 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
| |
| 1574 | LASTPART = Horn | |
| 1575 | Horn.Color = C3((i*3-3)/255,0,0) | |
| 1576 | end | |
| 1577 | end | |
| 1578 | local LASTPART = Head | |
| 1579 | for i = 1, 20 do | |
| 1580 | local MATH = (1-(i/25)) | |
| 1581 | if LASTPART == Head then | |
| 1582 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 1583 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0))
| |
| 1584 | LASTPART = Horn | |
| 1585 | Horn.Color = C3((i*3-3)/255,0,0) | |
| 1586 | else | |
| 1587 | local Horn = CreatePart(3, HM, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
| 1588 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0))
| |
| 1589 | LASTPART = Horn | |
| 1590 | Horn.Color = C3((i*3-3)/255,0,0) | |
| 1591 | end | |
| 1592 | end | |
| 1593 | --//=================================\\ | |
| 1594 | --\\=================================// | |
| 1595 | ||
| 1596 | plr = Player | |
| 1597 | char = plr.Character | |
| 1598 | hum = char.Humanoid | |
| 1599 | local cam = game.Workspace.CurrentCamera | |
| 1600 | Camera = cam | |
| 1601 | local CamInterrupt = false | |
| 1602 | local TwoD = false | |
| 1603 | local TargetInfo = {nil, nil}
| |
| 1604 | cam.CameraType = "Custom" | |
| 1605 | t = char.Torso | |
| 1606 | h = char.Head | |
| 1607 | ra = char["Right Arm"] | |
| 1608 | la = char["Left Arm"] | |
| 1609 | rl = char["Right Leg"] | |
| 1610 | ll = char["Left Leg"] | |
| 1611 | tors = char.Torso | |
| 1612 | lleg = char["Left Leg"] | |
| 1613 | root = char.HumanoidRootPart | |
| 1614 | hed = char.Head | |
| 1615 | rleg = char["Right Leg"] | |
| 1616 | rarm = char["Right Arm"] | |
| 1617 | larm = char["Left Arm"] | |
| 1618 | radian = math.rad | |
| 1619 | random = math.random | |
| 1620 | Vec3 = Vector3.new | |
| 1621 | Inst = Instance.new | |
| 1622 | cFrame = CFrame.new | |
| 1623 | Euler = CFrame.fromEulerAnglesXYZ | |
| 1624 | vt = Vector3.new | |
| 1625 | bc = BrickColor.new | |
| 1626 | br = BrickColor.random | |
| 1627 | it = Instance.new | |
| 1628 | cf = CFrame.new | |
| 1629 | local Booleans = {CamFollow = true, GyroUse = true}
| |
| 1630 | function lerp(object, newCFrame, alpha) | |
| 1631 | return object:lerp(newCFrame, alpha) | |
| 1632 | end | |
| 1633 | ||
| 1634 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character)
| |
| 1635 | ff.Visible = false | |
| 1636 | ||
| 1637 | ||
| 1638 | local Directer = Inst("BodyGyro", root)
| |
| 1639 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 1640 | Directer.P = 600000 | |
| 1641 | local CPart = Inst("Part")
| |
| 1642 | CPart.Anchored = true | |
| 1643 | CPart.CanCollide = false | |
| 1644 | CPart.Locked = true | |
| 1645 | CPart.Transparency = 1 | |
| 1646 | local rainbowmode = false | |
| 1647 | local chaosmode = false | |
| 1648 | kan = Instance.new("Sound", char)
| |
| 1649 | kan.Volume = 5 | |
| 1650 | kan.TimePosition = 0 | |
| 1651 | kan.PlaybackSpeed = 1 | |
| 1652 | kan.Pitch = 1 | |
| 1653 | kan.SoundId = "rbxassetid://798163149" | |
| 1654 | kan.Name = "wrecked" | |
| 1655 | kan.Looped = true | |
| 1656 | kan.Playing = true | |
| 1657 | kan.PlayOnRemove = true | |
| 1658 | kan:Play() | |
| 1659 | function newTheme(ID, timepos, pitch, vol) | |
| 1660 | local kanz = kan | |
| 1661 | kanz.PlaybackSpeed = pitch | |
| 1662 | kanz.Pitch = pitch | |
| 1663 | kanz.SoundId = ID | |
| 1664 | kanz.Name = "wrecked" | |
| 1665 | kanz.Looped = true | |
| 1666 | end | |
| 1667 | function CameraShake(Times, Power, PlayerTarget) | |
| 1668 | coroutine.resume(coroutine.create(function() | |
| 1669 | FV = Instance.new("BoolValue", PlayerTarget)
| |
| 1670 | FV.Name = "CameraShake" | |
| 1671 | for ShakeNum = 1, Times do | |
| 1672 | swait() | |
| 1673 | local ef = Power | |
| 1674 | if ef >= 1 then | |
| 1675 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
| 1676 | else | |
| 1677 | ef = Power * 10 | |
| 1678 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10) | |
| 1679 | end | |
| 1680 | end | |
| 1681 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 1682 | FV:Destroy() | |
| 1683 | end)) | |
| 1684 | end | |
| 1685 | function CameraEnshaking(Length, Intensity) | |
| 1686 | coroutine.resume(coroutine.create(function() | |
| 1687 | local intensity = 1 * Intensity | |
| 1688 | local rotM = 0.01 * Intensity | |
| 1689 | for i = 0, Length, 0.1 do | |
| 1690 | swait() | |
| 1691 | intensity = intensity - 0.05 * Intensity / Length | |
| 1692 | rotM = rotM - 5.0E-4 * Intensity / Length | |
| 1693 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
| 1694 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
| 1695 | end | |
| 1696 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
| 1697 | end)) | |
| 1698 | end | |
| 1699 | function CamShake(Part, Distan, Power, Times) | |
| 1700 | local de = Part.Position | |
| 1701 | for i, v in pairs(workspace:children()) do | |
| 1702 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 1703 | for _, c in pairs(v:children()) do | |
| 1704 | if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then | |
| 1705 | do | |
| 1706 | local Noob = v.Humanoid | |
| 1707 | if Noob ~= nil then | |
| 1708 | coroutine.resume(coroutine.create(function() | |
| 1709 | FV = Instance.new("BoolValue", Noob)
| |
| 1710 | FV.Name = "CameraShake" | |
| 1711 | for ShakeNum = 1, Times do | |
| 1712 | swait() | |
| 1713 | local ef = Power | |
| 1714 | if ef >= 1 then | |
| 1715 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
| 1716 | else | |
| 1717 | ef = Power * 10 | |
| 1718 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10) | |
| 1719 | end | |
| 1720 | end | |
| 1721 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
| 1722 | FV:Destroy() | |
| 1723 | end)) | |
| 1724 | CameraShake(Times, Power, Noob) | |
| 1725 | end | |
| 1726 | end | |
| 1727 | end | |
| 1728 | end | |
| 1729 | end | |
| 1730 | end | |
| 1731 | end | |
| 1732 | function chatfunc(text, color) | |
| 1733 | local chat = coroutine.wrap(function() | |
| 1734 | if Character:FindFirstChild("TalkingBillBoard") ~= nil then
| |
| 1735 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 1736 | end | |
| 1737 | local naeeym2 = Instance.new("BillboardGui", Character)
| |
| 1738 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
| 1739 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
| 1740 | naeeym2.Adornee = Character.Head | |
| 1741 | naeeym2.Name = "TalkingBillBoard" | |
| 1742 | local tecks2 = Instance.new("TextLabel", naeeym2)
| |
| 1743 | tecks2.BackgroundTransparency = 1 | |
| 1744 | tecks2.BorderSizePixel = 0 | |
| 1745 | tecks2.Text = "" | |
| 1746 | tecks2.Font = "SciFi" | |
| 1747 | tecks2.TextSize = 30 | |
| 1748 | tecks2.TextStrokeTransparency = 0 | |
| 1749 | tecks2.TextColor3 = color | |
| 1750 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 1751 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
| 1752 | local tecks3 = Instance.new("TextLabel", naeeym2)
| |
| 1753 | tecks3.BackgroundTransparency = 1 | |
| 1754 | tecks3.BorderSizePixel = 0 | |
| 1755 | tecks3.Text = "" | |
| 1756 | tecks3.Font = "SciFi" | |
| 1757 | tecks3.TextSize = 30 | |
| 1758 | tecks3.TextStrokeTransparency = 0 | |
| 1759 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
| 1760 | tecks3.TextStrokeColor3 = color | |
| 1761 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
| 1762 | coroutine.resume(coroutine.create(function() | |
| 1763 | while true do | |
| 1764 | swait(1) | |
| 1765 | if chaosmode == true then | |
| 1766 | tecks2.TextColor3 = BrickColor.random().Color | |
| 1767 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
| 1768 | end | |
| 1769 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
| 1770 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
| 1771 | tecks2.Rotation = math.random(-5, 5) | |
| 1772 | tecks3.Rotation = math.random(-5, 5) | |
| 1773 | end | |
| 1774 | end)) | |
| 1775 | for i = 1, string.len(text) do | |
| 1776 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115)
| |
| 1777 | tecks2.Text = string.sub(text, 1, i) | |
| 1778 | tecks3.Text = string.sub(text, 1, i) | |
| 1779 | swait(1) | |
| 1780 | end | |
| 1781 | wait(1) | |
| 1782 | local randomrot = math.random(1, 2) | |
| 1783 | if randomrot == 1 then | |
| 1784 | for i = 1, 50 do | |
| 1785 | swait() | |
| 1786 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
| 1787 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1788 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1789 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
| 1790 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1791 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1792 | end | |
| 1793 | elseif randomrot == 2 then | |
| 1794 | for i = 1, 50 do | |
| 1795 | swait() | |
| 1796 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
| 1797 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1798 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1799 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
| 1800 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
| 1801 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
| 1802 | end | |
| 1803 | end | |
| 1804 | naeeym2:Destroy() | |
| 1805 | end) | |
| 1806 | chat() | |
| 1807 | end | |
| 1808 | local Create = LoadLibrary("RbxUtility").Create
| |
| 1809 | CFuncs = {
| |
| 1810 | Part = {
| |
| 1811 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1812 | local Part = Create("Part")({
| |
| 1813 | Parent = Parent, | |
| 1814 | Reflectance = Reflectance, | |
| 1815 | Transparency = Transparency, | |
| 1816 | CanCollide = false, | |
| 1817 | Locked = true, | |
| 1818 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1819 | Name = Name, | |
| 1820 | Size = Size, | |
| 1821 | Material = Material | |
| 1822 | }) | |
| 1823 | RemoveOutlines(Part) | |
| 1824 | return Part | |
| 1825 | end | |
| 1826 | }, | |
| 1827 | Mesh = {
| |
| 1828 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1829 | local Msh = Create(Mesh)({
| |
| 1830 | Parent = Part, | |
| 1831 | Offset = OffSet, | |
| 1832 | Scale = Scale | |
| 1833 | }) | |
| 1834 | if Mesh == "SpecialMesh" then | |
| 1835 | Msh.MeshType = MeshType | |
| 1836 | Msh.MeshId = MeshId | |
| 1837 | end | |
| 1838 | return Msh | |
| 1839 | end | |
| 1840 | }, | |
| 1841 | Mesh = {
| |
| 1842 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1843 | local Msh = Create(Mesh)({
| |
| 1844 | Parent = Part, | |
| 1845 | Offset = OffSet, | |
| 1846 | Scale = Scale | |
| 1847 | }) | |
| 1848 | if Mesh == "SpecialMesh" then | |
| 1849 | Msh.MeshType = MeshType | |
| 1850 | Msh.MeshId = MeshId | |
| 1851 | end | |
| 1852 | return Msh | |
| 1853 | end | |
| 1854 | }, | |
| 1855 | Weld = {
| |
| 1856 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 1857 | local Weld = Create("Weld")({
| |
| 1858 | Parent = Parent, | |
| 1859 | Part0 = Part0, | |
| 1860 | Part1 = Part1, | |
| 1861 | C0 = C0, | |
| 1862 | C1 = C1 | |
| 1863 | }) | |
| 1864 | return Weld | |
| 1865 | end | |
| 1866 | }, | |
| 1867 | Sound = {
| |
| 1868 | Create = function(id, par, vol, pit) | |
| 1869 | coroutine.resume(coroutine.create(function() | |
| 1870 | local S = Create("Sound")({
| |
| 1871 | Volume = vol, | |
| 1872 | Pitch = pit or 1, | |
| 1873 | SoundId = id, | |
| 1874 | Parent = par or workspace | |
| 1875 | }) | |
| 1876 | wait() | |
| 1877 | S:play() | |
| 1878 | game:GetService("Debris"):AddItem(S, 10)
| |
| 1879 | end)) | |
| 1880 | end | |
| 1881 | }, | |
| 1882 | LongSound = {
| |
| 1883 | Create = function(id, par, vol, pit) | |
| 1884 | coroutine.resume(coroutine.create(function() | |
| 1885 | local S = Create("Sound")({
| |
| 1886 | Volume = vol, | |
| 1887 | Pitch = pit or 1, | |
| 1888 | SoundId = id, | |
| 1889 | Parent = par or workspace | |
| 1890 | }) | |
| 1891 | wait() | |
| 1892 | S:play() | |
| 1893 | game:GetService("Debris"):AddItem(S, 30)
| |
| 1894 | end)) | |
| 1895 | end | |
| 1896 | }, | |
| 1897 | ParticleEmitter = {
| |
| 1898 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1899 | local fp = Create("ParticleEmitter")({
| |
| 1900 | Parent = Parent, | |
| 1901 | Color = ColorSequence.new(Color1, Color2), | |
| 1902 | LightEmission = LightEmission, | |
| 1903 | Size = Size, | |
| 1904 | Texture = Texture, | |
| 1905 | Transparency = Transparency, | |
| 1906 | ZOffset = ZOffset, | |
| 1907 | Acceleration = Accel, | |
| 1908 | Drag = Drag, | |
| 1909 | LockedToPart = LockedToPart, | |
| 1910 | VelocityInheritance = VelocityInheritance, | |
| 1911 | EmissionDirection = EmissionDirection, | |
| 1912 | Enabled = Enabled, | |
| 1913 | Lifetime = LifeTime, | |
| 1914 | Rate = Rate, | |
| 1915 | Rotation = Rotation, | |
| 1916 | RotSpeed = RotSpeed, | |
| 1917 | Speed = Speed, | |
| 1918 | VelocitySpread = VelocitySpread | |
| 1919 | }) | |
| 1920 | return fp | |
| 1921 | end | |
| 1922 | }, | |
| 1923 | CreateTemplate = {}
| |
| 1924 | } | |
| 1925 | function New(Object, Parent, Name, Data) | |
| 1926 | local Object = Instance.new(Object) | |
| 1927 | for Index, Value in pairs(Data or {}) do
| |
| 1928 | Object[Index] = Value | |
| 1929 | end | |
| 1930 | Object.Parent = Parent | |
| 1931 | Object.Name = Name | |
| 1932 | return Object | |
| 1933 | end | |
| 1934 | local halocolor = BrickColor.new("Pastel light blue")
| |
| 1935 | local halocolor2 = BrickColor.new("Really black")
| |
| 1936 | local starcolor = BrickColor.new("Really black")
| |
| 1937 | local lunacolor = BrickColor.new("Navy blue")
| |
| 1938 | local lunacolor2 = BrickColor.new("Bright blue")
| |
| 1939 | local wepcolor = BrickColor.new("Really black")
| |
| 1940 | local maincolor = BrickColor.new("Really black")
| |
| 1941 | local m = Instance.new("Model", char)
| |
| 1942 | local m2 = Instance.new("Model", char)
| |
| 1943 | local m3 = Instance.new("Model", char)
| |
| 1944 | local mw1 = Instance.new("Model", char)
| |
| 1945 | local mw2 = Instance.new("Model", char)
| |
| 1946 | local extrawingmod1 = Instance.new("Model", char)
| |
| 1947 | local extrawingmod2 = Instance.new("Model", char)
| |
| 1948 | function CreateParta(parent, transparency, reflectance, material, brickcolor) | |
| 1949 | local p = Instance.new("Part")
| |
| 1950 | p.TopSurface = 0 | |
| 1951 | p.BottomSurface = 0 | |
| 1952 | p.Parent = parent | |
| 1953 | p.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 1954 | p.Transparency = transparency | |
| 1955 | p.Reflectance = reflectance | |
| 1956 | p.CanCollide = false | |
| 1957 | p.Locked = true | |
| 1958 | p.BrickColor = brickcolor | |
| 1959 | p.Material = material | |
| 1960 | return p | |
| 1961 | end | |
| 1962 | function CreateMesh(parent, meshtype, x1, y1, z1) | |
| 1963 | local mesh = Instance.new("SpecialMesh", parent)
| |
| 1964 | mesh.MeshType = meshtype | |
| 1965 | mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10) | |
| 1966 | return mesh | |
| 1967 | end | |
| 1968 | function CreateSpecialMesh(parent, meshid, x1, y1, z1) | |
| 1969 | local mesh = Instance.new("SpecialMesh", parent)
| |
| 1970 | mesh.MeshType = "FileMesh" | |
| 1971 | mesh.MeshId = meshid | |
| 1972 | mesh.Scale = Vector3.new(x1, y1, z1) | |
| 1973 | return mesh | |
| 1974 | end | |
| 1975 | function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1) | |
| 1976 | local mesh = Instance.new("SpecialMesh", parent)
| |
| 1977 | mesh.MeshType = "FileMesh" | |
| 1978 | mesh.MeshId = meshid | |
| 1979 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 1980 | mesh.Scale = Vector3.new(x1, y1, z1) | |
| 1981 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 1982 | return mesh | |
| 1983 | end | |
| 1984 | function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za) | |
| 1985 | local weld = Instance.new("Weld")
| |
| 1986 | weld.Parent = parent | |
| 1987 | weld.Part0 = part0 | |
| 1988 | weld.Part1 = part1 | |
| 1989 | weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za) | |
| 1990 | weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za) | |
| 1991 | return weld | |
| 1992 | end | |
| 1993 | local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor) | |
| 1994 | CreateMesh(handle, "Brick", 0, 0, 0) | |
| 1995 | local handlexweld = CreateWeld(handlex, tors, handlex, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 1996 | local valuaring = 10 | |
| 1997 | for i = 0, 49 do | |
| 1998 | valuaring = valuaring + 10 | |
| 1999 | rn = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2000 | CreateMesh(rn, "Brick", 0.25, 0.1, 0.1) | |
| 2001 | CreateWeld(rn, handlex, rn, 0, 1, 0, math.rad(0), math.rad(0), math.rad(valuaring), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2002 | end | |
| 2003 | local handle = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2004 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2005 | local handleweld = CreateWeld(handle, tors, handle, 0, -1.5, -1.05, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2006 | local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2007 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2008 | local lwing1weld = CreateWeld(lwing1, handle, lwing1, 3, 0, 0, math.rad(5), math.rad(0), math.rad(12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2009 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2010 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2011 | CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2012 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2013 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2014 | CreateWeld(wed, lwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2015 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2016 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2017 | CreateWeld(wed, lwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2018 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2019 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2020 | CreateWeld(wed, lwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2021 | local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2022 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2023 | local lwing2weld = CreateWeld(lwing2, handle, lwing2, 4, 1, 0, math.rad(10), math.rad(0), math.rad(25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2024 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2025 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2026 | CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2027 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2028 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2029 | CreateWeld(wed, lwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2030 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2031 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2032 | CreateWeld(wed, lwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2033 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2034 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2035 | CreateWeld(wed, lwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2036 | local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2037 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2038 | local lwing3weld = CreateWeld(lwing3, handle, lwing3, 4.75, 2, 0, math.rad(15), math.rad(0), math.rad(37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2039 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2040 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2041 | CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2042 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2043 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2044 | CreateWeld(wed, lwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2045 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2046 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2047 | CreateWeld(wed, lwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2048 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
| 2049 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2050 | CreateWeld(wed, lwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2051 | local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2052 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2053 | local lwing4weld = CreateWeld(lwing4, handle, lwing4, 5.75, 3, 0, math.rad(20), math.rad(0), math.rad(50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2054 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2055 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2056 | CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2057 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2058 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2059 | CreateWeld(wed, lwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2060 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2061 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2062 | CreateWeld(wed, lwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2063 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2064 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2065 | CreateWeld(wed, lwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2066 | local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2067 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2068 | local lwing5weld = CreateWeld(lwing5, handle, lwing5, 6.75, 4, 0, math.rad(25), math.rad(0), math.rad(62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2069 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2070 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2071 | CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2072 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2073 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2074 | CreateWeld(wed, lwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2075 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2076 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2077 | CreateWeld(wed, lwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2078 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2079 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2080 | CreateWeld(wed, lwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2081 | local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2082 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2083 | local lwing6weld = CreateWeld(lwing6, handle, lwing6, 7.75, 5, 0, math.rad(30), math.rad(0), math.rad(75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2084 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2085 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2086 | CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2087 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2088 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2089 | CreateWeld(wed, lwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2090 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2091 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2092 | CreateWeld(wed, lwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2093 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
| 2094 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2095 | CreateWeld(wed, lwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2096 | local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2097 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2098 | local rwing1weld = CreateWeld(rwing1, handle, rwing1, -3, 0, 0, math.rad(5), math.rad(0), math.rad(-12.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2099 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2100 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2101 | CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2102 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2103 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2104 | CreateWeld(wed, rwing1, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2105 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2106 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2107 | CreateWeld(wed, rwing1, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2108 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2109 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2110 | CreateWeld(wed, rwing1, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2111 | local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2112 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2113 | local rwing2weld = CreateWeld(rwing2, handle, rwing2, -4, 1, 0, math.rad(10), math.rad(0), math.rad(-25), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2114 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2115 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2116 | CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2117 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2118 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2119 | CreateWeld(wed, rwing2, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2120 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2121 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2122 | CreateWeld(wed, rwing2, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2123 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2124 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2125 | CreateWeld(wed, rwing2, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2126 | local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2127 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2128 | local rwing3weld = CreateWeld(rwing3, handle, rwing3, -4.75, 2, 0, math.rad(15), math.rad(0), math.rad(-37.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2129 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2130 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2131 | CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2132 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2133 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2134 | CreateWeld(wed, rwing3, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2135 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2136 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2137 | CreateWeld(wed, rwing3, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2138 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
| 2139 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2140 | CreateWeld(wed, rwing3, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2141 | local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2142 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2143 | local rwing4weld = CreateWeld(rwing4, handle, rwing4, -5.75, 3, 0, math.rad(20), math.rad(0), math.rad(-50), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2144 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2145 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2146 | CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2147 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2148 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2149 | CreateWeld(wed, rwing4, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2150 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2151 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2152 | CreateWeld(wed, rwing4, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2153 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2154 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2155 | CreateWeld(wed, rwing4, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2156 | local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2157 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2158 | local rwing5weld = CreateWeld(rwing5, handle, rwing5, -6.75, 4, 0, math.rad(25), math.rad(0), math.rad(-62.5), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2159 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2160 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2161 | CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2162 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2163 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2164 | CreateWeld(wed, rwing5, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2165 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2166 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2167 | CreateWeld(wed, rwing5, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2168 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2169 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2170 | CreateWeld(wed, rwing5, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2171 | local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
| 2172 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
| 2173 | local rwing6weld = CreateWeld(rwing6, handle, rwing6, -7.75, 3, 0, math.rad(30), math.rad(0), math.rad(-75), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2174 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2175 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2176 | CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2177 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2178 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
| 2179 | CreateWeld(wed, rwing6, wed, 0, 0, 0.25, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2180 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2181 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
| 2182 | CreateWeld(wed, rwing6, wed, 0, -0.25, 1.75, math.rad(0), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2183 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
| 2184 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
| 2185 | CreateWeld(wed, rwing6, wed, 0, -1.75, 0.25, math.rad(90), math.rad(90), math.rad(90), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2186 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
| 2187 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
| 2188 | CreateWeld(ran, larm, ran, 0, 0.15, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2189 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2190 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
| 2191 | CreateWeld(ran, larm, ran, 0, 0.155, 0, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2192 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2193 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
| 2194 | CreateWeld(ran, larm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2195 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2196 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 2197 | CreateWeld(gan, larm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2198 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2199 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 2200 | CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2201 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 2202 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 2203 | CreateWeld(gan, larm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2204 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 2205 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 2206 | CreateWeld(gan, larm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2207 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
| 2208 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
| 2209 | CreateWeld(gane, larm, gane, 0, 0.6, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2210 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2211 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
| 2212 | CreateWeld(star, larm, star, 0, 0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2213 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
| 2214 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
| 2215 | CreateWeld(starl, larm, starl, 0, 0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2216 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2217 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2218 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2219 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2220 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2221 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2222 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2223 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2224 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2225 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2226 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2227 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2228 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2229 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2230 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2231 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2232 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2233 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2234 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2235 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2236 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2237 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2238 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2239 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2240 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2241 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2242 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2243 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2244 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2245 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2246 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2247 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2248 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2249 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2250 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2251 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2252 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2253 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2254 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2255 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2256 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2257 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2258 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2259 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2260 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2261 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2262 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2263 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2264 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2265 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2266 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2267 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2268 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2269 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2270 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2271 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2272 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2273 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2274 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2275 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2276 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2277 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2278 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2279 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2280 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2281 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2282 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2283 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2284 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2285 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2286 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2287 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2288 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2289 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2290 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2291 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2292 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2293 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2294 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2295 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2296 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2297 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2298 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2299 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2300 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2301 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2302 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2303 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2304 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2305 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2306 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
| 2307 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
| 2308 | CreateWeld(ran, rarm, ran, 0, 0.15, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2309 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2310 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
| 2311 | CreateWeld(ran, rarm, ran, 0, 0.155, 0, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2312 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2313 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
| 2314 | CreateWeld(ran, rarm, ran, 0, 0.155, -0.025, math.rad(0), math.rad(-90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2315 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2316 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 2317 | CreateWeld(gan, rarm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2318 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2319 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
| 2320 | CreateWeld(gan, rarm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2321 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 2322 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 2323 | CreateWeld(gan, rarm, gan, 0, 0.5, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2324 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
| 2325 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
| 2326 | CreateWeld(gan, rarm, gan, 0, 0.75, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2327 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
| 2328 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
| 2329 | CreateWeld(gane, rarm, gane, 0, 0.6, 0, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2330 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2331 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
| 2332 | CreateWeld(star, rarm, star, 0, -0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2333 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
| 2334 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
| 2335 | CreateWeld(starl, rarm, starl, 0, -0.475, 0.6, math.rad(90), math.rad(90), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2336 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2337 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2338 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2339 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2340 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2341 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2342 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2343 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2344 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2345 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2346 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2347 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2348 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2349 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2350 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2351 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2352 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2353 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2354 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2355 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2356 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2357 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2358 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2359 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2360 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2361 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2362 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2363 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2364 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2365 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2366 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2367 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2368 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2369 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2370 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2371 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2372 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2373 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2374 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2375 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2376 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2377 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2378 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2379 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2380 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2381 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2382 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2383 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2384 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2385 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2386 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2387 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2388 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2389 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2390 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2391 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2392 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2393 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2394 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2395 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2396 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2397 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2398 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2399 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2400 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2401 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2402 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2403 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2404 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2405 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2406 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2407 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2408 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2409 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2410 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2411 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2412 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2413 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2414 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2415 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2416 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2417 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
| 2418 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
| 2419 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2420 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
| 2421 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
| 2422 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2423 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
| 2424 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
| 2425 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
| 2426 | for i, v in pairs(m:GetChildren()) do | |
| 2427 | if v:IsA("Part") then
| |
| 2428 | v.BrickColor = BrickColor.new("Really black")
| |
| 2429 | v.Material = "Neon" | |
| 2430 | v.Transparency = 1 | |
| 2431 | end | |
| 2432 | end | |
| 2433 | for i, v in pairs(m2:GetChildren()) do | |
| 2434 | if v:IsA("Part") then
| |
| 2435 | v.BrickColor = BrickColor.new("Really black")
| |
| 2436 | v.Material = "Neon" | |
| 2437 | v.Transparency = 1 | |
| 2438 | end | |
| 2439 | end | |
| 2440 | for i, v in pairs(m3:GetChildren()) do | |
| 2441 | if v:IsA("Part") then
| |
| 2442 | v.BrickColor = BrickColor.new("Really black")
| |
| 2443 | v.Material = "Neon" | |
| 2444 | v.Transparency = 1 | |
| 2445 | end | |
| 2446 | end | |
| 2447 | for i, v in pairs(mw2:GetChildren()) do | |
| 2448 | if v:IsA("Part") then
| |
| 2449 | v.BrickColor = BrickColor.new("Really black")
| |
| 2450 | v.Material = "Neon" | |
| 2451 | end | |
| 2452 | end | |
| 2453 | for i, v in pairs(mw1:GetChildren()) do | |
| 2454 | if v:IsA("Part") then
| |
| 2455 | v.BrickColor = BrickColor.new("Really black")
| |
| 2456 | v.Material = "Neon" | |
| 2457 | end | |
| 2458 | end | |
| 2459 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 2460 | if v:IsA("Part") then
| |
| 2461 | v.BrickColor = BrickColor.new("Really black")
| |
| 2462 | v.Material = "Neon" | |
| 2463 | end | |
| 2464 | end | |
| 2465 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 2466 | if v:IsA("Part") then
| |
| 2467 | v.Transparency = 0 | |
| 2468 | v.BrickColor = BrickColor.new("Really black")
| |
| 2469 | v.Material = "Neon" | |
| 2470 | end | |
| 2471 | end | |
| 2472 | ||
| 2473 | ||
| 2474 | local MAINRUINCOLOR = BrickColor.new("Really black")
| |
| 2475 | function RemoveOutlines(part) | |
| 2476 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 2477 | end | |
| 2478 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 2479 | local Part = Create("Part")({
| |
| 2480 | Parent = Parent, | |
| 2481 | Reflectance = Reflectance, | |
| 2482 | Transparency = Transparency, | |
| 2483 | CanCollide = false, | |
| 2484 | Locked = true, | |
| 2485 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 2486 | Name = Name, | |
| 2487 | Size = Size, | |
| 2488 | Material = Material | |
| 2489 | }) | |
| 2490 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 2491 | RemoveOutlines(Part) | |
| 2492 | return Part | |
| 2493 | end | |
| 2494 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 2495 | local Msh = Create(Mesh)({
| |
| 2496 | Parent = Part, | |
| 2497 | Offset = OffSet, | |
| 2498 | Scale = Scale | |
| 2499 | }) | |
| 2500 | if Mesh == "SpecialMesh" then | |
| 2501 | Msh.MeshType = MeshType | |
| 2502 | Msh.MeshId = MeshId | |
| 2503 | end | |
| 2504 | return Msh | |
| 2505 | end | |
| 2506 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 2507 | local Weld = Create("Weld")({
| |
| 2508 | Parent = Parent, | |
| 2509 | Part0 = Part0, | |
| 2510 | Part1 = Part1, | |
| 2511 | C0 = C0, | |
| 2512 | C1 = C1 | |
| 2513 | }) | |
| 2514 | return Weld | |
| 2515 | end | |
| 2516 | ||
| 2517 | Player = Player | |
| 2518 | Character = Player.Character | |
| 2519 | PlayerGui = Player.PlayerGui | |
| 2520 | Backpack = Player.Backpack | |
| 2521 | Torso = Character.Torso | |
| 2522 | Head = Character.Head | |
| 2523 | Humanoid = Character.Humanoid | |
| 2524 | m = Instance.new("Model", Character)
| |
| 2525 | LeftArm = Character["Left Arm"] | |
| 2526 | LeftLeg = Character["Left Leg"] | |
| 2527 | RightArm = Character["Right Arm"] | |
| 2528 | RightLeg = Character["Right Leg"] | |
| 2529 | LS = Torso["Left Shoulder"] | |
| 2530 | LH = Torso["Left Hip"] | |
| 2531 | RS = Torso["Right Shoulder"] | |
| 2532 | RH = Torso["Right Hip"] | |
| 2533 | Face = Head.face | |
| 2534 | Neck = Torso.Neck | |
| 2535 | it = Instance.new | |
| 2536 | attacktype = 1 | |
| 2537 | vt = Vector3.new | |
| 2538 | cf = CFrame.new | |
| 2539 | euler = CFrame.fromEulerAnglesXYZ | |
| 2540 | angles = CFrame.Angles | |
| 2541 | cloaked = false | |
| 2542 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2543 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 2544 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2545 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 2546 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2547 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 2548 | RootPart = Character.HumanoidRootPart | |
| 2549 | RootJoint = RootPart.RootJoint | |
| 2550 | RootCF = euler(-1.57, 0, 3.14) | |
| 2551 | attack = false | |
| 2552 | attackdebounce = false | |
| 2553 | deb = false | |
| 2554 | equipped = true | |
| 2555 | hand = false | |
| 2556 | MMouse = nil | |
| 2557 | combo = 0 | |
| 2558 | mana = 0 | |
| 2559 | trispeed = 0.2 | |
| 2560 | attackmode = "none" | |
| 2561 | local idle = 0 | |
| 2562 | local Anim = "Idle" | |
| 2563 | local Effects = {}
| |
| 2564 | local gun = false | |
| 2565 | local shoot = false | |
| 2566 | local sine = 0 | |
| 2567 | local change = 1 | |
| 2568 | player = nil | |
| 2569 | local toggleTag = true | |
| 2570 | local txt = Instance.new("BillboardGui", Head)
| |
| 2571 | txt.Adornee = nil | |
| 2572 | txt.Name = "NameDetect" | |
| 2573 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
| 2574 | txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0) | |
| 2575 | local text = Instance.new("TextLabel", txt)
| |
| 2576 | text.Size = UDim2.new(5, 0, 3.5, 0) | |
| 2577 | text.FontSize = "Size8" | |
| 2578 | text.TextScaled = true | |
| 2579 | text.TextTransparency = 0 | |
| 2580 | text.BackgroundTransparency = 1 | |
| 2581 | text.TextTransparency = 0 | |
| 2582 | text.TextStrokeTransparency = 0 | |
| 2583 | text.Font = "Antique" | |
| 2584 | text.TextStrokeColor3 = Color3.new(0, 0, 0) | |
| 2585 | text.TextColor3 = Color3.new(0, 0, 0) | |
| 2586 | text.Text = "Evil Deity" | |
| 2587 | function RecolorTextAndRename(name, col1, col2) | |
| 2588 | text.TextStrokeColor3 = col2 | |
| 2589 | text.TextColor3 = col1 | |
| 2590 | text.Text = name | |
| 2591 | end | |
| 2592 | mouse = Player:GetMouse() | |
| 2593 | RSH, LSH = nil, nil | |
| 2594 | RW, LW = Instance.new("Weld"), Instance.new("Weld")
| |
| 2595 | RW.Name = "Right Shoulder" | |
| 2596 | LW.Name = "Left Shoulder" | |
| 2597 | LH = Torso["Left Hip"] | |
| 2598 | RH = Torso["Right Hip"] | |
| 2599 | TorsoColor = Torso.BrickColor | |
| 2600 | function NoOutline(Part) | |
| 2601 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 2602 | end | |
| 2603 | player = Player | |
| 2604 | ch = Character | |
| 2605 | RSH = ch.Torso["Right Shoulder"] | |
| 2606 | LSH = ch.Torso["Left Shoulder"] | |
| 2607 | RSH.Parent = nil | |
| 2608 | LSH.Parent = nil | |
| 2609 | RW.Name = "Right Shoulder" | |
| 2610 | RW.Part0 = ch.Torso | |
| 2611 | RW.C0 = cf(1.5, 0.5, 0) | |
| 2612 | RW.C1 = cf(0, 0.5, 0) | |
| 2613 | RW.Part1 = ch["Right Arm"] | |
| 2614 | RW.Parent = ch.Torso | |
| 2615 | LW.Name = "Left Shoulder" | |
| 2616 | LW.Part0 = ch.Torso | |
| 2617 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 2618 | LW.C1 = cf(0, 0.5, 0) | |
| 2619 | LW.Part1 = ch["Left Arm"] | |
| 2620 | LW.Parent = ch.Torso | |
| 2621 | local Stats = Instance.new("BoolValue")
| |
| 2622 | Stats.Name = "Stats" | |
| 2623 | Stats.Parent = Character | |
| 2624 | local Atk = Instance.new("NumberValue")
| |
| 2625 | Atk.Name = "Damage" | |
| 2626 | Atk.Parent = Stats | |
| 2627 | Atk.Value = 1 | |
| 2628 | local Def = Instance.new("NumberValue")
| |
| 2629 | Def.Name = "Defense" | |
| 2630 | Def.Parent = Stats | |
| 2631 | Def.Value = 1 | |
| 2632 | local Speed = Instance.new("NumberValue")
| |
| 2633 | Speed.Name = "Speed" | |
| 2634 | Speed.Parent = Stats | |
| 2635 | Speed.Value = 1 | |
| 2636 | local Mvmt = Instance.new("NumberValue")
| |
| 2637 | Mvmt.Name = "Movement" | |
| 2638 | Mvmt.Parent = Stats | |
| 2639 | Mvmt.Value = 1 | |
| 2640 | local donum = 0 | |
| 2641 | ||
| 2642 | function part(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
| 2643 | local fp = it("Part")
| |
| 2644 | fp.formFactor = formfactor | |
| 2645 | fp.Parent = parent | |
| 2646 | fp.Reflectance = reflectance | |
| 2647 | fp.Transparency = transparency | |
| 2648 | fp.CanCollide = false | |
| 2649 | fp.Locked = true | |
| 2650 | fp.BrickColor = brickcolor | |
| 2651 | fp.Name = name | |
| 2652 | fp.Size = size | |
| 2653 | fp.Position = Torso.Position | |
| 2654 | NoOutline(fp) | |
| 2655 | fp.Material = "SmoothPlastic" | |
| 2656 | fp:BreakJoints() | |
| 2657 | return fp | |
| 2658 | end | |
| 2659 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
| 2660 | local mesh = it(Mesh) | |
| 2661 | mesh.Parent = part | |
| 2662 | if Mesh == "SpecialMesh" then | |
| 2663 | mesh.MeshType = meshtype | |
| 2664 | if meshid ~= "nil" then | |
| 2665 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
| 2666 | end | |
| 2667 | end | |
| 2668 | mesh.Offset = offset | |
| 2669 | mesh.Scale = scale | |
| 2670 | return mesh | |
| 2671 | end | |
| 2672 | function weld(parent, part0, part1, c0) | |
| 2673 | local weld = it("Weld")
| |
| 2674 | weld.Parent = parent | |
| 2675 | weld.Part0 = part0 | |
| 2676 | weld.Part1 = part1 | |
| 2677 | weld.C0 = c0 | |
| 2678 | return weld | |
| 2679 | end | |
| 2680 | local Color1 = Torso.BrickColor | |
| 2681 | local bodvel = Instance.new("BodyVelocity")
| |
| 2682 | local bg = Instance.new("BodyGyro")
| |
| 2683 | function swait(num) | |
| 2684 | if num == 0 or num == nil then | |
| 2685 | game:service("RunService").Stepped:wait(0)
| |
| 2686 | else | |
| 2687 | for i = 0, num do | |
| 2688 | game:service("RunService").Stepped:wait(0)
| |
| 2689 | end | |
| 2690 | end | |
| 2691 | end | |
| 2692 | local r = 255 | |
| 2693 | local g = 0 | |
| 2694 | local b = 0 | |
| 2695 | coroutine.resume(coroutine.create(function() | |
| 2696 | while wait() do | |
| 2697 | for i = 0, 50.8 do | |
| 2698 | swait() | |
| 2699 | g = g + 5 | |
| 2700 | end | |
| 2701 | for i = 0, 50.8 do | |
| 2702 | swait() | |
| 2703 | r = r - 5 | |
| 2704 | end | |
| 2705 | for i = 0, 50.8 do | |
| 2706 | swait() | |
| 2707 | b = b + 5 | |
| 2708 | end | |
| 2709 | for i = 0, 50.8 do | |
| 2710 | swait() | |
| 2711 | g = g - 5 | |
| 2712 | end | |
| 2713 | for i = 0, 50.8 do | |
| 2714 | swait() | |
| 2715 | r = r + 5 | |
| 2716 | end | |
| 2717 | for i = 0, 50.8 do | |
| 2718 | swait() | |
| 2719 | b = b - 5 | |
| 2720 | end | |
| 2721 | end | |
| 2722 | end)) | |
| 2723 | function so(id, par, vol, pit) | |
| 2724 | coroutine.resume(coroutine.create(function() | |
| 2725 | local sou = Instance.new("Sound", par or workspace)
| |
| 2726 | sou.Volume = vol | |
| 2727 | sou.Pitch = pit or 1 | |
| 2728 | sou.SoundId = id | |
| 2729 | swait() | |
| 2730 | sou:play() | |
| 2731 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 2732 | end)) | |
| 2733 | end | |
| 2734 | function clerp(a, b, t) | |
| 2735 | local qa = {
| |
| 2736 | QuaternionFromCFrame(a) | |
| 2737 | } | |
| 2738 | local qb = {
| |
| 2739 | QuaternionFromCFrame(b) | |
| 2740 | } | |
| 2741 | local ax, ay, az = a.x, a.y, a.z | |
| 2742 | local bx, by, bz = b.x, b.y, b.z | |
| 2743 | local _t = 1 - t | |
| 2744 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 2745 | end | |
| 2746 | function QuaternionFromCFrame(cf) | |
| 2747 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 2748 | local trace = m00 + m11 + m22 | |
| 2749 | if trace > 0 then | |
| 2750 | local s = math.sqrt(1 + trace) | |
| 2751 | local recip = 0.5 / s | |
| 2752 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 2753 | else | |
| 2754 | local i = 0 | |
| 2755 | if m00 < m11 then | |
| 2756 | i = 1 | |
| 2757 | end | |
| 2758 | if m22 > (i == 0 and m00 or m11) then | |
| 2759 | i = 2 | |
| 2760 | end | |
| 2761 | if i == 0 then | |
| 2762 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 2763 | local recip = 0.5 / s | |
| 2764 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 2765 | elseif i == 1 then | |
| 2766 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 2767 | local recip = 0.5 / s | |
| 2768 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 2769 | elseif i == 2 then | |
| 2770 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 2771 | local recip = 0.5 / s | |
| 2772 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 2773 | end | |
| 2774 | end | |
| 2775 | end | |
| 2776 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 2777 | local xs, ys, zs = x + x, y + y, z + z | |
| 2778 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 2779 | local xx = x * xs | |
| 2780 | local xy = x * ys | |
| 2781 | local xz = x * zs | |
| 2782 | local yy = y * ys | |
| 2783 | local yz = y * zs | |
| 2784 | local zz = z * zs | |
| 2785 | 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)) | |
| 2786 | end | |
| 2787 | function QuaternionSlerp(a, b, t) | |
| 2788 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 2789 | local startInterp, finishInterp | |
| 2790 | if cosTheta >= 1.0E-4 then | |
| 2791 | if 1 - cosTheta > 1.0E-4 then | |
| 2792 | local theta = math.acos(cosTheta) | |
| 2793 | local invSinTheta = 1 / math.sin(theta) | |
| 2794 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
| 2795 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 2796 | else | |
| 2797 | startInterp = 1 - t | |
| 2798 | finishInterp = t | |
| 2799 | end | |
| 2800 | elseif 1 + cosTheta > 1.0E-4 then | |
| 2801 | local theta = math.acos(-cosTheta) | |
| 2802 | local invSinTheta = 1 / math.sin(theta) | |
| 2803 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
| 2804 | finishInterp = math.sin(t * theta) * invSinTheta | |
| 2805 | else | |
| 2806 | startInterp = t - 1 | |
| 2807 | finishInterp = t | |
| 2808 | end | |
| 2809 | 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 | |
| 2810 | end | |
| 2811 | local CFrameFromTopBack = function(at, top, back) | |
| 2812 | local right = top:Cross(back) | |
| 2813 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
| 2814 | end | |
| 2815 | function Triangle(a, b, c) | |
| 2816 | local edg1 = (c - a):Dot((b - a).unit) | |
| 2817 | local edg2 = (a - b):Dot((c - b).unit) | |
| 2818 | local edg3 = (b - c):Dot((a - c).unit) | |
| 2819 | if edg1 <= (b - a).magnitude and edg1 >= 0 then | |
| 2820 | a, b = a, b | |
| 2821 | elseif edg2 <= (c - b).magnitude and edg2 >= 0 then | |
| 2822 | a, b, c = b, c, a | |
| 2823 | elseif edg3 <= (a - c).magnitude and edg3 >= 0 then | |
| 2824 | a, b, c = c, a, b | |
| 2825 | else | |
| 2826 | assert(false, "unreachable") | |
| 2827 | end | |
| 2828 | local len1 = (c - a):Dot((b - a).unit) | |
| 2829 | local len2 = (b - a).magnitude - len1 | |
| 2830 | local width = (a + (b - a).unit * len1 - c).magnitude | |
| 2831 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) | |
| 2832 | local list = {}
| |
| 2833 | if len1 > 0.01 then | |
| 2834 | local w1 = Instance.new("WedgePart", m)
| |
| 2835 | game:GetService("Debris"):AddItem(w1, 5)
| |
| 2836 | w1.Material = "SmoothPlastic" | |
| 2837 | w1.FormFactor = "Custom" | |
| 2838 | w1.BrickColor = BrickColor.new("Really red")
| |
| 2839 | w1.Transparency = 0 | |
| 2840 | w1.Reflectance = 0 | |
| 2841 | w1.Material = "SmoothPlastic" | |
| 2842 | w1.CanCollide = false | |
| 2843 | local l1 = Instance.new("PointLight", w1)
| |
| 2844 | l1.Color = Color3.new(170, 0, 0) | |
| 2845 | NoOutline(w1) | |
| 2846 | local sz = Vector3.new(0.2, width, len1) | |
| 2847 | w1.Size = sz | |
| 2848 | local sp = Instance.new("SpecialMesh", w1)
| |
| 2849 | sp.MeshType = "Wedge" | |
| 2850 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
| 2851 | w1:BreakJoints() | |
| 2852 | w1.Anchored = true | |
| 2853 | w1.Parent = workspace | |
| 2854 | w1.Transparency = 0.7 | |
| 2855 | table.insert(Effects, {
| |
| 2856 | w1, | |
| 2857 | "Disappear", | |
| 2858 | 0.01 | |
| 2859 | }) | |
| 2860 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
| 2861 | table.insert(list, w1) | |
| 2862 | end | |
| 2863 | if len2 > 0.01 then | |
| 2864 | local w2 = Instance.new("WedgePart", m)
| |
| 2865 | game:GetService("Debris"):AddItem(w2, 5)
| |
| 2866 | w2.Material = "SmoothPlastic" | |
| 2867 | w2.FormFactor = "Custom" | |
| 2868 | w2.BrickColor = BrickColor.new("Really red")
| |
| 2869 | w2.Transparency = 0 | |
| 2870 | w2.Reflectance = 0 | |
| 2871 | w2.Material = "SmoothPlastic" | |
| 2872 | w2.CanCollide = false | |
| 2873 | local l2 = Instance.new("PointLight", w2)
| |
| 2874 | l2.Color = Color3.new(170, 0, 0) | |
| 2875 | NoOutline(w2) | |
| 2876 | local sz = Vector3.new(0.2, width, len2) | |
| 2877 | w2.Size = sz | |
| 2878 | local sp = Instance.new("SpecialMesh", w2)
| |
| 2879 | sp.MeshType = "Wedge" | |
| 2880 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
| 2881 | w2:BreakJoints() | |
| 2882 | w2.Anchored = true | |
| 2883 | w2.Parent = workspace | |
| 2884 | w2.Transparency = 0.7 | |
| 2885 | table.insert(Effects, {
| |
| 2886 | w2, | |
| 2887 | "Disappear", | |
| 2888 | 0.01 | |
| 2889 | }) | |
| 2890 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
| 2891 | table.insert(list, w2) | |
| 2892 | end | |
| 2893 | return unpack(list) | |
| 2894 | end | |
| 2895 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 2896 | if hit.Parent == nil then | |
| 2897 | return | |
| 2898 | end | |
| 2899 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2900 | for _, v in pairs(hit.Parent:children()) do | |
| 2901 | if v:IsA("Humanoid") then
| |
| 2902 | h = v | |
| 2903 | end | |
| 2904 | end | |
| 2905 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
| |
| 2906 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 2907 | return | |
| 2908 | end | |
| 2909 | local c = Create("ObjectValue")({
| |
| 2910 | Name = "creator", | |
| 2911 | Value = RealGame:service("Players")[owner.Name],
| |
| 2912 | Parent = h | |
| 2913 | }) | |
| 2914 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 2915 | if HitSound ~= nil and HitPitch ~= nil then | |
| 2916 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 2917 | end | |
| 2918 | local Damage = math.random(minim, maxim) | |
| 2919 | local blocked = false | |
| 2920 | local block = hit.Parent:findFirstChild("Block")
| |
| 2921 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 2922 | blocked = true | |
| 2923 | block.Value = block.Value - 1 | |
| 2924 | print(block.Value) | |
| 2925 | end | |
| 2926 | if blocked == false then | |
| 2927 | HitHealth = h.Health | |
| 2928 | h.Health = h.Health - Damage | |
| 2929 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 2930 | print("gained kill")
| |
| 2931 | end | |
| 2932 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 2933 | else | |
| 2934 | h.Health = h.Health - Damage / 2 | |
| 2935 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 2936 | end | |
| 2937 | if Type == "Knockdown" then | |
| 2938 | local hum = hit.Parent.Humanoid | |
| 2939 | hum.PlatformStand = true | |
| 2940 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 2941 | swait(1) | |
| 2942 | HHumanoid.PlatformStand = false | |
| 2943 | end), hum) | |
| 2944 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 2945 | local bodvol = Create("BodyVelocity")({
| |
| 2946 | velocity = angle * knockback, | |
| 2947 | P = 5000, | |
| 2948 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2949 | Parent = hit | |
| 2950 | }) | |
| 2951 | local rl = Create("BodyAngularVelocity")({
| |
| 2952 | P = 3000, | |
| 2953 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 2954 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 2955 | Parent = hit | |
| 2956 | }) | |
| 2957 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 2958 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 2959 | elseif Type == "Normal" then | |
| 2960 | local vp = Create("BodyVelocity")({
| |
| 2961 | P = 500, | |
| 2962 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 2963 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 2964 | }) | |
| 2965 | if knockback > 0 then | |
| 2966 | vp.Parent = hit.Parent.Head | |
| 2967 | end | |
| 2968 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 2969 | elseif Type == "Up" then | |
| 2970 | local bodyVelocity = Create("BodyVelocity")({
| |
| 2971 | velocity = Vector3.new(0, 20, 0), | |
| 2972 | P = 5000, | |
| 2973 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2974 | Parent = hit | |
| 2975 | }) | |
| 2976 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 2977 | local bodyVelocity = Create("BodyVelocity")({
| |
| 2978 | velocity = Vector3.new(0, 20, 0), | |
| 2979 | P = 5000, | |
| 2980 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2981 | Parent = hit | |
| 2982 | }) | |
| 2983 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 2984 | elseif Type == "Leech" then | |
| 2985 | local hum = hit.Parent.Humanoid | |
| 2986 | if hum ~= nil then | |
| 2987 | for i = 0, 2 do | |
| 2988 | Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 2989 | end | |
| 2990 | Humanoid.Health = Humanoid.Health + 10 | |
| 2991 | end | |
| 2992 | elseif Type == "UpKnock" then | |
| 2993 | local hum = hit.Parent.Humanoid | |
| 2994 | hum.PlatformStand = true | |
| 2995 | if hum ~= nil then | |
| 2996 | hitr = true | |
| 2997 | end | |
| 2998 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 2999 | swait(5) | |
| 3000 | HHumanoid.PlatformStand = false | |
| 3001 | hitr = false | |
| 3002 | end), hum) | |
| 3003 | local bodyVelocity = Create("BodyVelocity")({
| |
| 3004 | velocity = Vector3.new(0, 20, 0), | |
| 3005 | P = 5000, | |
| 3006 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 3007 | Parent = hit | |
| 3008 | }) | |
| 3009 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 3010 | local bodyVelocity = Create("BodyVelocity")({
| |
| 3011 | velocity = Vector3.new(0, 20, 0), | |
| 3012 | P = 5000, | |
| 3013 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 3014 | Parent = hit | |
| 3015 | }) | |
| 3016 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 3017 | elseif Type == "Snare" then | |
| 3018 | local bp = Create("BodyPosition")({
| |
| 3019 | P = 2000, | |
| 3020 | D = 100, | |
| 3021 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3022 | position = hit.Parent.Torso.Position, | |
| 3023 | Parent = hit.Parent.Torso | |
| 3024 | }) | |
| 3025 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 3026 | elseif Type == "Slashnare" then | |
| 3027 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07)
| |
| 3028 | for i = 1, math.random(4, 5) do | |
| 3029 | Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 3030 | end | |
| 3031 | local bp = Create("BodyPosition")({
| |
| 3032 | P = 2000, | |
| 3033 | D = 100, | |
| 3034 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3035 | position = hit.Parent.Torso.Position, | |
| 3036 | Parent = hit.Parent.Torso | |
| 3037 | }) | |
| 3038 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 3039 | elseif Type == "Spike" then | |
| 3040 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 3041 | local bp = Create("BodyPosition")({
| |
| 3042 | P = 2000, | |
| 3043 | D = 100, | |
| 3044 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3045 | position = hit.Parent.Torso.Position, | |
| 3046 | Parent = hit.Parent.Torso | |
| 3047 | }) | |
| 3048 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 3049 | elseif Type == "Freeze" then | |
| 3050 | local BodPos = Create("BodyPosition")({
| |
| 3051 | P = 50000, | |
| 3052 | D = 1000, | |
| 3053 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 3054 | position = hit.Parent.Torso.Position, | |
| 3055 | Parent = hit.Parent.Torso | |
| 3056 | }) | |
| 3057 | local BodGy = Create("BodyGyro")({
| |
| 3058 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 3059 | P = 20000, | |
| 3060 | Parent = hit.Parent.Torso, | |
| 3061 | cframe = hit.Parent.Torso.CFrame | |
| 3062 | }) | |
| 3063 | hit.Parent.Torso.Anchored = true | |
| 3064 | coroutine.resume(coroutine.create(function(Part) | |
| 3065 | swait(1.5) | |
| 3066 | Part.Anchored = false | |
| 3067 | end), hit.Parent.Torso) | |
| 3068 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 3069 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 3070 | end | |
| 3071 | local debounce = Create("BoolValue")({
| |
| 3072 | Name = "DebounceHit", | |
| 3073 | Parent = hit.Parent, | |
| 3074 | Value = true | |
| 3075 | }) | |
| 3076 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 3077 | c = Instance.new("ObjectValue")
| |
| 3078 | c.Name = "creator" | |
| 3079 | c.Value = RealGame:service("Players")[owner.Name];
| |
| 3080 | c.Parent = h | |
| 3081 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 3082 | end | |
| 3083 | end | |
| 3084 | function ShowDamage(Pos, Text, Time, Color) | |
| 3085 | local Rate = 0.03333333333333333 | |
| 3086 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 3087 | local Text = Text or "" | |
| 3088 | local Time = Time or 2 | |
| 3089 | local Color = Color or Color3.new(1, 0, 1) | |
| 3090 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 3091 | EffectPart.Anchored = true | |
| 3092 | local BillboardGui = Create("BillboardGui")({
| |
| 3093 | Size = UDim2.new(3, 0, 3, 0), | |
| 3094 | Adornee = EffectPart, | |
| 3095 | Parent = EffectPart | |
| 3096 | }) | |
| 3097 | local TextLabel = Create("TextLabel")({
| |
| 3098 | BackgroundTransparency = 1, | |
| 3099 | Size = UDim2.new(1, 0, 1, 0), | |
| 3100 | Text = Text, | |
| 3101 | TextColor3 = Color, | |
| 3102 | TextScaled = true, | |
| 3103 | Font = Enum.Font.ArialBold, | |
| 3104 | Parent = BillboardGui | |
| 3105 | }) | |
| 3106 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 3107 | EffectPart.Parent = game:GetService("Workspace")
| |
| 3108 | delay(0, function() | |
| 3109 | local Frames = Time / Rate | |
| 3110 | for Frame = 1, Frames do | |
| 3111 | wait(Rate) | |
| 3112 | local Percent = Frame / Frames | |
| 3113 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 3114 | TextLabel.TextTransparency = Percent | |
| 3115 | end | |
| 3116 | if EffectPart and EffectPart.Parent then | |
| 3117 | EffectPart:Destroy() | |
| 3118 | end | |
| 3119 | end) | |
| 3120 | end | |
| 3121 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 3122 | for _, c in pairs(workspace:children()) do | |
| 3123 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 3124 | if hum ~= nil then | |
| 3125 | local head = c:findFirstChild("Head")
| |
| 3126 | if head ~= nil then | |
| 3127 | local targ = head.Position - Part.Position | |
| 3128 | local mag = targ.magnitude | |
| 3129 | if magni >= mag and c.Name ~= Player.Name then | |
| 3130 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 3131 | end | |
| 3132 | end | |
| 3133 | end | |
| 3134 | end | |
| 3135 | end | |
| 3136 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 3137 | for _, c in pairs(workspace:children()) do | |
| 3138 | local hum = c:findFirstChild("Humanoid")
| |
| 3139 | if hum ~= nil then | |
| 3140 | local head = c:findFirstChild("Torso")
| |
| 3141 | if head ~= nil then | |
| 3142 | local targ = head.Position - Part.Position | |
| 3143 | local mag = targ.magnitude | |
| 3144 | if magni >= mag and c.Name ~= Player.Name then | |
| 3145 | MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05)
| |
| 3146 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 3147 | end | |
| 3148 | end | |
| 3149 | end | |
| 3150 | end | |
| 3151 | end | |
| 3152 | function rayCast(Pos, Dir, Max, Ignore) | |
| 3153 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 3154 | end | |
| 3155 | function SkullEffect(brickcolor, cframe, x1, y1, z1, delay) | |
| 3156 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3157 | prt.Anchored = true | |
| 3158 | prt.CFrame = cframe | |
| 3159 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3160 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 3161 | CF = prt.CFrame | |
| 3162 | coroutine.resume(coroutine.create(function(Part, Mesh, TehCF) | |
| 3163 | for i = 0, 1, 0.2 do | |
| 3164 | wait() | |
| 3165 | Part.CFrame = CF * cf(0, 0, -0.4) | |
| 3166 | end | |
| 3167 | for i = 0, 1, delay do | |
| 3168 | wait() | |
| 3169 | Mesh.Scale = Mesh.Scale | |
| 3170 | end | |
| 3171 | for i = 0, 1, 0.1 do | |
| 3172 | wait() | |
| 3173 | Part.Transparency = i | |
| 3174 | end | |
| 3175 | Part.Parent = nil | |
| 3176 | end), prt, msh, CF) | |
| 3177 | end | |
| 3178 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 3179 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3180 | prt.Anchored = true | |
| 3181 | prt.Material = "Neon" | |
| 3182 | prt.CFrame = cframe | |
| 3183 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3184 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3185 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3186 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3187 | for i = 0, 1, delay do | |
| 3188 | swait() | |
| 3189 | Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3190 | Part.Transparency = i | |
| 3191 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3192 | end | |
| 3193 | Part.Parent = nil | |
| 3194 | end), prt, msh) | |
| 3195 | end | |
| 3196 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
| 3197 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3198 | prt.Anchored = true | |
| 3199 | prt.Material = "Neon" | |
| 3200 | prt.CFrame = cframe | |
| 3201 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3202 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3203 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3204 | local rtype = rottype | |
| 3205 | for i = 0, 1, delay do | |
| 3206 | swait() | |
| 3207 | if rtype == 1 then | |
| 3208 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 3209 | elseif rtype == 2 then | |
| 3210 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 3211 | end | |
| 3212 | Part.Transparency = i | |
| 3213 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3214 | end | |
| 3215 | Part.Parent = nil | |
| 3216 | end), prt, msh) | |
| 3217 | end | |
| 3218 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 3219 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3220 | prt.Anchored = true | |
| 3221 | prt.CFrame = cframe | |
| 3222 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3223 | msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3224 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3225 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3226 | for i = 0, 1, delay do | |
| 3227 | wait() | |
| 3228 | Part.Transparency = i | |
| 3229 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3230 | end | |
| 3231 | Part.Parent = nil | |
| 3232 | end), prt, msh) | |
| 3233 | end | |
| 3234 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
| 3235 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3236 | prt.Anchored = true | |
| 3237 | prt.Material = "Neon" | |
| 3238 | prt.CFrame = cframe | |
| 3239 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3240 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3241 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3242 | local rtype = rottype | |
| 3243 | for i = 0, 1, delay do | |
| 3244 | swait() | |
| 3245 | if rtype == 1 then | |
| 3246 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 3247 | elseif rtype == 2 then | |
| 3248 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 3249 | end | |
| 3250 | Part.Transparency = i | |
| 3251 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3252 | end | |
| 3253 | Part.Parent = nil | |
| 3254 | end), prt, msh) | |
| 3255 | end | |
| 3256 | function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
| 3257 | local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3258 | prt.Anchored = true | |
| 3259 | prt.Material = "Neon" | |
| 3260 | prt.CFrame = cframe | |
| 3261 | local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
| 3262 | local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
| 3263 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
| |
| 3264 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3265 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3266 | local rtype = rottype | |
| 3267 | for i = 0, 1, delay do | |
| 3268 | swait() | |
| 3269 | if rtype == 1 then | |
| 3270 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 3271 | elseif rtype == 2 then | |
| 3272 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 3273 | end | |
| 3274 | dec.Transparency = i | |
| 3275 | dec2.Transparency = i | |
| 3276 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
| 3277 | end | |
| 3278 | Part.Parent = nil | |
| 3279 | end), prt, msh) | |
| 3280 | end | |
| 3281 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
| 3282 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3283 | prt.Anchored = true | |
| 3284 | prt.Material = "Neon" | |
| 3285 | prt.CFrame = cframe | |
| 3286 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01))
| |
| 3287 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3288 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3289 | local rtype = rottype | |
| 3290 | for i = 0, 1, delay do | |
| 3291 | swait() | |
| 3292 | if rtype == 1 then | |
| 3293 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 3294 | elseif rtype == 2 then | |
| 3295 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 3296 | end | |
| 3297 | prt.Transparency = i | |
| 3298 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
| 3299 | end | |
| 3300 | Part.Parent = nil | |
| 3301 | end), prt, msh) | |
| 3302 | end | |
| 3303 | function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype) | |
| 3304 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3305 | prt.Anchored = true | |
| 3306 | prt.Material = "Neon" | |
| 3307 | prt.CFrame = cframe | |
| 3308 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1))
| |
| 3309 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3310 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3311 | local rtype = rottype | |
| 3312 | for i = 0, 1, delay do | |
| 3313 | swait() | |
| 3314 | if rtype == 1 then | |
| 3315 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0) | |
| 3316 | elseif rtype == 2 then | |
| 3317 | prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0) | |
| 3318 | end | |
| 3319 | prt.Transparency = i | |
| 3320 | Mesh.Scale = Mesh.Scale + vt(x3, 0, z3) | |
| 3321 | end | |
| 3322 | Part.Parent = nil | |
| 3323 | end), prt, msh) | |
| 3324 | end | |
| 3325 | function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype) | |
| 3326 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3327 | prt.Anchored = true | |
| 3328 | prt.Material = "Neon" | |
| 3329 | prt.CFrame = cframe | |
| 3330 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3331 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3332 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3333 | local rtype = rottype | |
| 3334 | for i = 0, 1, delay do | |
| 3335 | swait() | |
| 3336 | if rtype == 1 then | |
| 3337 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 3338 | elseif rtype == 2 then | |
| 3339 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 3340 | end | |
| 3341 | prt.Transparency = i | |
| 3342 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
| 3343 | end | |
| 3344 | Part.Parent = nil | |
| 3345 | end), prt, msh) | |
| 3346 | end | |
| 3347 | function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
| 3348 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3349 | prt.Anchored = true | |
| 3350 | prt.Material = "Neon" | |
| 3351 | prt.CFrame = cframe | |
| 3352 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3353 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3354 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3355 | local rtype = rottype | |
| 3356 | for i = 0, 1, delay do | |
| 3357 | swait() | |
| 3358 | if rtype == 1 then | |
| 3359 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
| 3360 | elseif rtype == 2 then | |
| 3361 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
| 3362 | end | |
| 3363 | prt.Transparency = i | |
| 3364 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3365 | end | |
| 3366 | Part.Parent = nil | |
| 3367 | end), prt, msh) | |
| 3368 | end | |
| 3369 | function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
| 3370 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3371 | prt.Anchored = false | |
| 3372 | prt.CFrame = cframe | |
| 3373 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3374 | local wld = weld(prt, prt, Parent, cframe) | |
| 3375 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3376 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
| 3377 | for i = 0, 1, delay do | |
| 3378 | wait() | |
| 3379 | Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe | |
| 3380 | Part.Transparency = i | |
| 3381 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3382 | end | |
| 3383 | Part.Parent = nil | |
| 3384 | end), prt, msh, wld) | |
| 3385 | end | |
| 3386 | function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
| 3387 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3388 | prt.Anchored = false | |
| 3389 | prt.CFrame = cframe | |
| 3390 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3391 | local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0)) | |
| 3392 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3393 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
| 3394 | for i = 0, 1, delay do | |
| 3395 | wait() | |
| 3396 | Weld.C0 = euler(i * 20, 0, 0) | |
| 3397 | Part.Transparency = i | |
| 3398 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3399 | end | |
| 3400 | Part.Parent = nil | |
| 3401 | end), prt, msh, wld) | |
| 3402 | end | |
| 3403 | function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 3404 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3405 | prt.Anchored = true | |
| 3406 | prt.CFrame = cframe | |
| 3407 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3408 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 3409 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3410 | for i = 0, 1, delay do | |
| 3411 | wait() | |
| 3412 | Part.CFrame = Part.CFrame | |
| 3413 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3414 | local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3415 | prt2.Anchored = true | |
| 3416 | prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3417 | local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
| |
| 3418 | game:GetService("Debris"):AddItem(prt2, 2)
| |
| 3419 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3420 | for i = 0, 1, 0.1 do | |
| 3421 | wait() | |
| 3422 | Part.CFrame = Part.CFrame * cf(0, 0.5, 0) | |
| 3423 | end | |
| 3424 | Part.Parent = nil | |
| 3425 | end), prt2, msh2) | |
| 3426 | end | |
| 3427 | for i = 0, 1, delay * 2 do | |
| 3428 | wait() | |
| 3429 | Part.CFrame = Part.CFrame | |
| 3430 | Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i) | |
| 3431 | end | |
| 3432 | Part.Parent = nil | |
| 3433 | end), prt, msh) | |
| 3434 | end | |
| 3435 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 3436 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3437 | prt.Anchored = true | |
| 3438 | prt.CFrame = cframe | |
| 3439 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3440 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 3441 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3442 | for i = 0, 1, delay do | |
| 3443 | wait() | |
| 3444 | Part.CFrame = Part.CFrame | |
| 3445 | Part.Transparency = i | |
| 3446 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3447 | end | |
| 3448 | Part.Parent = nil | |
| 3449 | end), prt, msh) | |
| 3450 | end | |
| 3451 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 3452 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3453 | prt.Anchored = true | |
| 3454 | prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3455 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3456 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 3457 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 3458 | CF = Part.CFrame | |
| 3459 | Numbb = 0 | |
| 3460 | randnumb = math.random() / 10 | |
| 3461 | rand1 = math.random() / 10 | |
| 3462 | for i = 0, 1, rand1 do | |
| 3463 | wait() | |
| 3464 | CF = CF * cf(0, math.random() / 2, 0) | |
| 3465 | Part.CFrame = CF * euler(Numbb, 0, 0) | |
| 3466 | Part.Transparency = i | |
| 3467 | Numbb = Numbb + randnumb | |
| 3468 | end | |
| 3469 | Part.Parent = nil | |
| 3470 | end), prt, CF, Numbb, randnumb) | |
| 3471 | end | |
| 3472 | function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 3473 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3474 | prt.Anchored = true | |
| 3475 | prt.CFrame = cframe | |
| 3476 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3477 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3478 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3479 | for i = 0, 1, delay do | |
| 3480 | wait() | |
| 3481 | Part.CFrame = Part.CFrame * euler(0, 0.7, 0) | |
| 3482 | Part.Transparency = i | |
| 3483 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3484 | end | |
| 3485 | Part.Parent = nil | |
| 3486 | end), prt, msh) | |
| 3487 | end | |
| 3488 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 3489 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3490 | prt.Anchored = true | |
| 3491 | prt.CFrame = cframe | |
| 3492 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3493 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 3494 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 3495 | for i = 0, 1, delay do | |
| 3496 | wait() | |
| 3497 | Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0) | |
| 3498 | Part.Transparency = i | |
| 3499 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 3500 | end | |
| 3501 | Part.Parent = nil | |
| 3502 | end), prt, msh) | |
| 3503 | end | |
| 3504 | function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay) | |
| 3505 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 3506 | prt.Anchored = true | |
| 3507 | prt.CFrame = cframe * cf(x, y, z) | |
| 3508 | msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 3509 | game:GetService("Debris"):AddItem(prt, 5)
| |
| 3510 | coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee) | |
| 3511 | local num = math.random() | |
| 3512 | local num2 = math.random(-3, 2) + math.random() | |
| 3513 | local numm = 0 | |
| 3514 | for i = 0, 1, delay * 2 do | |
| 3515 | swait() | |
| 3516 | Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0) | |
| 3517 | Part.Transparency = i | |
| 3518 | numm = numm + 0.01 | |
| 3519 | end | |
| 3520 | Part.Parent = nil | |
| 3521 | Mesh.Parent = nil | |
| 3522 | end), prt, msh, x, y, z) | |
| 3523 | end | |
| 3524 | function dmgstart(dmg, what) | |
| 3525 | hitcon = what.Touched:connect(function(hit) | |
| 3526 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 3527 | if hum and not hum:IsDescendantOf(Character) then | |
| 3528 | hum:TakeDamage(dmg) | |
| 3529 | end | |
| 3530 | end) | |
| 3531 | end | |
| 3532 | function dmgstop() | |
| 3533 | hitcon:disconnect() | |
| 3534 | end | |
| 3535 | ||
| 3536 | function Cloak() | |
| 3537 | Face.Parent = nil | |
| 3538 | cloaked = true | |
| 3539 | for _, v in pairs(Torso.Parent:children()) do | |
| 3540 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 3541 | coroutine.resume(coroutine.create(function() | |
| 3542 | for i = 0, 1, 0.2 do | |
| 3543 | wait() | |
| 3544 | v.Transparency = i | |
| 3545 | end | |
| 3546 | v.Transparency = 0 | |
| 3547 | end)) | |
| 3548 | end | |
| 3549 | if v.className == "Hat" then | |
| 3550 | hatp = v.Handle | |
| 3551 | coroutine.resume(coroutine.create(function(derp) | |
| 3552 | for i = 0, 1, 0.2 do | |
| 3553 | wait() | |
| 3554 | derp.Transparency = i | |
| 3555 | end | |
| 3556 | derp.Transparency = 1 | |
| 3557 | end), hatp) | |
| 3558 | end | |
| 3559 | end | |
| 3560 | for _, v in pairs(m:children()) do | |
| 3561 | if v.className == "Part" then | |
| 3562 | coroutine.resume(coroutine.create(function() | |
| 3563 | for i = 0, 1, 0.2 do | |
| 3564 | wait() | |
| 3565 | v.Transparency = i | |
| 3566 | end | |
| 3567 | v.Transparency = 0 | |
| 3568 | end)) | |
| 3569 | end | |
| 3570 | end | |
| 3571 | end | |
| 3572 | function UnCloak() | |
| 3573 | so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1)
| |
| 3574 | Face.Parent = Head | |
| 3575 | cloaked = false | |
| 3576 | for _, v in pairs(Torso.Parent:children()) do | |
| 3577 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 3578 | coroutine.resume(coroutine.create(function() | |
| 3579 | for i = 0, 1, 0.1 do | |
| 3580 | wait() | |
| 3581 | v.Transparency = v.Transparency - 0.1 | |
| 3582 | end | |
| 3583 | v.Transparency = 0 | |
| 3584 | end)) | |
| 3585 | end | |
| 3586 | if v.className == "Hat" then | |
| 3587 | hatp = v.Handle | |
| 3588 | coroutine.resume(coroutine.create(function(derp) | |
| 3589 | for i = 0, 1, 0.1 do | |
| 3590 | wait() | |
| 3591 | derp.Transparency = derp.Transparency - 0.1 | |
| 3592 | end | |
| 3593 | derp.Transparency = 0 | |
| 3594 | end), hatp) | |
| 3595 | end | |
| 3596 | end | |
| 3597 | for _, v in pairs(m:children()) do | |
| 3598 | if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then | |
| 3599 | coroutine.resume(coroutine.create(function() | |
| 3600 | for i = 0, 1, 0.1 do | |
| 3601 | wait() | |
| 3602 | v.Transparency = v.Transparency - 0.1 | |
| 3603 | end | |
| 3604 | v.Transparency = 0 | |
| 3605 | end)) | |
| 3606 | v.Transparency = 0 | |
| 3607 | end | |
| 3608 | end | |
| 3609 | end | |
| 3610 | local origcolor = BrickColor.new("Pastel light blue")
| |
| 3611 | function Explode(rad, par, pitch, vol, mindam, maxdam) | |
| 3612 | local expart = Instance.new("Part", char)
| |
| 3613 | local expart2 = Instance.new("Part", char)
| |
| 3614 | local rin = Instance.new("Part", char)
| |
| 3615 | local rin2 = Instance.new("Part", char)
| |
| 3616 | local partMesh = Instance.new("SpecialMesh", expart)
| |
| 3617 | partMesh.MeshType = "Sphere" | |
| 3618 | local partMesh2 = Instance.new("SpecialMesh", expart2)
| |
| 3619 | partMesh2.MeshType = "Sphere" | |
| 3620 | local partMesh3 = Instance.new("SpecialMesh", rin)
| |
| 3621 | partMesh3.MeshType = "Brick" | |
| 3622 | local partMesh4 = Instance.new("SpecialMesh", rin2)
| |
| 3623 | partMesh4.MeshType = "Brick" | |
| 3624 | CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch)
| |
| 3625 | partMesh.Scale = vt(rad, rad, rad) | |
| 3626 | expart.Size = vt(1, 1, 1) | |
| 3627 | expart.Transparency = 0 | |
| 3628 | expart.Anchored = true | |
| 3629 | expart.Material = "Neon" | |
| 3630 | expart.BrickColor = bc("White")
| |
| 3631 | expart.CFrame = par.CFrame | |
| 3632 | partMesh2.Scale = vt(rad, rad, rad) | |
| 3633 | expart2.Size = vt(1.15, 1.15, 1.15) | |
| 3634 | expart2.Transparency = 0.5 | |
| 3635 | expart2.Anchored = true | |
| 3636 | expart2.Material = "Neon" | |
| 3637 | expart2.BrickColor = par.BrickColor | |
| 3638 | expart2.CFrame = par.CFrame | |
| 3639 | rin.Size = vt(1.15, 1.15, 1.15) | |
| 3640 | rin.Transparency = 1 | |
| 3641 | rin.Anchored = true | |
| 3642 | rin.Material = "Neon" | |
| 3643 | rin.BrickColor = par.BrickColor | |
| 3644 | rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
| 3645 | rin2.Size = vt(1.15, 1.15, 1.15) | |
| 3646 | rin2.Transparency = 1 | |
| 3647 | rin2.Anchored = true | |
| 3648 | rin2.Material = "Neon" | |
| 3649 | rin2.BrickColor = par.BrickColor | |
| 3650 | rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
| 3651 | partMesh3.Scale = vt(0, 1, 0) | |
| 3652 | partMesh4.Scale = vt(0, 1, 0) | |
| 3653 | local dec2 = Instance.new("Decal", rin)
| |
| 3654 | dec2.Face = "Top" | |
| 3655 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 3656 | dec2.Parent = rin | |
| 3657 | local dec2b = dec2:Clone() | |
| 3658 | dec2b.Face = "Bottom" | |
| 3659 | dec2b.Parent = rin | |
| 3660 | local dec2a = Instance.new("Decal", rin2)
| |
| 3661 | dec2a.Face = "Top" | |
| 3662 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 3663 | dec2a.Parent = rin2 | |
| 3664 | local dec2ab = dec2a:Clone() | |
| 3665 | dec2ab.Face = "Bottom" | |
| 3666 | dec2ab.Parent = rin2 | |
| 3667 | expart.CanCollide = false | |
| 3668 | expart2.CanCollide = false | |
| 3669 | rin.CanCollide = false | |
| 3670 | rin2.CanCollide = false | |
| 3671 | MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal") | |
| 3672 | local value = 1 * rad / 6.5 | |
| 3673 | for i = 0, 199 do | |
| 3674 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 3675 | expart.CFrame = expart.CFrame | |
| 3676 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
| 3677 | expart2.CFrame = expart.CFrame | |
| 3678 | value = value - 0.035 * rad / 30 | |
| 3679 | if value < 7.5 then | |
| 3680 | partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5) | |
| 3681 | rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0) | |
| 3682 | partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5) | |
| 3683 | rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0) | |
| 3684 | end | |
| 3685 | if value < 0 then | |
| 3686 | dec2.Transparency = dec2.Transparency + 0.025 | |
| 3687 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
| 3688 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
| 3689 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
| 3690 | expart.Transparency = expart.Transparency + 0.025 | |
| 3691 | expart2.Transparency = expart2.Transparency + 0.025 | |
| 3692 | rin.Transparency = rin.Transparency + 0.025 | |
| 3693 | rin2.Transparency = rin2.Transparency + 0.025 | |
| 3694 | end | |
| 3695 | swait() | |
| 3696 | end | |
| 3697 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 3698 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 3699 | game:GetService("Debris"):AddItem(rin, 1)
| |
| 3700 | game:GetService("Debris"):AddItem(rin2, 1)
| |
| 3701 | end | |
| 3702 | function ExplodeShort(rad, par, pitch, vol, mindam, maxdam) | |
| 3703 | local expart = Instance.new("Part", char)
| |
| 3704 | local expart2 = Instance.new("Part", char)
| |
| 3705 | local partMesh = Instance.new("SpecialMesh", expart)
| |
| 3706 | partMesh.MeshType = "Sphere" | |
| 3707 | local partMesh2 = Instance.new("SpecialMesh", expart2)
| |
| 3708 | partMesh2.MeshType = "Sphere" | |
| 3709 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch)
| |
| 3710 | partMesh.Scale = vt(rad, rad, rad) | |
| 3711 | expart.Size = vt(1, 1, 1) | |
| 3712 | expart.Transparency = 0 | |
| 3713 | expart.Anchored = true | |
| 3714 | expart.Material = "Neon" | |
| 3715 | expart.BrickColor = bc("White")
| |
| 3716 | expart.CFrame = par.CFrame | |
| 3717 | partMesh2.Scale = vt(rad, rad, rad) | |
| 3718 | expart2.Size = vt(1.15, 1.15, 1.15) | |
| 3719 | expart2.Transparency = 0.5 | |
| 3720 | expart2.Anchored = true | |
| 3721 | expart2.Material = "Neon" | |
| 3722 | expart2.BrickColor = par.BrickColor | |
| 3723 | expart2.CFrame = par.CFrame | |
| 3724 | expart.CanCollide = false | |
| 3725 | expart2.CanCollide = false | |
| 3726 | MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal") | |
| 3727 | local value = 1 * rad / 6.5 | |
| 3728 | for i = 0, 75 do | |
| 3729 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 3730 | expart.CFrame = expart.CFrame | |
| 3731 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
| 3732 | expart2.CFrame = expart.CFrame | |
| 3733 | value = value - 0.035 * rad / 5 | |
| 3734 | if value < 0 then | |
| 3735 | value = 0 | |
| 3736 | expart.Transparency = expart.Transparency + 0.05 | |
| 3737 | expart2.Transparency = expart2.Transparency + 0.05 | |
| 3738 | end | |
| 3739 | swait() | |
| 3740 | end | |
| 3741 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 3742 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 3743 | end | |
| 3744 | function AreaDanger(rad, par, mindam, maxdam) | |
| 3745 | local expart = Instance.new("Part", char)
| |
| 3746 | local partMesh = Instance.new("SpecialMesh", expart)
| |
| 3747 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
| |
| 3748 | partMesh.MeshType = "Sphere" | |
| 3749 | partMesh.Scale = vt(rad, rad, rad) | |
| 3750 | expart.Size = vt(1, 1, 1) | |
| 3751 | expart.Transparency = 0.5 | |
| 3752 | expart.Anchored = true | |
| 3753 | expart.Material = "Neon" | |
| 3754 | expart.CanCollide = false | |
| 3755 | expart.BrickColor = par.BrickColor | |
| 3756 | expart.CFrame = par.CFrame | |
| 3757 | local value = 1 * rad / 5 | |
| 3758 | MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1) | |
| 3759 | for i = 0, 14 do | |
| 3760 | wait() | |
| 3761 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 3762 | expart.CFrame = expart.CFrame | |
| 3763 | value = value - 0.035 * rad | |
| 3764 | if value < 0 then | |
| 3765 | value = 0 | |
| 3766 | end | |
| 3767 | end | |
| 3768 | wait(0.25) | |
| 3769 | CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1)
| |
| 3770 | wait(0.5) | |
| 3771 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1)
| |
| 3772 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75)
| |
| 3773 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
| 3774 | MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025) | |
| 3775 | for i = 0, 14 do | |
| 3776 | wait() | |
| 3777 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
| 3778 | expart.CFrame = expart.CFrame | |
| 3779 | value = value - 0.035 * rad / 2 | |
| 3780 | end | |
| 3781 | expart.Transparency = 1 | |
| 3782 | game:GetService("Debris"):AddItem(expart, 5)
| |
| 3783 | end | |
| 3784 | function Swarmsplosions(negrad, rad, par, mindam, maxdam) | |
| 3785 | CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2)
| |
| 3786 | CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1)
| |
| 3787 | CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1)
| |
| 3788 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 3789 | MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal") | |
| 3790 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025) | |
| 3791 | for i = 0, 24 do | |
| 3792 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2)) | |
| 3793 | end | |
| 3794 | for i = 0, 24 do | |
| 3795 | local expart = Instance.new("Part", char)
| |
| 3796 | expart.Transparency = 1 | |
| 3797 | expart.Anchored = true | |
| 3798 | expart.CanCollide = false | |
| 3799 | expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad)) | |
| 3800 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2)
| |
| 3801 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15)
| |
| 3802 | MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal") | |
| 3803 | MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025) | |
| 3804 | for i = 0, 9 do | |
| 3805 | MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2)) | |
| 3806 | end | |
| 3807 | game:GetService("Debris"):AddItem(expart, 2)
| |
| 3808 | wait(0.1) | |
| 3809 | end | |
| 3810 | end | |
| 3811 | function EXterPlosion(par) | |
| 3812 | CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1)
| |
| 3813 | CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85)
| |
| 3814 | CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2)
| |
| 3815 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 3816 | MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal") | |
| 3817 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005) | |
| 3818 | MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1) | |
| 3819 | for i = 0, 24 do | |
| 3820 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2)) | |
| 3821 | end | |
| 3822 | for i = 0, 24 do | |
| 3823 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2)) | |
| 3824 | end | |
| 3825 | end | |
| 3826 | function ring(type, pos, scale, value) | |
| 3827 | local type = type | |
| 3828 | local rng = Instance.new("Part", char)
| |
| 3829 | rng.Anchored = true | |
| 3830 | rng.BrickColor = origcolor | |
| 3831 | rng.CanCollide = false | |
| 3832 | rng.FormFactor = 3 | |
| 3833 | rng.Name = "Ring" | |
| 3834 | rng.Size = Vector3.new(1, 1, 1) | |
| 3835 | rng.Transparency = 0 | |
| 3836 | rng.TopSurface = 0 | |
| 3837 | rng.BottomSurface = 0 | |
| 3838 | rng.CFrame = pos | |
| 3839 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3840 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 3841 | rngm.Scale = scale | |
| 3842 | local scaler2 = 1 | |
| 3843 | if type == "Add" then | |
| 3844 | scaler2 = 1 * value | |
| 3845 | elseif type == "Divide" then | |
| 3846 | scaler2 = 1 / value | |
| 3847 | end | |
| 3848 | coroutine.resume(coroutine.create(function() | |
| 3849 | for i = 0, 10, 0.1 do | |
| 3850 | swait() | |
| 3851 | if type == "Add" then | |
| 3852 | scaler2 = scaler2 - 0.01 * value | |
| 3853 | elseif type == "Divide" then | |
| 3854 | scaler2 = scaler2 - 0.01 / value | |
| 3855 | end | |
| 3856 | rng.Transparency = rng.Transparency + 0.01 | |
| 3857 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 3858 | end | |
| 3859 | rng:Destroy() | |
| 3860 | end)) | |
| 3861 | end | |
| 3862 | function wave(type, pos, scale, value) | |
| 3863 | local type = type | |
| 3864 | local rng = Instance.new("Part", char)
| |
| 3865 | rng.Anchored = true | |
| 3866 | rng.BrickColor = origcolor | |
| 3867 | rng.CanCollide = false | |
| 3868 | rng.FormFactor = 3 | |
| 3869 | rng.Name = "Ring" | |
| 3870 | rng.Size = Vector3.new(1, 1, 1) | |
| 3871 | rng.Transparency = 0 | |
| 3872 | rng.TopSurface = 0 | |
| 3873 | rng.BottomSurface = 0 | |
| 3874 | rng.CFrame = pos | |
| 3875 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3876 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 3877 | rngm.Scale = scale | |
| 3878 | local scaler2 = 1 | |
| 3879 | if type == "Add" then | |
| 3880 | scaler2 = 1 * value | |
| 3881 | elseif type == "Divide" then | |
| 3882 | scaler2 = 1 / value | |
| 3883 | end | |
| 3884 | coroutine.resume(coroutine.create(function() | |
| 3885 | for i = 0, 10, 0.1 do | |
| 3886 | swait() | |
| 3887 | if type == "Add" then | |
| 3888 | scaler2 = scaler2 - 0.01 * value | |
| 3889 | elseif type == "Divide" then | |
| 3890 | scaler2 = scaler2 - 0.01 / value | |
| 3891 | end | |
| 3892 | rng.Transparency = rng.Transparency + 0.01 | |
| 3893 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 3894 | end | |
| 3895 | rng:Destroy() | |
| 3896 | end)) | |
| 3897 | end | |
| 3898 | function wind(type, pos, scale, value, speed) | |
| 3899 | local type = type | |
| 3900 | local rng = Instance.new("Part", char)
| |
| 3901 | rng.Anchored = true | |
| 3902 | rng.BrickColor = origcolor | |
| 3903 | rng.CanCollide = false | |
| 3904 | rng.FormFactor = 3 | |
| 3905 | rng.Name = "Ring" | |
| 3906 | rng.Size = Vector3.new(1, 1, 1) | |
| 3907 | rng.Transparency = 0 | |
| 3908 | rng.TopSurface = 0 | |
| 3909 | rng.BottomSurface = 0 | |
| 3910 | rng.CFrame = pos | |
| 3911 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3912 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 3913 | rngm.Scale = scale | |
| 3914 | local scaler2 = 1 | |
| 3915 | if type == "Add" then | |
| 3916 | scaler2 = 1 * value | |
| 3917 | elseif type == "Divide" then | |
| 3918 | scaler2 = 1 / value | |
| 3919 | end | |
| 3920 | coroutine.resume(coroutine.create(function() | |
| 3921 | for i = 0, 10, 0.1 do | |
| 3922 | swait() | |
| 3923 | if type == "Add" then | |
| 3924 | scaler2 = scaler2 - 0.01 * value | |
| 3925 | elseif type == "Divide" then | |
| 3926 | scaler2 = scaler2 - 0.01 / value | |
| 3927 | end | |
| 3928 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
| 3929 | rng.Transparency = rng.Transparency + 0.01 | |
| 3930 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 3931 | end | |
| 3932 | rng:Destroy() | |
| 3933 | end)) | |
| 3934 | end | |
| 3935 | function groundwind(type, pos, scale, value, speed) | |
| 3936 | local type = type | |
| 3937 | local rng = Instance.new("Part", char)
| |
| 3938 | rng.Anchored = true | |
| 3939 | rng.BrickColor = origcolor | |
| 3940 | rng.CanCollide = false | |
| 3941 | rng.FormFactor = 3 | |
| 3942 | rng.Name = "Ring" | |
| 3943 | rng.Size = Vector3.new(1, 1, 1) | |
| 3944 | rng.Transparency = 0 | |
| 3945 | rng.TopSurface = 0 | |
| 3946 | rng.BottomSurface = 0 | |
| 3947 | rng.CFrame = pos | |
| 3948 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3949 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 3950 | rngm.Scale = scale | |
| 3951 | local scaler2 = 1 | |
| 3952 | if type == "Add" then | |
| 3953 | scaler2 = 1 * value | |
| 3954 | elseif type == "Divide" then | |
| 3955 | scaler2 = 1 / value | |
| 3956 | end | |
| 3957 | coroutine.resume(coroutine.create(function() | |
| 3958 | for i = 0, 10, 0.1 do | |
| 3959 | swait() | |
| 3960 | if type == "Add" then | |
| 3961 | scaler2 = scaler2 - 0.01 * value | |
| 3962 | elseif type == "Divide" then | |
| 3963 | scaler2 = scaler2 - 0.01 / value | |
| 3964 | end | |
| 3965 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
| 3966 | rng.Transparency = rng.Transparency + 0.01 | |
| 3967 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2) | |
| 3968 | end | |
| 3969 | rng:Destroy() | |
| 3970 | end)) | |
| 3971 | end | |
| 3972 | function CameraManager() | |
| 3973 | if TwoD and not CamInterrupt then | |
| 3974 | if Humanoid.Health > 0 then | |
| 3975 | Camera.CameraSubject = Humanoid | |
| 3976 | Camera.CameraType = "Scriptable" | |
| 3977 | Humanoid.AutoRotate = false | |
| 3978 | if Booleans.GyroUse then | |
| 3979 | Directer.MaxTorque = Vec3(0, huge, 0) | |
| 3980 | else | |
| 3981 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 3982 | end | |
| 3983 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
| 3984 | if Booleans.CamFollow then | |
| 3985 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
| 3986 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
| 3987 | else | |
| 3988 | CPart.Position = RootPart.Position | |
| 3989 | end | |
| 3990 | else | |
| 3991 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
| 3992 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
| 3993 | end | |
| 3994 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
| 3995 | else | |
| 3996 | Camera.CameraSubject = Humanoid | |
| 3997 | Camera.CameraType = "Custom" | |
| 3998 | end | |
| 3999 | end | |
| 4000 | end | |
| 4001 | function sphere(bonuspeed, type, pos, scale, value, color) | |
| 4002 | local type = type | |
| 4003 | local rng = Instance.new("Part", char)
| |
| 4004 | rng.Anchored = true | |
| 4005 | rng.BrickColor = color | |
| 4006 | rng.CanCollide = false | |
| 4007 | rng.FormFactor = 3 | |
| 4008 | rng.Name = "Ring" | |
| 4009 | rng.Material = "Neon" | |
| 4010 | rng.Size = Vector3.new(1, 1, 1) | |
| 4011 | rng.Transparency = 0 | |
| 4012 | rng.TopSurface = 0 | |
| 4013 | rng.BottomSurface = 0 | |
| 4014 | rng.CFrame = pos | |
| 4015 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 4016 | rngm.MeshType = "Sphere" | |
| 4017 | rngm.Scale = scale | |
| 4018 | if rainbowmode == true then | |
| 4019 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4020 | end | |
| 4021 | local scaler2 = 1 | |
| 4022 | if type == "Add" then | |
| 4023 | scaler2 = 1 * value | |
| 4024 | elseif type == "Divide" then | |
| 4025 | scaler2 = 1 / value | |
| 4026 | end | |
| 4027 | coroutine.resume(coroutine.create(function() | |
| 4028 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 4029 | swait() | |
| 4030 | if rainbowmode == true then | |
| 4031 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4032 | end | |
| 4033 | if type == "Add" then | |
| 4034 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 4035 | elseif type == "Divide" then | |
| 4036 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 4037 | end | |
| 4038 | if chaosmode == true then | |
| 4039 | rng.BrickColor = BrickColor.random() | |
| 4040 | end | |
| 4041 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 4042 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 4043 | end | |
| 4044 | rng:Destroy() | |
| 4045 | end)) | |
| 4046 | end | |
| 4047 | function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
| 4048 | local type = type | |
| 4049 | local rng = Instance.new("Part", char)
| |
| 4050 | rng.Anchored = true | |
| 4051 | rng.BrickColor = color | |
| 4052 | rng.CanCollide = false | |
| 4053 | rng.FormFactor = 3 | |
| 4054 | rng.Name = "Ring" | |
| 4055 | rng.Material = "Neon" | |
| 4056 | rng.Size = Vector3.new(1, 1, 1) | |
| 4057 | rng.Transparency = 0 | |
| 4058 | rng.TopSurface = 0 | |
| 4059 | rng.BottomSurface = 0 | |
| 4060 | rng.CFrame = pos | |
| 4061 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 4062 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 4063 | rngm.MeshType = "Sphere" | |
| 4064 | rngm.Scale = vt(x1, y1, z1) | |
| 4065 | if rainbowmode == true then | |
| 4066 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4067 | end | |
| 4068 | local scaler2 = 1 | |
| 4069 | local speeder = FastSpeed | |
| 4070 | if type == "Add" then | |
| 4071 | scaler2 = 1 * value | |
| 4072 | elseif type == "Divide" then | |
| 4073 | scaler2 = 1 / value | |
| 4074 | end | |
| 4075 | coroutine.resume(coroutine.create(function() | |
| 4076 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 4077 | swait() | |
| 4078 | if rainbowmode == true then | |
| 4079 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4080 | end | |
| 4081 | if type == "Add" then | |
| 4082 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 4083 | elseif type == "Divide" then | |
| 4084 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 4085 | end | |
| 4086 | if chaosmode == true then | |
| 4087 | rng.BrickColor = BrickColor.random() | |
| 4088 | end | |
| 4089 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 4090 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 4091 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 4092 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 4093 | end | |
| 4094 | rng:Destroy() | |
| 4095 | end)) | |
| 4096 | end | |
| 4097 | function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
| 4098 | local type = type | |
| 4099 | local rng = Instance.new("Part", char)
| |
| 4100 | rng.Anchored = true | |
| 4101 | rng.BrickColor = color | |
| 4102 | rng.CanCollide = false | |
| 4103 | rng.FormFactor = 3 | |
| 4104 | rng.Name = "Ring" | |
| 4105 | rng.Material = "Neon" | |
| 4106 | rng.Size = Vector3.new(1, 1, 1) | |
| 4107 | rng.Transparency = 1 | |
| 4108 | rng.TopSurface = 0 | |
| 4109 | rng.BottomSurface = 0 | |
| 4110 | rng.CFrame = pos | |
| 4111 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
| 4112 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 4113 | rngm.MeshType = "Sphere" | |
| 4114 | rngm.Scale = vt(x1, y1, z1) | |
| 4115 | if rainbowmode == true then | |
| 4116 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4117 | end | |
| 4118 | local scaler2 = 1 | |
| 4119 | local speeder = FastSpeed | |
| 4120 | if type == "Add" then | |
| 4121 | scaler2 = 1 * value | |
| 4122 | elseif type == "Divide" then | |
| 4123 | scaler2 = 1 / value | |
| 4124 | end | |
| 4125 | coroutine.resume(coroutine.create(function() | |
| 4126 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 4127 | swait() | |
| 4128 | if rainbowmode == true then | |
| 4129 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4130 | end | |
| 4131 | if type == "Add" then | |
| 4132 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 4133 | elseif type == "Divide" then | |
| 4134 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 4135 | end | |
| 4136 | if chaosmode == true then | |
| 4137 | rng.BrickColor = BrickColor.random() | |
| 4138 | end | |
| 4139 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
| 4140 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
| 4141 | rng.Transparency = rng.Transparency - 0.01 * bonuspeed | |
| 4142 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
| 4143 | end | |
| 4144 | rng:Destroy() | |
| 4145 | end)) | |
| 4146 | end | |
| 4147 | function dmg(dude) | |
| 4148 | if dude.Name ~= Character then | |
| 4149 | local bgf = Instance.new("BodyGyro", dude.Head)
| |
| 4150 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0) | |
| 4151 | local val = Instance.new("BoolValue", dude)
| |
| 4152 | val.Name = "IsHit" | |
| 4153 | local ds = coroutine.wrap(function() | |
| 4154 | dude:WaitForChild("Head"):BreakJoints()
| |
| 4155 | wait(0.5) | |
| 4156 | targetted = nil | |
| 4157 | CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3)
| |
| 4158 | coroutine.resume(coroutine.create(function() | |
| 4159 | for i, v in pairs(dude:GetChildren()) do | |
| 4160 | if v:IsA("Accessory") then
| |
| 4161 | v:Destroy() | |
| 4162 | end | |
| 4163 | if v:IsA("Humanoid") then
| |
| 4164 | v:Destroy() | |
| 4165 | end | |
| 4166 | if v:IsA("CharacterMesh") then
| |
| 4167 | v:Destroy() | |
| 4168 | end | |
| 4169 | if v:IsA("Model") then
| |
| 4170 | v:Destroy() | |
| 4171 | end | |
| 4172 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 4173 | for x, o in pairs(v:GetChildren()) do | |
| 4174 | if o:IsA("Decal") then
| |
| 4175 | o:Destroy() | |
| 4176 | end | |
| 4177 | end | |
| 4178 | coroutine.resume(coroutine.create(function() | |
| 4179 | v.Material = "Neon" | |
| 4180 | v.CanCollide = false | |
| 4181 | local bld = Instance.new("ParticleEmitter", v)
| |
| 4182 | bld.LightEmission = 1 | |
| 4183 | bld.Texture = "rbxassetid://284205403" | |
| 4184 | bld.Color = ColorSequence.new(Color3.new(1, 1, 1)) | |
| 4185 | bld.Rate = 50 | |
| 4186 | bld.Lifetime = NumberRange.new(1) | |
| 4187 | bld.Size = NumberSequence.new({
| |
| 4188 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
| 4189 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 4190 | }) | |
| 4191 | bld.Transparency = NumberSequence.new({
| |
| 4192 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 4193 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 4194 | }) | |
| 4195 | bld.Speed = NumberRange.new(0, 0) | |
| 4196 | bld.VelocitySpread = 50000 | |
| 4197 | bld.Rotation = NumberRange.new(-500, 500) | |
| 4198 | bld.RotSpeed = NumberRange.new(-500, 500) | |
| 4199 | local sbs = Instance.new("BodyPosition", v)
| |
| 4200 | sbs.P = 3000 | |
| 4201 | sbs.D = 1000 | |
| 4202 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 4203 | sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) | |
| 4204 | v.Color = Color3.new(1, 1, 1) | |
| 4205 | coroutine.resume(coroutine.create(function() | |
| 4206 | for i = 0, 49 do | |
| 4207 | swait(1) | |
| 4208 | v.Transparency = v.Transparency + 0.02 | |
| 4209 | end | |
| 4210 | CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1)
| |
| 4211 | bld.Speed = NumberRange.new(1, 5) | |
| 4212 | bld.Acceleration = vt(0, 10, 0) | |
| 4213 | wait(0.5) | |
| 4214 | bld.Enabled = false | |
| 4215 | wait(3) | |
| 4216 | v:Destroy() | |
| 4217 | dude:Destroy() | |
| 4218 | end)) | |
| 4219 | end)) | |
| 4220 | end | |
| 4221 | end | |
| 4222 | end)) | |
| 4223 | end) | |
| 4224 | ds() | |
| 4225 | end | |
| 4226 | end | |
| 4227 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 4228 | if SinglePlayer then | |
| 4229 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 4230 | end | |
| 4231 | local List = {}
| |
| 4232 | for i, v in pairs(workspace:GetChildren()) do | |
| 4233 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
| |
| 4234 | table.insert(List, v) | |
| 4235 | end | |
| 4236 | end | |
| 4237 | return List | |
| 4238 | end | |
| 4239 | function FaceMouse() | |
| 4240 | Cam = workspace.CurrentCamera | |
| 4241 | return {
| |
| 4242 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 4243 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 4244 | } | |
| 4245 | end | |
| 4246 | function FaceMouse2() | |
| 4247 | Cam = workspace.CurrentCamera | |
| 4248 | return {
| |
| 4249 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
| 4250 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 4251 | } | |
| 4252 | end | |
| 4253 | local ModeOfGlitch = 1 | |
| 4254 | local storehumanoidWS = 16 | |
| 4255 | function ExtinctiveHeartbreak() | |
| 4256 | local targetted | |
| 4257 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 4258 | targetted = mouse.Target.Parent | |
| 4259 | end | |
| 4260 | if targetted ~= nil then | |
| 4261 | attack = true | |
| 4262 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
| |
| 4263 | for i = 0, 9 do | |
| 4264 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 4265 | end | |
| 4266 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 4267 | local originalpos = root.CFrame | |
| 4268 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2) | |
| 4269 | for i = 0, 9 do | |
| 4270 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 4271 | end | |
| 4272 | hum.WalkSpeed = 0 | |
| 4273 | targetted.Head.Anchored = true | |
| 4274 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 4275 | for i = 0, 1 do | |
| 4276 | swait() | |
| 4277 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4) | |
| 4278 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4) | |
| 4279 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4) | |
| 4280 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
| 4281 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4) | |
| 4282 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4) | |
| 4283 | end | |
| 4284 | coroutine.resume(coroutine.create(function() | |
| 4285 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso"))
| |
| 4286 | bld.LightEmission = 0.1 | |
| 4287 | bld.Texture = "rbxassetid://284205403" | |
| 4288 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
| 4289 | bld.Rate = 500 | |
| 4290 | bld.Lifetime = NumberRange.new(1) | |
| 4291 | bld.Size = NumberSequence.new({
| |
| 4292 | NumberSequenceKeypoint.new(0, 2, 0), | |
| 4293 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 4294 | }) | |
| 4295 | bld.Acceleration = vt(0, -25, 0) | |
| 4296 | bld.Transparency = NumberSequence.new({
| |
| 4297 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 4298 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 4299 | }) | |
| 4300 | bld.Speed = NumberRange.new(10, 50) | |
| 4301 | bld.EmissionDirection = "Front" | |
| 4302 | bld.VelocitySpread = 25 | |
| 4303 | bld.Rotation = NumberRange.new(-500, 500) | |
| 4304 | bld.RotSpeed = NumberRange.new(-500, 500) | |
| 4305 | end)) | |
| 4306 | coroutine.resume(coroutine.create(function() | |
| 4307 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso"))
| |
| 4308 | bld.LightEmission = 0.1 | |
| 4309 | bld.Texture = "rbxassetid://284205403" | |
| 4310 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
| 4311 | bld.Rate = 500 | |
| 4312 | bld.Lifetime = NumberRange.new(1) | |
| 4313 | bld.Size = NumberSequence.new({
| |
| 4314 | NumberSequenceKeypoint.new(0, 2, 0), | |
| 4315 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 4316 | }) | |
| 4317 | bld.Acceleration = vt(0, -25, 0) | |
| 4318 | bld.Transparency = NumberSequence.new({
| |
| 4319 | NumberSequenceKeypoint.new(0, 0, 0), | |
| 4320 | NumberSequenceKeypoint.new(1, 0, 0) | |
| 4321 | }) | |
| 4322 | bld.Speed = NumberRange.new(10, 50) | |
| 4323 | bld.EmissionDirection = "Front" | |
| 4324 | bld.VelocitySpread = 25 | |
| 4325 | bld.Rotation = NumberRange.new(-500, 500) | |
| 4326 | bld.RotSpeed = NumberRange.new(-500, 500) | |
| 4327 | end)) | |
| 4328 | CameraEnshaking(5, 5) | |
| 4329 | game:GetService("Debris"):AddItem(bld, 3)
| |
| 4330 | dmg(targetted) | |
| 4331 | CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1)
| |
| 4332 | for i = 0, 1, 1 do | |
| 4333 | swait() | |
| 4334 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8) | |
| 4335 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.8) | |
| 4336 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0.25, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(-80)), 0.8) | |
| 4337 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8) | |
| 4338 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
| 4339 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(-80)), 0.8) | |
| 4340 | end | |
| 4341 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1)
| |
| 4342 | for i = 0, 9 do | |
| 4343 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 4344 | end | |
| 4345 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 4346 | root.CFrame = originalpos | |
| 4347 | for i = 0, 9 do | |
| 4348 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0)
| |
| 4349 | end | |
| 4350 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black"))
| |
| 4351 | bld.Enabled = false | |
| 4352 | attack = false | |
| 4353 | hum.WalkSpeed = storehumanoidWS | |
| 4354 | end | |
| 4355 | end | |
| 4356 | function PureBomb() | |
| 4357 | attack = true | |
| 4358 | local orb = Instance.new("Part", char)
| |
| 4359 | orb.Anchored = true | |
| 4360 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 4361 | orb.CanCollide = false | |
| 4362 | orb.FormFactor = 3 | |
| 4363 | orb.Name = "Ring" | |
| 4364 | orb.Material = "Neon" | |
| 4365 | orb.Size = Vector3.new(1, 1, 1) | |
| 4366 | orb.Transparency = 0 | |
| 4367 | orb.TopSurface = 0 | |
| 4368 | orb.BottomSurface = 0 | |
| 4369 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4370 | orbm.MeshType = "Sphere" | |
| 4371 | orbm.Name = "SizeMesh" | |
| 4372 | orbm.Scale = vt(0, 0, 0) | |
| 4373 | local scaled = 0.1 | |
| 4374 | local posid = 0 | |
| 4375 | CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1)
| |
| 4376 | for i = 0, 5, 0.1 do | |
| 4377 | swait() | |
| 4378 | scaled = scaled - 0.001 | |
| 4379 | posid = posid - scaled | |
| 4380 | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) | |
| 4381 | orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled) | |
| 4382 | sphereMKCharge(5, -0.25, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, BrickColor.new("Toothpaste"), 10)
| |
| 4383 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.1) | |
| 4384 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.1) | |
| 4385 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 4386 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 4387 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1) | |
| 4388 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.1) | |
| 4389 | end | |
| 4390 | for i = 0, 2, 0.1 do | |
| 4391 | swait() | |
| 4392 | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) | |
| 4393 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4) | |
| 4394 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4) | |
| 4395 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.4) | |
| 4396 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4) | |
| 4397 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4) | |
| 4398 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4) | |
| 4399 | end | |
| 4400 | coroutine.resume(coroutine.create(function() | |
| 4401 | orb.Anchored = false | |
| 4402 | CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1)
| |
| 4403 | local a = Instance.new("Part", workspace)
| |
| 4404 | a.Name = "Direction" | |
| 4405 | a.Anchored = true | |
| 4406 | a.BrickColor = bc("Bright red")
| |
| 4407 | a.Material = "Neon" | |
| 4408 | a.Transparency = 1 | |
| 4409 | a.CanCollide = false | |
| 4410 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) | |
| 4411 | local ignore = orb | |
| 4412 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4413 | a.BottomSurface = 10 | |
| 4414 | a.TopSurface = 10 | |
| 4415 | local distance = (orb.CFrame.p - position).magnitude | |
| 4416 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 4417 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 4418 | orb.CFrame = a.CFrame | |
| 4419 | a:Destroy() | |
| 4420 | local bv = Instance.new("BodyVelocity")
| |
| 4421 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 4422 | bv.velocity = orb.CFrame.lookVector * 125 | |
| 4423 | bv.Parent = orb | |
| 4424 | local hitted = false | |
| 4425 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 4426 | wait() | |
| 4427 | local hit = orb.Touched:connect(function(hit) | |
| 4428 | if hitted == false then | |
| 4429 | hitted = true | |
| 4430 | CameraEnshaking(10, 2.5) | |
| 4431 | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1)
| |
| 4432 | MagniDamage(orb, 65, 65, 90, 0, "Normal") | |
| 4433 | sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste"))
| |
| 4434 | sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste"))
| |
| 4435 | for i = 0, 9 do | |
| 4436 | sphereMK(1, 2.5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
| |
| 4437 | sphereMK(2, 5, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 5, 5, 50, -0.05, BrickColor.new("Toothpaste"), 0)
| |
| 4438 | end | |
| 4439 | orb.Anchored = true | |
| 4440 | orb.Transparency = 1 | |
| 4441 | wait(8) | |
| 4442 | orb:Destroy() | |
| 4443 | end | |
| 4444 | end) | |
| 4445 | end)) | |
| 4446 | for i = 0, 1, 0.1 do | |
| 4447 | swait() | |
| 4448 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(-2 - 1 * math.cos(sine / 32))), 0.4) | |
| 4449 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.1 * math.cos(sine / 32), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-3 + 1 * math.cos(sine / 32)), math.rad(0), math.rad(-10)), 0.4) | |
| 4450 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.1 * math.cos(sine / 32)) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.4) | |
| 4451 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4) | |
| 4452 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4) | |
| 4453 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-30 + 5 * math.cos(sine / 30)), math.rad(-20)), 0.4) | |
| 4454 | end | |
| 4455 | attack = false | |
| 4456 | end | |
| 4457 | function ChaosGroundStrike() | |
| 4458 | attack = true | |
| 4459 | for i = 0, 2, 0.1 do | |
| 4460 | swait() | |
| 4461 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 4462 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 4463 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 4464 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 4465 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
| 4466 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
| 4467 | end | |
| 4468 | CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1)
| |
| 4469 | CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 4470 | CameraEnshaking(4, 12) | |
| 4471 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
| 4472 | if v:FindFirstChild("Head") then
| |
| 4473 | dmg(v) | |
| 4474 | end | |
| 4475 | end | |
| 4476 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random()) | |
| 4477 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random()) | |
| 4478 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random()) | |
| 4479 | for i = 0, 2, 0.1 do | |
| 4480 | swait() | |
| 4481 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 4482 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-52.5, 52.5), -5, math.random(-52.5, 52.5)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 4483 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 4484 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 4485 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 4486 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 4487 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
| 4488 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
| 4489 | end | |
| 4490 | attack = false | |
| 4491 | end | |
| 4492 | function ChaosBegone() | |
| 4493 | attack = true | |
| 4494 | chatfunc("WHY WONT YOU PEOPLE...", BrickColor.random().Color)
| |
| 4495 | for i = 0, 10, 0.1 do | |
| 4496 | swait() | |
| 4497 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 4498 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
| 4499 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 4500 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 4501 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
| 4502 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
| 4503 | end | |
| 4504 | chatfunc("DIE!!", BrickColor.random().Color)
| |
| 4505 | CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1)
| |
| 4506 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1)
| |
| 4507 | CameraEnshaking(5, 25) | |
| 4508 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
| 4509 | if v:FindFirstChild("Head") then
| |
| 4510 | dmg(v) | |
| 4511 | end | |
| 4512 | end | |
| 4513 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random()) | |
| 4514 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random()) | |
| 4515 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random()) | |
| 4516 | for i = 0, 3, 0.1 do | |
| 4517 | swait() | |
| 4518 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 4519 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 4520 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 4521 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * CFrame.Angles(math.rad(90 + math.rad(math.random(-45, 45))), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))), 2.5, 2.5, 25, -0.025, BrickColor.random(), 0) | |
| 4522 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 4523 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
| 4524 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 4525 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
| 4526 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
| 4527 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
| 4528 | end | |
| 4529 | attack = false | |
| 4530 | end | |
| 4531 | function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon) | |
| 4532 | local orb = Instance.new("Part", char)
| |
| 4533 | orb.Anchored = true | |
| 4534 | orb.BrickColor = color | |
| 4535 | orb.CanCollide = false | |
| 4536 | orb.FormFactor = 3 | |
| 4537 | orb.Name = "Ring" | |
| 4538 | orb.Material = "Neon" | |
| 4539 | orb.Size = Vector3.new(1, 1, 1) | |
| 4540 | orb.Transparency = 0 | |
| 4541 | orb.TopSurface = 0 | |
| 4542 | orb.BottomSurface = 0 | |
| 4543 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4544 | orbm.MeshType = "Sphere" | |
| 4545 | orb.CFrame = positted | |
| 4546 | orbm.Name = "SizeMesh" | |
| 4547 | orbm.Scale = vt(1, 1, 1) | |
| 4548 | CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1)
| |
| 4549 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor) | |
| 4550 | coroutine.resume(coroutine.create(function() | |
| 4551 | wait(timer) | |
| 4552 | CameraEnshaking(3, ShakePower) | |
| 4553 | orb.Transparency = 1 | |
| 4554 | MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal") | |
| 4555 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor) | |
| 4556 | CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7)
| |
| 4557 | wait(3) | |
| 4558 | orb:Destroy() | |
| 4559 | end)) | |
| 4560 | end | |
| 4561 | function orb_spawn(positted, timer) | |
| 4562 | local randomcol = math.random(1, 2) | |
| 4563 | local orb = Instance.new("Part", char)
| |
| 4564 | orb.Anchored = true | |
| 4565 | if randomcol == 1 then | |
| 4566 | orb.BrickColor = BrickColor.new("White")
| |
| 4567 | elseif randomcol == 2 then | |
| 4568 | orb.BrickColor = BrickColor.new("Really black")
| |
| 4569 | end | |
| 4570 | orb.CanCollide = false | |
| 4571 | orb.FormFactor = 3 | |
| 4572 | orb.Name = "Ring" | |
| 4573 | orb.Material = "Neon" | |
| 4574 | orb.Size = Vector3.new(1, 1, 1) | |
| 4575 | orb.Transparency = 0 | |
| 4576 | orb.TopSurface = 0 | |
| 4577 | orb.BottomSurface = 0 | |
| 4578 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4579 | orbm.MeshType = "Sphere" | |
| 4580 | orb.CFrame = positted | |
| 4581 | orbm.Name = "SizeMesh" | |
| 4582 | orbm.Scale = vt(1, 1, 1) | |
| 4583 | CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1)
| |
| 4584 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor) | |
| 4585 | for i = 0, 2 do | |
| 4586 | sphereMK(5, 0.15, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1.5, 1.5, 7.5, -0.015, orb.BrickColor, 0) | |
| 4587 | end | |
| 4588 | coroutine.resume(coroutine.create(function() | |
| 4589 | wait(timer) | |
| 4590 | CameraEnshaking(3, 2) | |
| 4591 | orb.Transparency = 1 | |
| 4592 | MagniDamage(orb, 17.5, 10, 50, 0, "Normal") | |
| 4593 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor) | |
| 4594 | for i = 0, 4 do | |
| 4595 | sphereMK(5, 0.65, "Add", orb.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2.5, 2.5, 15, -0.025, orb.BrickColor, 0) | |
| 4596 | end | |
| 4597 | CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7)
| |
| 4598 | wait(3) | |
| 4599 | orb:Destroy() | |
| 4600 | end)) | |
| 4601 | end | |
| 4602 | function scattercorrupt() | |
| 4603 | attack = true | |
| 4604 | local rot = 0 | |
| 4605 | local randomrotations = math.random(1, 2) | |
| 4606 | local lookv = 2.5 | |
| 4607 | local power = 5 | |
| 4608 | sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple"))
| |
| 4609 | sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple"))
| |
| 4610 | for i = 0, 9 do | |
| 4611 | sphereMK(1, 1.5, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 10, 10, 45, -0.1, BrickColor.new("Royal purple"), 0)
| |
| 4612 | end | |
| 4613 | CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6)
| |
| 4614 | CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5)
| |
| 4615 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1)
| |
| 4616 | CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75)
| |
| 4617 | CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5)
| |
| 4618 | local hite = Instance.new("Part", char)
| |
| 4619 | hite.Anchored = true | |
| 4620 | hite.CanCollide = false | |
| 4621 | hite.FormFactor = 3 | |
| 4622 | hite.Name = "Ring" | |
| 4623 | hite.Material = "Neon" | |
| 4624 | hite.Size = Vector3.new(1, 1, 1) | |
| 4625 | hite.Transparency = 1 | |
| 4626 | hite.TopSurface = 0 | |
| 4627 | hite.BottomSurface = 0 | |
| 4628 | hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0) | |
| 4629 | local rem = Instance.new("Part", char)
| |
| 4630 | rem.Anchored = true | |
| 4631 | rem.CanCollide = false | |
| 4632 | rem.FormFactor = 3 | |
| 4633 | rem.Name = "Ring" | |
| 4634 | rem.Material = "Neon" | |
| 4635 | rem.Size = Vector3.new(1, 1, 1) | |
| 4636 | rem.Transparency = 1 | |
| 4637 | rem.TopSurface = 0 | |
| 4638 | rem.BottomSurface = 0 | |
| 4639 | rem.CFrame = hite.CFrame | |
| 4640 | local rem2 = rem:Clone() | |
| 4641 | rem2.Parent = char | |
| 4642 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4643 | local rem3 = rem:Clone() | |
| 4644 | rem3.Parent = char | |
| 4645 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
| 4646 | local rem4 = rem:Clone() | |
| 4647 | rem4.Parent = char | |
| 4648 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
| 4649 | hite:Destroy() | |
| 4650 | coroutine.resume(coroutine.create(function() | |
| 4651 | for i = 0, 24 do | |
| 4652 | swait(1) | |
| 4653 | if randomrotations == 1 then | |
| 4654 | rot = rot + 1 | |
| 4655 | elseif randomrotations == 2 then | |
| 4656 | rot = rot - 1 | |
| 4657 | end | |
| 4658 | power = power + 0.5 | |
| 4659 | lookv = lookv + 7.5 | |
| 4660 | rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0) | |
| 4661 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4662 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
| 4663 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
| 4664 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 4665 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 4666 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 4667 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5)
| |
| 4668 | end | |
| 4669 | end)) | |
| 4670 | attack = false | |
| 4671 | end | |
| 4672 | function yinyangi() | |
| 4673 | attack = true | |
| 4674 | for i = 0, 2, 0.1 do | |
| 4675 | swait() | |
| 4676 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.2) | |
| 4677 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.2) | |
| 4678 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(75), math.rad(0), math.rad(0)), 0.2) | |
| 4679 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
| 4680 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2) | |
| 4681 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 4682 | end | |
| 4683 | local bv = Instance.new("BodyVelocity")
| |
| 4684 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
| 4685 | bv.velocity = root.CFrame.lookVector * 175 | |
| 4686 | bv.Parent = root | |
| 4687 | for Rotations = 0, 9 do | |
| 4688 | for i = 0, 1, 0.5 do | |
| 4689 | swait() | |
| 4690 | bv.velocity = root.CFrame.lookVector * 175 | |
| 4691 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 4692 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 4693 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5) | |
| 4694 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 4695 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 4696 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 4697 | end | |
| 4698 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 4699 | for i = 0, 1, 0.5 do | |
| 4700 | swait() | |
| 4701 | bv.velocity = root.CFrame.lookVector * 175 | |
| 4702 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 4703 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 4704 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(180)), 0.5) | |
| 4705 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 4706 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 4707 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 4708 | end | |
| 4709 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 4710 | for i = 0, 1, 0.5 do | |
| 4711 | swait() | |
| 4712 | bv.velocity = root.CFrame.lookVector * 175 | |
| 4713 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 4714 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 4715 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(270)), 0.5) | |
| 4716 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 4717 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 4718 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 4719 | end | |
| 4720 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 4721 | for i = 0, 1, 0.5 do | |
| 4722 | swait() | |
| 4723 | bv.velocity = root.CFrame.lookVector * 175 | |
| 4724 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(-20)), 0.5) | |
| 4725 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(20)), 0.5) | |
| 4726 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, -0.5, 0.5 + 0.1 * math.cos(sine / 28)) * angles(math.rad(90), math.rad(0), math.rad(360)), 0.5) | |
| 4727 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
| 4728 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 4729 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 4730 | end | |
| 4731 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
| 4732 | end | |
| 4733 | bv:Destroy() | |
| 4734 | attack = false | |
| 4735 | end | |
| 4736 | function Wip() | |
| 4737 | attack = true | |
| 4738 | local rngb = Instance.new("Part", char)
| |
| 4739 | rngb.Anchored = true | |
| 4740 | rngb.BrickColor = origcolor | |
| 4741 | rngb.CanCollide = false | |
| 4742 | rngb.FormFactor = 3 | |
| 4743 | rngb.Name = "Ring" | |
| 4744 | rngb.Material = "Neon" | |
| 4745 | rngb.Size = Vector3.new(1, 0.05, 1) | |
| 4746 | rngb.Transparency = 1 | |
| 4747 | rngb.TopSurface = 0 | |
| 4748 | rngb.BottomSurface = 0 | |
| 4749 | local rngmb = Instance.new("SpecialMesh", rngb)
| |
| 4750 | rngmb.MeshType = "Brick" | |
| 4751 | rngmb.Name = "SizeMesh" | |
| 4752 | rngmb.Scale = vt(0, 1, 0) | |
| 4753 | local orb = rngb:Clone() | |
| 4754 | orb.Parent = char | |
| 4755 | orb.Transparency = 0 | |
| 4756 | orb.BrickColor = BrickColor.new("Really black")
| |
| 4757 | orb.Size = vt(1, 1, 1) | |
| 4758 | local orbmish = orb.SizeMesh | |
| 4759 | orbmish.Scale = vt(0, 0, 0) | |
| 4760 | orbmish.MeshType = "Sphere" | |
| 4761 | local orbe = rngb:Clone() | |
| 4762 | orbe.Parent = char | |
| 4763 | orbe.Transparency = 0.5 | |
| 4764 | orbe.BrickColor = BrickColor.new("Really black")
| |
| 4765 | orbe.Size = vt(1, 1, 1) | |
| 4766 | local orbmish2 = orbe.SizeMesh | |
| 4767 | orbmish2.Scale = vt(0, 0, 0) | |
| 4768 | orbmish2.MeshType = "Sphere" | |
| 4769 | orbe.Color = Color3.new("Really black")
| |
| 4770 | rngb:Destroy() | |
| 4771 | for i = 0, 5, 0.1 do | |
| 4772 | swait() | |
| 4773 | if rainbowmode == true then | |
| 4774 | orbe.Color = Color3.new("Really black")
| |
| 4775 | end | |
| 4776 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 4777 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 4778 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
| 4779 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 4780 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 4781 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4782 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3) | |
| 4783 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3) | |
| 4784 | RootPart.CFrame = FaceMouse()[1] | |
| 4785 | end | |
| 4786 | orbe.Transparency = 1 | |
| 4787 | orb.Transparency = 1 | |
| 4788 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
| 4789 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
| |
| 4790 | local a = Instance.new("Part", Character)
| |
| 4791 | a.Name = "Direction" | |
| 4792 | a.Anchored = true | |
| 4793 | a.BrickColor = bc("Really black")
| |
| 4794 | a.Material = "Neon" | |
| 4795 | a.Transparency = 0 | |
| 4796 | a.Shape = "Cylinder" | |
| 4797 | a.CanCollide = false | |
| 4798 | local a2 = Instance.new("Part", Character)
| |
| 4799 | a2.Name = "Direction" | |
| 4800 | a2.Anchored = true | |
| 4801 | a2.BrickColor = bc("Really black")
| |
| 4802 | a2.Color = Color3.new("Really black")
| |
| 4803 | a2.Material = "Neon" | |
| 4804 | a2.Transparency = 0.5 | |
| 4805 | a2.Shape = "Cylinder" | |
| 4806 | a2.CanCollide = false | |
| 4807 | local ba = Instance.new("Part", Character)
| |
| 4808 | ba.Name = "HitDirect" | |
| 4809 | ba.Anchored = true | |
| 4810 | ba.BrickColor = bc("Really black")
| |
| 4811 | ba.Material = "Neon" | |
| 4812 | ba.Transparency = 1 | |
| 4813 | ba.CanCollide = false | |
| 4814 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 4815 | local ignore = Character | |
| 4816 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4817 | a.BottomSurface = 10 | |
| 4818 | a.TopSurface = 10 | |
| 4819 | a2.BottomSurface = 10 | |
| 4820 | a2.TopSurface = 10 | |
| 4821 | local distance = (orb.CFrame.p - position).magnitude | |
| 4822 | a.Size = Vector3.new(distance, 1, 1) | |
| 4823 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 4824 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4825 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 4826 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4827 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4828 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4829 | game:GetService("Debris"):AddItem(a, 20)
| |
| 4830 | game:GetService("Debris"):AddItem(a2, 20)
| |
| 4831 | game:GetService("Debris"):AddItem(ba, 20)
| |
| 4832 | local msh = Instance.new("SpecialMesh", a)
| |
| 4833 | msh.MeshType = "Cylinder" | |
| 4834 | msh.Scale = vt(1, 25, 25) | |
| 4835 | local msh2 = Instance.new("SpecialMesh", a2)
| |
| 4836 | msh2.MeshType = "Cylinder" | |
| 4837 | msh2.Scale = vt(1, 30, 30) | |
| 4838 | for i = 0, 10, 0.1 do | |
| 4839 | swait() | |
| 4840 | CameraEnshaking(1, 5) | |
| 4841 | a2.Color = Color3.new("Really black")
| |
| 4842 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 4843 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 4844 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 4845 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4846 | distance = (orb.CFrame.p - position).magnitude | |
| 4847 | if typrot == 1 then | |
| 4848 | rotation = rotation + 2.5 | |
| 4849 | elseif typrot == 2 then | |
| 4850 | rotation = rotation - 2.5 | |
| 4851 | end | |
| 4852 | RootPart.CFrame = FaceMouse()[1] | |
| 4853 | a.Size = Vector3.new(distance, 1, 1) | |
| 4854 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 4855 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4856 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 4857 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4858 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4859 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4860 | msh.Scale = msh.Scale - vt(0, 0.25, 0.25) | |
| 4861 | msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3) | |
| 4862 | sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0) | |
| 4863 | sphereMK(5, 1.5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 15, 15, 25, -0.15, MAINRUINCOLOR, 0) | |
| 4864 | MagniDamage(ba, 30, 500, 60000, 0, "Normal") | |
| 4865 | end | |
| 4866 | a:Destroy() | |
| 4867 | a2:Destroy() | |
| 4868 | ba:Destroy() | |
| 4869 | orb:Destroy() | |
| 4870 | orbe:Destroy() | |
| 4871 | attack = false | |
| 4872 | end | |
| 4873 | function UniversalSpark() | |
| 4874 | attack = true | |
| 4875 | local rngb = Instance.new("Part", char)
| |
| 4876 | rngb.Anchored = true | |
| 4877 | rngb.BrickColor = origcolor | |
| 4878 | rngb.CanCollide = false | |
| 4879 | rngb.FormFactor = 3 | |
| 4880 | rngb.Name = "Ring" | |
| 4881 | rngb.Material = "Neon" | |
| 4882 | rngb.Size = Vector3.new(1, 0.05, 1) | |
| 4883 | rngb.Transparency = 1 | |
| 4884 | rngb.TopSurface = 0 | |
| 4885 | rngb.BottomSurface = 0 | |
| 4886 | local rngmb = Instance.new("SpecialMesh", rngb)
| |
| 4887 | rngmb.MeshType = "Brick" | |
| 4888 | rngmb.Name = "SizeMesh" | |
| 4889 | rngmb.Scale = vt(0, 1, 0) | |
| 4890 | local orb = rngb:Clone() | |
| 4891 | orb.Parent = char | |
| 4892 | orb.Transparency = 0 | |
| 4893 | orb.BrickColor = BrickColor.new("White")
| |
| 4894 | orb.Size = vt(1, 1, 1) | |
| 4895 | local orbmish = orb.SizeMesh | |
| 4896 | orbmish.Scale = vt(0, 0, 0) | |
| 4897 | orbmish.MeshType = "Sphere" | |
| 4898 | local orbe = rngb:Clone() | |
| 4899 | orbe.Parent = char | |
| 4900 | orbe.Transparency = 0.5 | |
| 4901 | orbe.BrickColor = BrickColor.new("New Yeller")
| |
| 4902 | orbe.Size = vt(1, 1, 1) | |
| 4903 | local orbmish2 = orbe.SizeMesh | |
| 4904 | orbmish2.Scale = vt(0, 0, 0) | |
| 4905 | orbmish2.MeshType = "Sphere" | |
| 4906 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4907 | rngb:Destroy() | |
| 4908 | for i = 0, 5, 0.1 do | |
| 4909 | swait() | |
| 4910 | if rainbowmode == true then | |
| 4911 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4912 | end | |
| 4913 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 4914 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
| 4915 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
| 4916 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 4917 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 4918 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4919 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3) | |
| 4920 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3) | |
| 4921 | RootPart.CFrame = FaceMouse()[1] | |
| 4922 | end | |
| 4923 | orbe.Transparency = 1 | |
| 4924 | orb.Transparency = 1 | |
| 4925 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
| 4926 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1)
| |
| 4927 | CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1)
| |
| 4928 | CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1)
| |
| 4929 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1)
| |
| 4930 | CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1)
| |
| 4931 | CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85)
| |
| 4932 | CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1)
| |
| 4933 | local xd = Instance.new("Sound", char)
| |
| 4934 | xd.SoundId = "rbxassetid://445796828" | |
| 4935 | xd.Pitch = 0.75 | |
| 4936 | xd.Looped = true | |
| 4937 | xd.Volume = 1.25 | |
| 4938 | xd:Play() | |
| 4939 | local a = Instance.new("Part", Character)
| |
| 4940 | a.Name = "Direction" | |
| 4941 | a.Anchored = true | |
| 4942 | a.BrickColor = bc("Alder")
| |
| 4943 | a.Color = MAINRUINCOLOR.Color | |
| 4944 | a.Material = "Neon" | |
| 4945 | a.Transparency = 0.5 | |
| 4946 | a.Shape = "Cylinder" | |
| 4947 | a.CanCollide = false | |
| 4948 | local a2 = Instance.new("Part", Character)
| |
| 4949 | a2.Name = "Direction" | |
| 4950 | a2.Anchored = true | |
| 4951 | a2.BrickColor = bc("New Yeller")
| |
| 4952 | a2.Color = MAINRUINCOLOR.Color | |
| 4953 | a2.Material = "Neon" | |
| 4954 | a2.Transparency = 0.5 | |
| 4955 | a2.Shape = "Cylinder" | |
| 4956 | a2.CanCollide = false | |
| 4957 | local ba = Instance.new("Part", Character)
| |
| 4958 | ba.Name = "HitDirect" | |
| 4959 | ba.Anchored = true | |
| 4960 | ba.BrickColor = bc("Really black")
| |
| 4961 | ba.Material = "Neon" | |
| 4962 | ba.Transparency = 1 | |
| 4963 | ba.CanCollide = false | |
| 4964 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 4965 | local ignore = Character | |
| 4966 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4967 | a.BottomSurface = 10 | |
| 4968 | a.TopSurface = 10 | |
| 4969 | a2.BottomSurface = 10 | |
| 4970 | a2.TopSurface = 10 | |
| 4971 | local distance = (orb.CFrame.p - position).magnitude | |
| 4972 | a.Size = Vector3.new(distance, 1, 1) | |
| 4973 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 4974 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4975 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 4976 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4977 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4978 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 4979 | game:GetService("Debris"):AddItem(a, 60)
| |
| 4980 | game:GetService("Debris"):AddItem(a2, 60)
| |
| 4981 | game:GetService("Debris"):AddItem(ba, 60)
| |
| 4982 | local outerscale = 0 | |
| 4983 | local msh = Instance.new("SpecialMesh", a)
| |
| 4984 | msh.MeshType = "Cylinder" | |
| 4985 | msh.Scale = vt(1, 0, 0) | |
| 4986 | local msh2 = Instance.new("SpecialMesh", a2)
| |
| 4987 | msh2.MeshType = "Cylinder" | |
| 4988 | msh2.Scale = vt(1, 0, 0) | |
| 4989 | for i = 0, 2, 0.1 do | |
| 4990 | swait() | |
| 4991 | CameraEnshaking(1, 1) | |
| 4992 | msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20) | |
| 4993 | msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15) | |
| 4994 | outerscale = outerscale - 0.015 | |
| 4995 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 4996 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 4997 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 4998 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4999 | distance = (orb.CFrame.p - position).magnitude | |
| 5000 | if typrot == 1 then | |
| 5001 | rotation = rotation + 2.5 | |
| 5002 | elseif typrot == 2 then | |
| 5003 | rotation = rotation - 2.5 | |
| 5004 | end | |
| 5005 | RootPart.CFrame = FaceMouse()[1] | |
| 5006 | a.Size = Vector3.new(distance, 1, 1) | |
| 5007 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5008 | a2.Size = Vector3.new(distance, 1, 1) | |
| 5009 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5010 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 5011 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5012 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5013 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5014 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5015 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 5016 | end | |
| 5017 | for z = 0, 2 do | |
| 5018 | for i = 0, 4, 0.1 do | |
| 5019 | swait() | |
| 5020 | CameraEnshaking(1, 1) | |
| 5021 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
| 5022 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
| 5023 | outerscale = outerscale + 0.015 | |
| 5024 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 5025 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 5026 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 5027 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 5028 | distance = (orb.CFrame.p - position).magnitude | |
| 5029 | if typrot == 1 then | |
| 5030 | rotation = rotation + 2.5 | |
| 5031 | elseif typrot == 2 then | |
| 5032 | rotation = rotation - 2.5 | |
| 5033 | end | |
| 5034 | RootPart.CFrame = FaceMouse()[1] | |
| 5035 | a.Size = Vector3.new(distance, 1, 1) | |
| 5036 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5037 | a2.Size = Vector3.new(distance, 1, 1) | |
| 5038 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5039 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 5040 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5041 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5042 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5043 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5044 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 5045 | end | |
| 5046 | for i = 0, 4, 0.1 do | |
| 5047 | swait() | |
| 5048 | CameraEnshaking(1, 1) | |
| 5049 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
| 5050 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
| 5051 | outerscale = outerscale - 0.015 | |
| 5052 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 5053 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 5054 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 5055 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 5056 | distance = (orb.CFrame.p - position).magnitude | |
| 5057 | if typrot == 1 then | |
| 5058 | rotation = rotation + 2.5 | |
| 5059 | elseif typrot == 2 then | |
| 5060 | rotation = rotation - 2.5 | |
| 5061 | end | |
| 5062 | RootPart.CFrame = FaceMouse()[1] | |
| 5063 | a.Size = Vector3.new(distance, 1, 1) | |
| 5064 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5065 | a2.Size = Vector3.new(distance, 1, 1) | |
| 5066 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5067 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 5068 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5069 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5070 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5071 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5072 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 5073 | end | |
| 5074 | end | |
| 5075 | for i = 0, 4, 0.1 do | |
| 5076 | swait() | |
| 5077 | CameraEnshaking(1, 1) | |
| 5078 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
| 5079 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
| 5080 | xd.Volume = xd.Volume - 0.025 | |
| 5081 | a.Transparency = a.Transparency + 0.025 | |
| 5082 | a2.Transparency = a2.Transparency + 0.025 | |
| 5083 | outerscale = outerscale - 0.015 | |
| 5084 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 5085 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
| 5086 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
| 5087 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 5088 | distance = (orb.CFrame.p - position).magnitude | |
| 5089 | if typrot == 1 then | |
| 5090 | rotation = rotation + 2.5 | |
| 5091 | elseif typrot == 2 then | |
| 5092 | rotation = rotation - 2.5 | |
| 5093 | end | |
| 5094 | RootPart.CFrame = FaceMouse()[1] | |
| 5095 | a.Size = Vector3.new(distance, 1, 1) | |
| 5096 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5097 | a2.Size = Vector3.new(distance, 1, 1) | |
| 5098 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 5099 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 5100 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5101 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
| 5102 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5103 | sphereMK(5, 5, "Add", ba.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
| 5104 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
| 5105 | end | |
| 5106 | xd:Destroy() | |
| 5107 | a:Destroy() | |
| 5108 | a2:Destroy() | |
| 5109 | ba:Destroy() | |
| 5110 | orb:Destroy() | |
| 5111 | orbe:Destroy() | |
| 5112 | attack = false | |
| 5113 | end | |
| 5114 | function resetmode() | |
| 5115 | rainbowmode = false | |
| 5116 | chaosmode = false | |
| 5117 | RecolorTextAndRename("Black", Color3.new(0, 0, 0), Color3.new(0, 0, 0))
| |
| 5118 | ModeOfGlitch = 1 | |
| 5119 | storehumanoidWS = 100 | |
| 5120 | MAINRUINCOLOR = BrickColor.new("Really black")
| |
| 5121 | hum.WalkSpeed = 100 | |
| 5122 | newTheme("rbxassetid://798163149", 0, 1, 10)
| |
| 5123 | for i, v in pairs(m:GetChildren()) do | |
| 5124 | if v:IsA("Part") then
| |
| 5125 | v.BrickColor = BrickColor.new("Really black")
| |
| 5126 | v.Material = "Neon" | |
| 5127 | v.Transparency = 1 | |
| 5128 | end | |
| 5129 | end | |
| 5130 | for i, v in pairs(m2:GetChildren()) do | |
| 5131 | if v:IsA("Part") then
| |
| 5132 | v.BrickColor = BrickColor.new("Really black")
| |
| 5133 | v.Material = "Neon" | |
| 5134 | v.Transparency = 1 | |
| 5135 | end | |
| 5136 | end | |
| 5137 | for i, v in pairs(m3:GetChildren()) do | |
| 5138 | if v:IsA("Part") then
| |
| 5139 | v.BrickColor = BrickColor.new("Really black")
| |
| 5140 | v.Material = "Neon" | |
| 5141 | v.Transparency = 1 | |
| 5142 | end | |
| 5143 | end | |
| 5144 | for i, v in pairs(mw2:GetChildren()) do | |
| 5145 | if v:IsA("Part") then
| |
| 5146 | v.Transparency = 0 | |
| 5147 | v.BrickColor = BrickColor.new("Really black")
| |
| 5148 | v.Material = "Neon" | |
| 5149 | end | |
| 5150 | end | |
| 5151 | for i, v in pairs(mw1:GetChildren()) do | |
| 5152 | if v:IsA("Part") then
| |
| 5153 | v.Transparency = 0 | |
| 5154 | v.BrickColor = BrickColor.new("Really black")
| |
| 5155 | v.Material = "Neon" | |
| 5156 | end | |
| 5157 | end | |
| 5158 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5159 | if v:IsA("Part") then
| |
| 5160 | v.Transparency = 0 | |
| 5161 | v.BrickColor = BrickColor.new("Really black")
| |
| 5162 | v.Material = "Neon" | |
| 5163 | end | |
| 5164 | end | |
| 5165 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5166 | if v:IsA("Part") then
| |
| 5167 | v.Transparency = 0 | |
| 5168 | v.BrickColor = BrickColor.new("Really black")
| |
| 5169 | v.Material = "Neon" | |
| 5170 | end | |
| 5171 | end | |
| 5172 | end | |
| 5173 | function attackone() | |
| 5174 | attack = true | |
| 5175 | for i = 0, 1, 0.1 do | |
| 5176 | swait() | |
| 5177 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2) | |
| 5178 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2) | |
| 5179 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
| 5180 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
| 5181 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2) | |
| 5182 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.2) | |
| 5183 | end | |
| 5184 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1.1)
| |
| 5185 | local hitb = Instance.new("Part", char)
| |
| 5186 | hitb.Anchored = true | |
| 5187 | hitb.CanCollide = false | |
| 5188 | hitb.FormFactor = 3 | |
| 5189 | hitb.Name = "Ring" | |
| 5190 | hitb.Material = "Neon" | |
| 5191 | hitb.Size = Vector3.new(1, 1, 1) | |
| 5192 | hitb.Transparency = 1 | |
| 5193 | hitb.TopSurface = 0 | |
| 5194 | hitb.BottomSurface = 0 | |
| 5195 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
| 5196 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
| 5197 | hitb:Destroy() | |
| 5198 | for i = 0, 1, 0.1 do | |
| 5199 | swait() | |
| 5200 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4) | |
| 5201 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4) | |
| 5202 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
| 5203 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
| 5204 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4) | |
| 5205 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.4) | |
| 5206 | end | |
| 5207 | attack = false | |
| 5208 | end | |
| 5209 | function attacktwo() | |
| 5210 | attack = true | |
| 5211 | for i = 0, 1, 0.1 do | |
| 5212 | swait() | |
| 5213 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2) | |
| 5214 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2) | |
| 5215 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
| 5216 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
| 5217 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), -0.75) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.2) | |
| 5218 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(10)), 0.2) | |
| 5219 | end | |
| 5220 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1)
| |
| 5221 | local hitb = Instance.new("Part", char)
| |
| 5222 | hitb.Anchored = true | |
| 5223 | hitb.CanCollide = false | |
| 5224 | hitb.FormFactor = 3 | |
| 5225 | hitb.Name = "Ring" | |
| 5226 | hitb.Material = "Neon" | |
| 5227 | hitb.Size = Vector3.new(1, 1, 1) | |
| 5228 | hitb.Transparency = 1 | |
| 5229 | hitb.TopSurface = 0 | |
| 5230 | hitb.BottomSurface = 0 | |
| 5231 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
| 5232 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
| 5233 | hitb:Destroy() | |
| 5234 | for i = 0, 1, 0.1 do | |
| 5235 | swait() | |
| 5236 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4) | |
| 5237 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4) | |
| 5238 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
| 5239 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
| 5240 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-40)), 0.4) | |
| 5241 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-10)), 0.4) | |
| 5242 | end | |
| 5243 | attack = false | |
| 5244 | end | |
| 5245 | function attackthree() | |
| 5246 | attack = true | |
| 5247 | for i = 0, 1, 0.1 do | |
| 5248 | swait() | |
| 5249 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3) | |
| 5250 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3) | |
| 5251 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
| 5252 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 5253 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-0.5), math.rad(0), math.rad(0)), 0.3) | |
| 5254 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(10), math.rad(0)), 0.3) | |
| 5255 | end | |
| 5256 | local distlook = 5 | |
| 5257 | for i = 0, 4 do | |
| 5258 | swait(2) | |
| 5259 | CameraEnshaking(2, 3) | |
| 5260 | local hite = Instance.new("Part", char)
| |
| 5261 | hite.Anchored = true | |
| 5262 | hite.CanCollide = false | |
| 5263 | hite.FormFactor = 3 | |
| 5264 | hite.Name = "Ring" | |
| 5265 | hite.Material = "Neon" | |
| 5266 | hite.Size = Vector3.new(1, 1, 1) | |
| 5267 | hite.Transparency = 1 | |
| 5268 | hite.TopSurface = 0 | |
| 5269 | hite.BottomSurface = 0 | |
| 5270 | hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook | |
| 5271 | sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR) | |
| 5272 | sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR) | |
| 5273 | MagniDamage(hite, 10, 15, 35, 0, "Normal") | |
| 5274 | for i = 0, 2 do | |
| 5275 | sphereMK(2, 0.2, "Add", rarm.CFrame * CFrame.Angles(math.rad(-90 + math.random(-20, 20)), math.rad(math.random(-20, 20)), math.rad(math.random(-20, 20))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
| 5276 | sphereMK(3, 0.2, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
| 5277 | sphereMK(6, 0.35, "Add", hite.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
| 5278 | end | |
| 5279 | CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1)
| |
| 5280 | CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6)
| |
| 5281 | game:GetService("Debris"):AddItem(hite, 5)
| |
| 5282 | distlook = distlook + 10 | |
| 5283 | end | |
| 5284 | attack = false | |
| 5285 | end | |
| 5286 | ||
| 5287 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
| 5288 | local type = type | |
| 5289 | local rng = Instance.new("Part", char)
| |
| 5290 | rng.Anchored = true | |
| 5291 | rng.BrickColor = color | |
| 5292 | rng.Color = color3 | |
| 5293 | rng.CanCollide = false | |
| 5294 | rng.FormFactor = 3 | |
| 5295 | rng.Name = "Ring" | |
| 5296 | rng.Material = "Neon" | |
| 5297 | rng.Size = Vector3.new(1, 1, 1) | |
| 5298 | rng.Transparency = 0 | |
| 5299 | rng.TopSurface = 0 | |
| 5300 | rng.BottomSurface = 0 | |
| 5301 | rng.CFrame = pos | |
| 5302 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 5303 | rngm.MeshType = "Sphere" | |
| 5304 | rngm.Scale = scale | |
| 5305 | local scaler2 = 1 | |
| 5306 | local scaler2b = 1 | |
| 5307 | local scaler2c = 1 | |
| 5308 | if type == "Add" then | |
| 5309 | scaler2 = 1*value | |
| 5310 | scaler2b = 1*value2 | |
| 5311 | scaler2c = 1*value3 | |
| 5312 | elseif type == "Divide" then | |
| 5313 | scaler2 = 1/value | |
| 5314 | scaler2b = 1/value2 | |
| 5315 | scaler2c = 1/value3 | |
| 5316 | end | |
| 5317 | coroutine.resume(coroutine.create(function() | |
| 5318 | for i = 0,10/bonuspeed,0.1 do | |
| 5319 | swait() | |
| 5320 | if type == "Add" then | |
| 5321 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 5322 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 5323 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 5324 | elseif type == "Divide" then | |
| 5325 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 5326 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 5327 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 5328 | end | |
| 5329 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 5330 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 5331 | end | |
| 5332 | rng:Destroy() | |
| 5333 | end)) | |
| 5334 | end | |
| 5335 | ||
| 5336 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
| 5337 | local type = type | |
| 5338 | local rotenable = rotatingop | |
| 5339 | local rng = Instance.new("Part", char)
| |
| 5340 | rng.Anchored = true | |
| 5341 | rng.BrickColor = color | |
| 5342 | rng.CanCollide = false | |
| 5343 | rng.FormFactor = 3 | |
| 5344 | rng.Name = "Ring" | |
| 5345 | rng.Material = "Neon" | |
| 5346 | rng.Size = Vector3.new(1, 1, 1) | |
| 5347 | rng.Transparency = 0 | |
| 5348 | if typeoftrans == "In" then | |
| 5349 | rng.Transparency = 1 | |
| 5350 | end | |
| 5351 | rng.TopSurface = 0 | |
| 5352 | rng.BottomSurface = 0 | |
| 5353 | rng.CFrame = pos | |
| 5354 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 5355 | rngm.MeshType = "FileMesh" | |
| 5356 | if typeofshape == "Normal" then | |
| 5357 | rngm.MeshId = "rbxassetid://662586858" | |
| 5358 | elseif typeofshape == "Round" then | |
| 5359 | rngm.MeshId = "rbxassetid://662585058" | |
| 5360 | end | |
| 5361 | rngm.Scale = scale | |
| 5362 | local scaler2 = 1/10 | |
| 5363 | if type == "Add" then | |
| 5364 | scaler2 = 1*value/10 | |
| 5365 | elseif type == "Divide" then | |
| 5366 | scaler2 = 1/value/10 | |
| 5367 | end | |
| 5368 | local randomrot = math.random(1,2) | |
| 5369 | coroutine.resume(coroutine.create(function() | |
| 5370 | for i = 0,10/bonuspeed,0.1 do | |
| 5371 | swait() | |
| 5372 | if type == "Add" then | |
| 5373 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
| 5374 | elseif type == "Divide" then | |
| 5375 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
| 5376 | end | |
| 5377 | if rotenable == true then | |
| 5378 | if randomrot == 1 then | |
| 5379 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
| 5380 | elseif randomrot == 2 then | |
| 5381 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
| 5382 | end | |
| 5383 | end | |
| 5384 | if typeoftrans == "Out" then | |
| 5385 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 5386 | elseif typeoftrans == "In" then | |
| 5387 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 5388 | end | |
| 5389 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
| 5390 | end | |
| 5391 | rng:Destroy() | |
| 5392 | end)) | |
| 5393 | end | |
| 5394 | ||
| 5395 | function superjump() | |
| 5396 | attack = true | |
| 5397 | hum.WalkSpeed = 0 | |
| 5398 | hum.JumpPower = 0 | |
| 5399 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 7.5, 1)
| |
| 5400 | for i = 0, 2, 0.1 do | |
| 5401 | swait() | |
| 5402 | slash(math.random(10,50)/10,3,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-360,360)),math.rad(math.random(-10,10))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 5403 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
| 5404 | root.Velocity = vt(0,0,0) | |
| 5405 | RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(20)),.4) | |
| 5406 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(40)),.4) | |
| 5407 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,-1)*angles(math.rad(20),math.rad(0),math.rad(0)),.4) | |
| 5408 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4),math.rad(0),math.rad(0)),.4) | |
| 5409 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(40)),.4) | |
| 5410 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(10),math.rad(0),math.rad(-40)),.4) | |
| 5411 | end | |
| 5412 | ||
| 5413 | hum.JumpPower = 50 | |
| 5414 | hum.Jump = true | |
| 5415 | swait() | |
| 5416 | hum.JumpPower = 0 | |
| 5417 | root.Velocity = vt(0,250,0) + root.CFrame.lookVector*250 | |
| 5418 | CFuncs["Sound"].Create("rbxassetid://1295446488", root, 10, 1)
| |
| 5419 | for i = 0, 3, 0.1 do | |
| 5420 | swait() | |
| 5421 | RH.C0=clerp(RH.C0,cf(1,-0.45,-0.45)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(-20)),.4) | |
| 5422 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(30)),.4) | |
| 5423 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.75,0)*angles(math.rad(40),math.rad(0),math.rad(0)),.4) | |
| 5424 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.4) | |
| 5425 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(20)),.4) | |
| 5426 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(-30),math.rad(0),math.rad(-20)),.4) | |
| 5427 | end | |
| 5428 | attack = false | |
| 5429 | if equipped == false then | |
| 5430 | hum.WalkSpeed = 16 | |
| 5431 | else | |
| 5432 | hum.WalkSpeed = 24 | |
| 5433 | end | |
| 5434 | hum.JumpPower = 50 | |
| 5435 | end | |
| 5436 | ||
| 5437 | local attacktype = 1 | |
| 5438 | mouse.Button1Down:connect(function() | |
| 5439 | if attack == false and attacktype == 1 then | |
| 5440 | attacktype = 2 | |
| 5441 | attackone() | |
| 5442 | elseif attack == false and attacktype == 2 then | |
| 5443 | attacktype = 3 | |
| 5444 | attacktwo() | |
| 5445 | elseif attack == false and attacktype == 3 then | |
| 5446 | attacktype = 1 | |
| 5447 | attackthree() | |
| 5448 | elseif attack == false and attacktype == 4 then | |
| 5449 | attacktype = 1 | |
| 5450 | end | |
| 5451 | end) | |
| 5452 | mouse.KeyDown:connect(function(k) | |
| 5453 | if k == "q" and attack == false and ModeOfGlitch == 1 then | |
| 5454 | ExtinctiveHeartbreak() | |
| 5455 | elseif k == "e" and attack == false and ModeOfGlitch == 1 then | |
| 5456 | ChaosGroundStrike() | |
| 5457 | elseif k == "f" and attack == false and ModeOfGlitch == 1 then | |
| 5458 | superjump() | |
| 5459 | elseif k == "r" and attack == false and ModeOfGlitch == 1 then | |
| 5460 | Wip() | |
| 5461 | end | |
| 5462 | if k == "g" and attack == false and ModeOfGlitch == 1 then | |
| 5463 | ChaosBegone() | |
| 5464 | end | |
| 5465 | end) | |
| 5466 | coroutine.resume(coroutine.create(function() | |
| 5467 | while true do | |
| 5468 | swait(2) | |
| 5469 | if rainbowmode == true or ModeOfGlitch == 6 then | |
| 5470 | sphereMK(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -6, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, MAINRUINCOLOR, 0) | |
| 5471 | end | |
| 5472 | end | |
| 5473 | end)) | |
| 5474 | coroutine.resume(coroutine.create(function() | |
| 5475 | while true do | |
| 5476 | swait(0.5) | |
| 5477 | if ModeOfGlitch == 6 then | |
| 5478 | sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-25, 25), -10, math.random(-25, 25)) * CFrame.Angles(math.rad(90 + math.random(-15, 15)), math.rad(math.random(-15, 15)), 0), 1, 1, 15, -0.01, MAINRUINCOLOR, 0) | |
| 5479 | sphereMK(5, 0.5, "Add", root.CFrame * CFrame.new(math.random(-26, 26), -10, math.random(-26, 26)) * CFrame.Angles(math.rad(90 + math.random(-16, 16)), math.rad(math.random(-16, 16)), 0), 1, 1, 16, -0.01, MAINRUINCOLOR, 0) | |
| 5480 | end | |
| 5481 | end | |
| 5482 | end)) | |
| 5483 | coroutine.resume(coroutine.create(function() | |
| 5484 | while true do | |
| 5485 | swait(2) | |
| 5486 | if chaosmode == true then | |
| 5487 | RecolorTextAndRename("Fetty Edit", Color3.new(0, 0, 0), BrickColor.random().Color)
| |
| 5488 | for i, v in pairs(mw1:GetChildren()) do | |
| 5489 | if v:IsA("Part") then
| |
| 5490 | v.Transparency = 0.75 | |
| 5491 | v.BrickColor = BrickColor.random() | |
| 5492 | v.Material = "Neon" | |
| 5493 | end | |
| 5494 | end | |
| 5495 | for i, v in pairs(m2:GetChildren()) do | |
| 5496 | if v:IsA("Part") then
| |
| 5497 | v.BrickColor = BrickColor.random() | |
| 5498 | v.Material = "Neon" | |
| 5499 | end | |
| 5500 | end | |
| 5501 | end | |
| 5502 | end | |
| 5503 | end)) | |
| 5504 | Humanoid.Name = "STARGLITCHER" | |
| 5505 | Humanoid.MaxHealth = math.huge | |
| 5506 | Humanoid.Health = math.huge | |
| 5507 | Instance.new("ForceField", char).Visible = false
| |
| 5508 | Humanoid.Animator.Parent = nil | |
| 5509 | idleanim = 0.4 | |
| 5510 | while true do | |
| 5511 | if rainbowmode == true then | |
| 5512 | RecolorTextAndRename("Fetty Edit", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500))
| |
| 5513 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 5514 | for i, v in pairs(m:GetChildren()) do | |
| 5515 | if v:IsA("Part") then
| |
| 5516 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 5517 | end | |
| 5518 | end | |
| 5519 | for i, v in pairs(m2:GetChildren()) do | |
| 5520 | if v:IsA("Part") then
| |
| 5521 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 5522 | end | |
| 5523 | end | |
| 5524 | for i, v in pairs(m3:GetChildren()) do | |
| 5525 | if v:IsA("Part") then
| |
| 5526 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 5527 | end | |
| 5528 | end | |
| 5529 | for i, v in pairs(mw1:GetChildren()) do | |
| 5530 | if v:IsA("Part") then
| |
| 5531 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 5532 | v.Material = "Neon" | |
| 5533 | end | |
| 5534 | end | |
| 5535 | for i, v in pairs(mw2:GetChildren()) do | |
| 5536 | if v:IsA("Part") then
| |
| 5537 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 5538 | v.Material = "Neon" | |
| 5539 | end | |
| 5540 | end | |
| 5541 | end | |
| 5542 | CameraManager() | |
| 5543 | swait() | |
| 5544 | handleweld.C0=clerp(handleweld.C0,cf(0,-1.5,-1.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
| 5545 | lwing1weld.C1=clerp(lwing1weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 + 3600 * math.cos(sine / 360))),.3) | |
| 5546 | lwing2weld.C1=clerp(lwing2weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 + 3600 * math.cos(sine / 360))),.3) | |
| 5547 | lwing3weld.C1=clerp(lwing3weld.C1,cf(0 + 2.5 * math.cos(sine / 180),0.5 + 0.75 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 + 3600 * math.cos(sine / 360))),.3) | |
| 5548 | rwing1weld.C1=clerp(rwing1weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(0 - 3600 * math.cos(sine / 720))),.3) | |
| 5549 | rwing2weld.C1=clerp(rwing2weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(120 - 3600 * math.cos(sine / 720))),.3) | |
| 5550 | rwing3weld.C1=clerp(rwing3weld.C1,cf(0 + 1.5 * math.cos(sine / 360),-0.25 - 0.5 * math.cos(sine / 25),1.5)*angles(math.rad(90 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-120 - 3600 * math.cos(sine / 720))),.3) | |
| 5551 | lwing4weld.C1=clerp(lwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 - 3600 * math.cos(sine / 360))),.3) | |
| 5552 | lwing5weld.C1=clerp(lwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(147.5 - 3600 * math.cos(sine / 360))),.3) | |
| 5553 | lwing6weld.C1=clerp(lwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(32.5 - 3600 * math.cos(sine / 360))),.3) | |
| 5554 | rwing4weld.C1=clerp(rwing4weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 3600 * math.cos(sine / 360))),.3) | |
| 5555 | rwing5weld.C1=clerp(rwing5weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 70)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-147.5 - 3600 * math.cos(sine / 360))),.3) | |
| 5556 | rwing6weld.C1=clerp(rwing6weld.C1,cf(0 - 7.5 * math.cos(sine / 180),1.5 + 0.75 * math.cos(sine / 25),-1)*angles(math.rad(0 + 1 * math.cos(sine / 60)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-32.5 - 3600 * math.cos(sine / 360))),.3) | |
| 5557 | sine = sine + change | |
| 5558 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 5559 | local velderp = RootPart.Velocity.y | |
| 5560 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 5561 | storehumanoidWS = 100 | |
| 5562 | hum.WalkSpeed = 100 | |
| 5563 | if equipped == true or equipped == false then | |
| 5564 | if attack == false then | |
| 5565 | idle = idle + 1 | |
| 5566 | else | |
| 5567 | idle = 0 | |
| 5568 | end | |
| 5569 | if not (idle >= 500) or attack == false then | |
| 5570 | end | |
| 5571 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
| 5572 | Anim = "Jump" | |
| 5573 | if attack == false then | |
| 5574 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1) | |
| 5575 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1) | |
| 5576 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.1) | |
| 5577 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1) | |
| 5578 | RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-5), math.rad(0), math.rad(25)), 0.1) | |
| 5579 | LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-5), math.rad(0), math.rad(-25)), 0.1) | |
| 5580 | end | |
| 5581 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
| 5582 | Anim = "Fall" | |
| 5583 | if attack == false then | |
| 5584 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(-20)), 0.1) | |
| 5585 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-5), math.rad(0), math.rad(20)), 0.1) | |
| 5586 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 5587 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
| 5588 | RW.C0 = clerp(RW.C0, cf(1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.1) | |
| 5589 | LW.C0 = clerp(LW.C0, cf(-1.45, 0.5 + 0.1 * math.cos(sine / 25), 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.1) | |
| 5590 | end | |
| 5591 | elseif torvel < 1 and hitfloor ~= nil then | |
| 5592 | Anim = "Idle" | |
| 5593 | if attack == false then | |
| 5594 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
| 5595 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 5596 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),5 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1) | |
| 5597 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1) | |
| 5598 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1) | |
| 5599 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(90 - 4 * math.cos(sine / 45))),.1) | |
| 5600 | end | |
| 5601 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
| 5602 | Anim = "Walk" | |
| 5603 | if attack == false then | |
| 5604 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2) | |
| 5605 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2) | |
| 5606 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,4 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2) | |
| 5607 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2) | |
| 5608 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2) | |
| 5609 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2) | |
| 5610 | end | |
| 5611 | elseif torvel >= 22 and hitfloor ~= nil then | |
| 5612 | Anim = "Run" | |
| 5613 | if attack == false then | |
| 5614 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2) | |
| 5615 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2) | |
| 5616 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,4 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2) | |
| 5617 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2) | |
| 5618 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2) | |
| 5619 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2) | |
| 5620 | end | |
| 5621 | end | |
| 5622 | if Head:FindFirstChild("face") then
| |
| 5623 | Head.face.Texture = "rbxassetid://403870689" | |
| 5624 | end | |
| 5625 | for _, c in pairs(Character:GetChildren()) do | |
| 5626 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
| 5627 | c.Material = "Neon" | |
| 5628 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 5629 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 5630 | end | |
| 5631 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
| 5632 | c:remove() | |
| 5633 | end | |
| 5634 | end | |
| 5635 | end | |
| 5636 | end |