SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --Converted with ttyyuu12345's model to script plugin v4 |
| 1 | + | -- This script has been converted to FE by iPxter |
| 2 | - | function sandbox(var,func) |
| 2 | + | |
| 3 | - | local env = getfenv(func) |
| 3 | + | |
| 4 | - | local newenv = setmetatable({},{
|
| 4 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 5 | - | __index = function(self,k) |
| 5 | + | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
| 6 | - | if k=="script" then |
| 6 | + | do |
| 7 | - | return var |
| 7 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
|
| 8 | script.Parent = Player.Character | |
| 9 | - | return env[k] |
| 9 | + | |
| 10 | --RemoteEvent for communicating | |
| 11 | - | end, |
| 11 | + | local Event = Instance.new("RemoteEvent")
|
| 12 | - | }) |
| 12 | + | Event.Name = "UserInput_Event" |
| 13 | - | setfenv(func,newenv) |
| 13 | + | |
| 14 | - | return func |
| 14 | + | --Fake event to make stuff like Mouse.KeyDown work |
| 15 | local function fakeEvent() | |
| 16 | - | cors = {}
|
| 16 | + | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
|
| 17 | - | mas = Instance.new("Model",game:GetService("Lighting"))
|
| 17 | + | t.connect = t.Connect |
| 18 | - | LocalScript0 = Instance.new("LocalScript")
|
| 18 | + | return t |
| 19 | - | ParticleEmitter1 = Instance.new("ParticleEmitter")
|
| 19 | + | |
| 20 | - | ParticleEmitter2 = Instance.new("ParticleEmitter")
|
| 20 | + | |
| 21 | - | BillboardGui3 = Instance.new("BillboardGui")
|
| 21 | + | --Creating fake input objects with fake variables |
| 22 | - | TextLabel4 = Instance.new("TextLabel")
|
| 22 | + | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 23 | - | TextLabel5 = Instance.new("TextLabel")
|
| 23 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
|
| 24 | - | ParticleEmitter6 = Instance.new("ParticleEmitter")
|
| 24 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
|
| 25 | - | LocalScript7 = Instance.new("LocalScript")
|
| 25 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
|
| 26 | - | NumberValue8 = Instance.new("NumberValue")
|
| 26 | + | end} |
| 27 | - | NumberValue9 = Instance.new("NumberValue")
|
| 27 | + | --Merged 2 functions into one by checking amount of arguments |
| 28 | - | BoolValue10 = Instance.new("BoolValue")
|
| 28 | + | CAS.UnbindAction = CAS.BindAction |
| 29 | - | ParticleEmitter11 = Instance.new("ParticleEmitter")
|
| 29 | + | |
| 30 | - | ParticleEmitter12 = Instance.new("ParticleEmitter")
|
| 30 | + | --This function will trigger the events that have been :Connect()'ed |
| 31 | - | ParticleEmitter13 = Instance.new("ParticleEmitter")
|
| 31 | + | local function te(self,ev,...) |
| 32 | - | ParticleEmitter14 = Instance.new("ParticleEmitter")
|
| 32 | + | local t = m[ev] |
| 33 | - | ParticleEmitter15 = Instance.new("ParticleEmitter")
|
| 33 | + | if t and t._fakeEvent and t.Function then |
| 34 | - | ParticleEmitter16 = Instance.new("ParticleEmitter")
|
| 34 | + | t.Function(...) |
| 35 | - | ParticleEmitter17 = Instance.new("ParticleEmitter")
|
| 35 | + | |
| 36 | - | ParticleEmitter18 = Instance.new("ParticleEmitter")
|
| 36 | + | |
| 37 | - | ParticleEmitter19 = Instance.new("ParticleEmitter")
|
| 37 | + | m.TrigEvent = te |
| 38 | - | ParticleEmitter20 = Instance.new("ParticleEmitter")
|
| 38 | + | UIS.TrigEvent = te |
| 39 | - | Part21 = Instance.new("Part")
|
| 39 | + | |
| 40 | - | SpecialMesh22 = Instance.new("SpecialMesh")
|
| 40 | + | Event.OnServerEvent:Connect(function(plr,io) |
| 41 | - | Folder23 = Instance.new("Folder")
|
| 41 | + | if plr~=Player then return end |
| 42 | - | CharacterMesh24 = Instance.new("CharacterMesh")
|
| 42 | + | if io.isMouse then |
| 43 | - | CharacterMesh25 = Instance.new("CharacterMesh")
|
| 43 | + | m.Target = io.Target |
| 44 | - | CharacterMesh26 = Instance.new("CharacterMesh")
|
| 44 | + | m.Hit = io.Hit |
| 45 | - | CharacterMesh27 = Instance.new("CharacterMesh")
|
| 45 | + | |
| 46 | - | CharacterMesh28 = Instance.new("CharacterMesh")
|
| 46 | + | local b = io.UserInputState == Enum.UserInputState.Begin |
| 47 | - | Part29 = Instance.new("Part")
|
| 47 | + | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
| 48 | - | SpecialMesh30 = Instance.new("SpecialMesh")
|
| 48 | + | return m:TrigEvent(b and "Button1Down" or "Button1Up") |
| 49 | - | LocalScript0.Name = "Dark Emperor" |
| 49 | + | |
| 50 | - | LocalScript0.Parent = mas |
| 50 | + | for _,t in pairs(CAS.Actions) do |
| 51 | - | table.insert(cors,sandbox(LocalScript0,function() |
| 51 | + | for _,k in pairs(t.Keys) do |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | - | Player = game:GetService("Players").LocalPlayer
|
| 58 | + | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | - | Mouse = Player:GetMouse() |
| 66 | + | local input = function(io,a) |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | ||
| 88 | --//====================================================\\-- | |
| 89 | --|| CREATED BY SHACKLUSTER | |
| 90 | --\\====================================================//-- | |
| 91 | ||
| 92 | wait(1) | |
| 93 | ||
| 94 | Player = owner | |
| 95 | PlayerGui = Player.PlayerGui | |
| 96 | Cam = workspace.CurrentCamera | |
| 97 | Backpack = Player.Backpack | |
| 98 | repeat wait() until Player.Character | |
| 99 | Character = Player.Character | |
| 100 | repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid")
| |
| 101 | Humanoid = Character:FindFirstChildOfClass("Humanoid")
| |
| 102 | RootPart = Character["HumanoidRootPart"] | |
| 103 | Torso = Character["Torso"] | |
| 104 | Head = Character["Head"] | |
| 105 | RightArm = Character["Right Arm"] | |
| 106 | LeftArm = Character["Left Arm"] | |
| 107 | RightLeg = Character["Right Leg"] | |
| 108 | LeftLeg = Character["Left Leg"] | |
| 109 | RootJoint = RootPart["RootJoint"] | |
| 110 | Neck = Torso["Neck"] | |
| 111 | RightShoulder = Torso["Right Shoulder"] | |
| 112 | LeftShoulder = Torso["Left Shoulder"] | |
| 113 | RightHip = Torso["Right Hip"] | |
| 114 | LeftHip = Torso["Left Hip"] | |
| 115 | ||
| 116 | IT = Instance.new | |
| 117 | CF = CFrame.new | |
| 118 | VT = Vector3.new | |
| 119 | RAD = math.rad | |
| 120 | C3 = Color3.new | |
| 121 | UD2 = UDim2.new | |
| 122 | BRICKC = BrickColor.new | |
| 123 | ANGLES = CFrame.Angles | |
| 124 | EULER = CFrame.fromEulerAnglesXYZ | |
| 125 | COS = math.cos | |
| 126 | ACOS = math.acos | |
| 127 | SIN = math.sin | |
| 128 | ASIN = math.asin | |
| 129 | ABS = math.abs | |
| 130 | MRANDOM = math.random | |
| 131 | FLOOR = math.floor | |
| 132 | ||
| 133 | --//=================================\\ | |
| 134 | --|| USEFUL VALUES | |
| 135 | --\\=================================// | |
| 136 | ||
| 137 | Animation_Speed = 3 | |
| 138 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
| 139 | local Speed = 16 | |
| 140 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 141 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
| 142 | local RIGHTSHOULDERC0 = CF(-0.5, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
| 143 | local LEFTSHOULDERC0 = CF(0.5, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
| 144 | local DAMAGEMULTIPLIER = 1 | |
| 145 | local ANIM = "Idle" | |
| 146 | local ATTACK = false | |
| 147 | local EQUIPPED = false | |
| 148 | local HOLD = false | |
| 149 | local COMBO = 1 | |
| 150 | local Rooted = false | |
| 151 | local SINE = 0 | |
| 152 | local KEYHOLD = false | |
| 153 | local CHANGE = 2 / Animation_Speed | |
| 154 | local WALKINGANIM = false | |
| 155 | local VALUE1 = false | |
| 156 | local VALUE2 = false | |
| 157 | local ROBLOXIDLEANIMATION = IT("Animation")
| |
| 158 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
| 159 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 160 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
| 161 | local WEAPONGUI = IT("ScreenGui", PlayerGui)
| |
| 162 | WEAPONGUI.Name = "Weapon GUI" | |
| 163 | local Effects = IT("Folder", Character)
| |
| 164 | Effects.Name = "Effects" | |
| 165 | local SpecialEffects = IT("Folder", Character)
| |
| 166 | SpecialEffects.Name = "SpecialEffects" | |
| 167 | local ANIMATOR = Humanoid.Animator | |
| 168 | local ANIMATE = Character.Animate | |
| 169 | local UNANCHOR = true | |
| 170 | local REGENRATE = 1 | |
| 171 | local FULLREGEN = false | |
| 172 | local POSEIDON = false | |
| 173 | local EXPLOSIONSMALLSOUND = 439342426 | |
| 174 | local EXPLOSIONMEDIUMSOUND = 605005842 | |
| 175 | local EXPLOSIONLARGESOUND = 565538688 | |
| 176 | local CHARGE = 278641993 | |
| 177 | local POSEIDONSOUND = 374289727 | |
| 178 | local FIREBALLSOUND = 414517770 | |
| 179 | local BURNSOUND = 565777213 | |
| 180 | local FIREFIELD = false | |
| 181 | local SEARING = false | |
| 182 | local BODYPOS = nil | |
| 183 | local GYRO = nil | |
| 184 | local DIRECTTURN = false | |
| 185 | local APPLYGYRO = true | |
| 186 | local SONGS = {448290268,285883918,562367125,720006240,1604593557,306586318}
| |
| 187 | local CHOSENSONG = MRANDOM(1,#SONGS) | |
| 188 | ||
| 189 | --//=================================\\ | |
| 190 | --\\=================================// | |
| 191 | ||
| 192 | ||
| 193 | --//=================================\\ | |
| 194 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
| 195 | --\\=================================// | |
| 196 | ||
| 197 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 198 | ArtificialHB.Name = "ArtificialHB" | |
| 199 | ||
| 200 | script:WaitForChild("ArtificialHB")
| |
| 201 | ||
| 202 | frame = Frame_Speed | |
| 203 | tf = 0 | |
| 204 | allowframeloss = false | |
| 205 | tossremainder = false | |
| 206 | lastframe = tick() | |
| 207 | script.ArtificialHB:Fire() | |
| 208 | ||
| 209 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 210 | tf = tf + s | |
| 211 | if tf >= frame then | |
| 212 | if allowframeloss then | |
| 213 | script.ArtificialHB:Fire() | |
| 214 | lastframe = tick() | |
| 215 | else | |
| 216 | for i = 1, math.floor(tf / frame) do | |
| 217 | script.ArtificialHB:Fire() | |
| 218 | end | |
| 219 | lastframe = tick() | |
| 220 | end | |
| 221 | if tossremainder then | |
| 222 | tf = 0 | |
| 223 | else | |
| 224 | tf = tf - frame * math.floor(tf / frame) | |
| 225 | end | |
| 226 | end | |
| 227 | end) | |
| 228 | ||
| 229 | --//=================================\\ | |
| 230 | --\\=================================// | |
| 231 | ||
| 232 | --//=================================\\ | |
| 233 | --|| SOME FUNCTIONS | |
| 234 | --\\=================================// | |
| 235 | ||
| 236 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 237 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 238 | end | |
| 239 | ||
| 240 | function PositiveAngle(NUMBER) | |
| 241 | if NUMBER >= 0 then | |
| 242 | NUMBER = 0 | |
| 243 | end | |
| 244 | return NUMBER | |
| 245 | end | |
| 246 | ||
| 247 | function NegativeAngle(NUMBER) | |
| 248 | if NUMBER <= 0 then | |
| 249 | NUMBER = 0 | |
| 250 | end | |
| 251 | return NUMBER | |
| 252 | end | |
| 253 | ||
| 254 | function Swait(NUMBER) | |
| 255 | if NUMBER == 0 or NUMBER == nil then | |
| 256 | ArtificialHB.Event:wait() | |
| 257 | else | |
| 258 | for i = 1, NUMBER do | |
| 259 | ArtificialHB.Event:wait() | |
| 260 | end | |
| 261 | end | |
| 262 | end | |
| 263 | ||
| 264 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 265 | local NEWMESH = IT(MESH) | |
| 266 | if MESH == "SpecialMesh" then | |
| 267 | NEWMESH.MeshType = MESHTYPE | |
| 268 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 269 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 270 | end | |
| 271 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 272 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 273 | end | |
| 274 | end | |
| 275 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 276 | NEWMESH.Scale = SCALE | |
| 277 | NEWMESH.Parent = PARENT | |
| 278 | return NEWMESH | |
| 279 | end | |
| 280 | ||
| 281 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
| 282 | local NEWPART = IT("Part")
| |
| 283 | NEWPART.formFactor = FORMFACTOR | |
| 284 | NEWPART.Reflectance = REFLECTANCE | |
| 285 | NEWPART.Transparency = TRANSPARENCY | |
| 286 | NEWPART.CanCollide = false | |
| 287 | NEWPART.Locked = true | |
| 288 | NEWPART.Anchored = true | |
| 289 | if ANCHOR == false then | |
| 290 | NEWPART.Anchored = false | |
| 291 | end | |
| 292 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 293 | NEWPART.Name = NAME | |
| 294 | NEWPART.Size = SIZE | |
| 295 | NEWPART.Position = Torso.Position | |
| 296 | NEWPART.Material = MATERIAL | |
| 297 | NEWPART:BreakJoints() | |
| 298 | NEWPART.Parent = PARENT | |
| 299 | return NEWPART | |
| 300 | end | |
| 301 | ||
| 302 | local function weldBetween(a, b) | |
| 303 | local weldd = Instance.new("ManualWeld")
| |
| 304 | weldd.Part0 = a | |
| 305 | weldd.Part1 = b | |
| 306 | weldd.C0 = CFrame.new() | |
| 307 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 308 | weldd.Parent = a | |
| 309 | return weldd | |
| 310 | end | |
| 311 | ||
| 312 | ||
| 313 | function QuaternionFromCFrame(cf) | |
| 314 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 315 | local trace = m00 + m11 + m22 | |
| 316 | if trace > 0 then | |
| 317 | local s = math.sqrt(1 + trace) | |
| 318 | local recip = 0.5 / s | |
| 319 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 320 | else | |
| 321 | local i = 0 | |
| 322 | if m11 > m00 then | |
| 323 | i = 1 | |
| 324 | end | |
| 325 | if m22 > (i == 0 and m00 or m11) then | |
| 326 | i = 2 | |
| 327 | end | |
| 328 | if i == 0 then | |
| 329 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 330 | local recip = 0.5 / s | |
| 331 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 332 | elseif i == 1 then | |
| 333 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 334 | local recip = 0.5 / s | |
| 335 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 336 | elseif i == 2 then | |
| 337 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 338 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 339 | end | |
| 340 | end | |
| 341 | end | |
| 342 | ||
| 343 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 344 | local xs, ys, zs = x + x, y + y, z + z | |
| 345 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 346 | local xx = x * xs | |
| 347 | local xy = x * ys | |
| 348 | local xz = x * zs | |
| 349 | local yy = y * ys | |
| 350 | local yz = y * zs | |
| 351 | local zz = z * zs | |
| 352 | 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)) | |
| 353 | end | |
| 354 | ||
| 355 | function QuaternionSlerp(a, b, t) | |
| 356 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 357 | local startInterp, finishInterp; | |
| 358 | if cosTheta >= 0.0001 then | |
| 359 | if (1 - cosTheta) > 0.0001 then | |
| 360 | local theta = ACOS(cosTheta) | |
| 361 | local invSinTheta = 1 / SIN(theta) | |
| 362 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 363 | finishInterp = SIN(t * theta) * invSinTheta | |
| 364 | else | |
| 365 | startInterp = 1 - t | |
| 366 | finishInterp = t | |
| 367 | end | |
| 368 | else | |
| 369 | if (1 + cosTheta) > 0.0001 then | |
| 370 | local theta = ACOS(-cosTheta) | |
| 371 | local invSinTheta = 1 / SIN(theta) | |
| 372 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 373 | finishInterp = SIN(t * theta) * invSinTheta | |
| 374 | else | |
| 375 | startInterp = t - 1 | |
| 376 | finishInterp = t | |
| 377 | end | |
| 378 | end | |
| 379 | 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 | |
| 380 | end | |
| 381 | ||
| 382 | function Clerp(a, b, t) | |
| 383 | local qa = {QuaternionFromCFrame(a)}
| |
| 384 | local qb = {QuaternionFromCFrame(b)}
| |
| 385 | local ax, ay, az = a.x, a.y, a.z | |
| 386 | local bx, by, bz = b.x, b.y, b.z | |
| 387 | local _t = 1 - t | |
| 388 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
| 389 | end | |
| 390 | ||
| 391 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
| 392 | local frame = IT("Frame")
| |
| 393 | frame.BackgroundTransparency = TRANSPARENCY | |
| 394 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
| 395 | frame.Position = POSITION | |
| 396 | frame.Size = SIZE | |
| 397 | frame.BackgroundColor3 = COLOR | |
| 398 | frame.BorderColor3 = BORDERCOLOR | |
| 399 | frame.Name = NAME | |
| 400 | frame.Parent = PARENT | |
| 401 | return frame | |
| 402 | end | |
| 403 | ||
| 404 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
| 405 | local label = IT("TextLabel")
| |
| 406 | label.BackgroundTransparency = 1 | |
| 407 | label.Size = UD2(1, 0, 1, 0) | |
| 408 | label.Position = UD2(0, 0, 0, 0) | |
| 409 | label.TextColor3 = TEXTCOLOR | |
| 410 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
| 411 | label.TextTransparency = TRANSPARENCY | |
| 412 | label.FontSize = TEXTFONTSIZE | |
| 413 | label.Font = TEXTFONT | |
| 414 | label.BorderSizePixel = BORDERSIZEPIXEL | |
| 415 | label.TextScaled = false | |
| 416 | label.Text = TEXT | |
| 417 | label.Name = NAME | |
| 418 | label.Parent = PARENT | |
| 419 | return label | |
| 420 | end | |
| 421 | ||
| 422 | function NoOutlines(PART) | |
| 423 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 424 | end | |
| 425 | ||
| 426 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
| 427 | local NEWWELD = IT(TYPE) | |
| 428 | NEWWELD.Part0 = PART0 | |
| 429 | NEWWELD.Part1 = PART1 | |
| 430 | NEWWELD.C0 = C0 | |
| 431 | NEWWELD.C1 = C1 | |
| 432 | NEWWELD.Parent = PARENT | |
| 433 | return NEWWELD | |
| 434 | end | |
| 435 | ||
| 436 | local S = IT("Sound")
| |
| 437 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
| 438 | local NEWSOUND = nil | |
| 439 | coroutine.resume(coroutine.create(function() | |
| 440 | NEWSOUND = S:Clone() | |
| 441 | NEWSOUND.Parent = PARENT | |
| 442 | NEWSOUND.Volume = VOLUME | |
| 443 | NEWSOUND.Pitch = PITCH | |
| 444 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
| 445 | NEWSOUND:play() | |
| 446 | if DOESLOOP == true then | |
| 447 | NEWSOUND.Looped = true | |
| 448 | else | |
| 449 | repeat wait(1) until NEWSOUND.Playing == false | |
| 450 | NEWSOUND:remove() | |
| 451 | end | |
| 452 | end)) | |
| 453 | return NEWSOUND | |
| 454 | end | |
| 455 | ||
| 456 | function CFrameFromTopBack(at, top, back) | |
| 457 | local right = top:Cross(back) | |
| 458 | 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) | |
| 459 | end | |
| 460 | ||
| 461 | --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})
| |
| 462 | function WACKYEFFECT(Table) | |
| 463 | local TYPE = (Table.EffectType or "Sphere") | |
| 464 | local SIZE = (Table.Size or VT(1,1,1)) | |
| 465 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
| 466 | local TRANSPARENCY = (Table.Transparency or 0) | |
| 467 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
| 468 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
| 469 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
| 470 | local ROTATION1 = (Table.RotationX or 0) | |
| 471 | local ROTATION2 = (Table.RotationY or 0) | |
| 472 | local ROTATION3 = (Table.RotationZ or 0) | |
| 473 | local MATERIAL = (Table.Material or "Neon") | |
| 474 | local COLOR = (Table.Color or C3(1,1,1)) | |
| 475 | local TIME = (Table.Time or 45) | |
| 476 | local SOUNDID = (Table.SoundID or nil) | |
| 477 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
| 478 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
| 479 | coroutine.resume(coroutine.create(function() | |
| 480 | local PLAYSSOUND = false | |
| 481 | local SOUND = nil | |
| 482 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
| |
| 483 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
| 484 | PLAYSSOUND = true | |
| 485 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
| 486 | end | |
| 487 | EFFECT.Color = COLOR | |
| 488 | local MSH = nil | |
| 489 | if TYPE == "Sphere" then | |
| 490 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
| |
| 491 | elseif TYPE == "Block" then | |
| 492 | MSH = IT("BlockMesh",EFFECT)
| |
| 493 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
| 494 | elseif TYPE == "Wave" then | |
| 495 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
| |
| 496 | elseif TYPE == "Ring" then | |
| 497 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
| |
| 498 | elseif TYPE == "Slash" then | |
| 499 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 500 | elseif TYPE == "Round Slash" then | |
| 501 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
| |
| 502 | elseif TYPE == "Swirl" then | |
| 503 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
| |
| 504 | elseif TYPE == "Skull" then | |
| 505 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
| |
| 506 | elseif TYPE == "Crystal" then | |
| 507 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
| |
| 508 | end | |
| 509 | if MSH ~= nil then | |
| 510 | local MOVESPEED = nil | |
| 511 | if MOVEDIRECTION ~= nil then | |
| 512 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
| 513 | end | |
| 514 | local GROWTH = SIZE - ENDSIZE | |
| 515 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
| 516 | if TYPE == "Block" then | |
| 517 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 518 | else | |
| 519 | EFFECT.CFrame = CFRAME | |
| 520 | end | |
| 521 | for LOOP = 1, TIME+1 do | |
| 522 | Swait() | |
| 523 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
| 524 | if TYPE == "Wave" then | |
| 525 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
| 526 | end | |
| 527 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
| 528 | if TYPE == "Block" then | |
| 529 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
| 530 | else | |
| 531 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
| 532 | end | |
| 533 | if MOVEDIRECTION ~= nil then | |
| 534 | local ORI = EFFECT.Orientation | |
| 535 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
| 536 | EFFECT.Orientation = ORI | |
| 537 | end | |
| 538 | end | |
| 539 | if PLAYSSOUND == false then | |
| 540 | EFFECT:remove() | |
| 541 | else | |
| 542 | repeat Swait() until SOUND.Playing == false | |
| 543 | EFFECT:remove() | |
| 544 | end | |
| 545 | else | |
| 546 | if PLAYSSOUND == false then | |
| 547 | EFFECT:remove() | |
| 548 | else | |
| 549 | repeat Swait() until SOUND.Playing == false | |
| 550 | EFFECT:remove() | |
| 551 | end | |
| 552 | end | |
| 553 | end)) | |
| 554 | end | |
| 555 | ||
| 556 | function MakeForm(PART,TYPE) | |
| 557 | if TYPE == "Cyl" then | |
| 558 | local MSH = IT("CylinderMesh",PART)
| |
| 559 | elseif TYPE == "Ball" then | |
| 560 | local MSH = IT("SpecialMesh",PART)
| |
| 561 | MSH.MeshType = "Sphere" | |
| 562 | elseif TYPE == "Wedge" then | |
| 563 | local MSH = IT("SpecialMesh",PART)
| |
| 564 | MSH.MeshType = "Wedge" | |
| 565 | end | |
| 566 | end | |
| 567 | ||
| 568 | Debris = game:GetService("Debris")
| |
| 569 | ||
| 570 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
| 571 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
| 572 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
| |
| 573 | end | |
| 574 | ||
| 575 | function Particles(Which,Parent,Enabled) | |
| 576 | if script:FindFirstChild(Which) then | |
| 577 | local PARTICLES = script:FindFirstChild(Which):Clone() | |
| 578 | PARTICLES.Parent = Parent | |
| 579 | PARTICLES.Name = "CurseParticles" | |
| 580 | if Enabled ~= true then | |
| 581 | PARTICLES:Emit(Enabled) | |
| 582 | Debris:AddItem(PARTICLES,10) | |
| 583 | else | |
| 584 | PARTICLES.Enabled = true | |
| 585 | return PARTICLES | |
| 586 | end | |
| 587 | end | |
| 588 | end | |
| 589 | ||
| 590 | --//=================================\\ | |
| 591 | --|| WEAPON CREATION | |
| 592 | --\\=================================// | |
| 593 | ||
| 594 | local GUI = script.NameGui | |
| 595 | GUI.Parent = RootPart | |
| 596 | GUI.PlayerToHideFrom = Player | |
| 597 | Humanoid.DisplayDistanceType = "None" | |
| 598 | GUI.Enabled = true | |
| 599 | local Pauldrons = script.Pauldrons | |
| 600 | Pauldrons.Parent = Character | |
| 601 | Pauldrons.CFrame = Torso.CFrame | |
| 602 | local WELD = weldBetween(Torso,Pauldrons) | |
| 603 | Pauldrons.Anchored = false | |
| 604 | Pauldrons.Transparency = 0 | |
| 605 | local FLINTLOCK = script.Flintlock | |
| 606 | FLINTLOCK.Parent = Character | |
| 607 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, FLINTLOCK, CF(1,-1.5,0) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
| |
| 608 | ||
| 609 | local REGENSOUND = 487215897 | |
| 610 | for _, c in pairs(Character:GetDescendants()) do | |
| 611 | if c and c.Parent then | |
| 612 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
| 613 | local ACCESSORY = c.Parent | |
| 614 | c.Parent = Character | |
| 615 | if c then | |
| 616 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
| |
| 617 | weldBetween(Head,c) | |
| 618 | else | |
| 619 | weldBetween(Torso,c) | |
| 620 | end | |
| 621 | end | |
| 622 | ACCESSORY:remove() | |
| 623 | end | |
| 624 | end | |
| 625 | end | |
| 626 | wait() | |
| 627 | local BODY = {}
| |
| 628 | for _, c in pairs(Character:GetDescendants()) do | |
| 629 | if c:IsA("BasePart") then
| |
| 630 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 631 | end | |
| 632 | local REGENVALUE = IT("BoolValue",c)
| |
| 633 | REGENVALUE.Name = "IsRegening" | |
| 634 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
| |
| 635 | elseif c:IsA("JointInstance") and c.Name ~= "AccessoryWeld" then
| |
| 636 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil,nil})
| |
| 637 | end | |
| 638 | end | |
| 639 | function FullBodyRegen() | |
| 640 | if FULLREGEN == false then | |
| 641 | FULLREGEN = true | |
| 642 | Character.Parent = workspace | |
| 643 | GUI.Enabled = false | |
| 644 | CreateSound(FIREBALLSOUND,Torso,3,MRANDOM(10,12)/10,false) | |
| 645 | UNANCHOR = false | |
| 646 | for e = 1, #BODY do | |
| 647 | if BODY[e] ~= nil then | |
| 648 | local STUFF = BODY[e] | |
| 649 | local PART = STUFF[1] | |
| 650 | local PARENT = STUFF[2] | |
| 651 | local MATERIAL = STUFF[3] | |
| 652 | local COLOR = STUFF[4] | |
| 653 | local TRANSPARENCY = STUFF[5] | |
| 654 | --local SIZE = STUFF[6] | |
| 655 | local NAME = STUFF[7] | |
| 656 | local VALUE = STUFF[8] | |
| 657 | PART.Parent = PARENT | |
| 658 | Humanoid.MaxHealth = "inf" | |
| 659 | Humanoid.Health = "inf" | |
| 660 | Humanoid.Parent = nil | |
| 661 | Humanoid = IT("Humanoid",Character)
| |
| 662 | Humanoid.Died:Connect(FullBodyRegen) | |
| 663 | PART.Parent = PARENT | |
| 664 | if PART:IsA("BasePart") and VALUE.Value == false and PART ~= RootPart then
| |
| 665 | VALUE.Value = true | |
| 666 | coroutine.resume(coroutine.create(function() | |
| 667 | PART.Transparency = 1 | |
| 668 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/15,false) | |
| 669 | local REGEN = script.Regen:Clone() | |
| 670 | REGEN.Parent = PART | |
| 671 | REGEN.Speed = NumberRange.new(30) | |
| 672 | REGEN:Emit(100) | |
| 673 | local REGENING = script.Regen2:Clone() | |
| 674 | REGENING.Parent = PART | |
| 675 | REGENING.Enabled = true | |
| 676 | REGENING.Speed = NumberRange.new(35) | |
| 677 | wait() | |
| 678 | local RANGE = 35 | |
| 679 | for i = 1, math.ceil(REGENRATE*25) do | |
| 680 | wait() | |
| 681 | ApplyAoE(PART.Position,6,1,1,0,false) | |
| 682 | REGENING.Speed = NumberRange.new(RANGE) | |
| 683 | RANGE = RANGE - (35/(math.ceil(REGENRATE*20))) | |
| 684 | end | |
| 685 | REGEN.Speed = NumberRange.new(6) | |
| 686 | REGEN:Emit(60) | |
| 687 | wait(REGENRATE/3) | |
| 688 | RootPart.Velocity = VT(0,0,0) | |
| 689 | UNANCHOR = true | |
| 690 | GUI.Enabled = true | |
| 691 | PART.Transparency = 0 | |
| 692 | REGEN.Rate = 50 | |
| 693 | REGEN.Enabled = true | |
| 694 | REGENING.Enabled = false | |
| 695 | wait(REGENRATE/1.5) | |
| 696 | VALUE.Value = false | |
| 697 | Debris:AddItem(REGENING,5) | |
| 698 | FULLREGEN = false | |
| 699 | REGEN.Enabled = false | |
| 700 | Debris:AddItem(REGEN,5) | |
| 701 | end)) | |
| 702 | end | |
| 703 | end | |
| 704 | end | |
| 705 | end | |
| 706 | end | |
| 707 | function Regen() | |
| 708 | Character.Parent = workspace | |
| 709 | for e = 1, #BODY do | |
| 710 | if BODY[e] ~= nil then | |
| 711 | local STUFF = BODY[e] | |
| 712 | local PART = STUFF[1] | |
| 713 | local PARENT = STUFF[2] | |
| 714 | local MATERIAL = STUFF[3] | |
| 715 | local COLOR = STUFF[4] | |
| 716 | local TRANSPARENCY = STUFF[5] | |
| 717 | --local SIZE = STUFF[6] | |
| 718 | local NAME = STUFF[7] | |
| 719 | local VALUE = STUFF[8] | |
| 720 | if PART.ClassName == "Part" and PART ~= RootPart then | |
| 721 | PART.Material = MATERIAL | |
| 722 | PART.Name = NAME | |
| 723 | end | |
| 724 | if PART.Parent ~= PARENT then | |
| 725 | PART.Parent = PARENT | |
| 726 | if PART:IsA("BasePart") and PART ~= RootPart and FULLREGEN == false then
| |
| 727 | if VALUE.Value == false then | |
| 728 | VALUE.Value = true | |
| 729 | coroutine.resume(coroutine.create(function() | |
| 730 | PART.Transparency = 1 | |
| 731 | wait(REGENRATE) | |
| 732 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false) | |
| 733 | local REGENING = script.Regen:Clone() | |
| 734 | REGENING.Parent = PART | |
| 735 | REGENING.Enabled = true | |
| 736 | for i = 1, math.ceil(REGENRATE*10) do | |
| 737 | wait() | |
| 738 | ApplyAoE(PART.Position,6,1,1,0,false) | |
| 739 | end | |
| 740 | wait(REGENRATE) | |
| 741 | PART.Transparency = 0 | |
| 742 | wait(REGENRATE/5) | |
| 743 | REGENING.Enabled = false | |
| 744 | VALUE.Value = false | |
| 745 | Debris:AddItem(REGENING,5) | |
| 746 | end)) | |
| 747 | end | |
| 748 | elseif PART:IsA("JointInstance") and PARENT ~= RootPart and FULLREGEN == false then
| |
| 749 | local VALUE = PARENT.IsRegening | |
| 750 | if VALUE == false then | |
| 751 | VALUE.Value = true | |
| 752 | local PART = PART.Part1 | |
| 753 | coroutine.resume(coroutine.create(function() | |
| 754 | PART.Transparency = 1 | |
| 755 | wait(REGENRATE) | |
| 756 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false) | |
| 757 | local REGENING = script.Regen:Clone() | |
| 758 | REGENING.Parent = PART | |
| 759 | REGENING.Enabled = true | |
| 760 | for i = 1, math.ceil(REGENRATE*10) do | |
| 761 | wait() | |
| 762 | ApplyAoE(PART.Position,6,1,1,0,false) | |
| 763 | end | |
| 764 | wait(REGENRATE) | |
| 765 | PART.Transparency = 0 | |
| 766 | wait(REGENRATE/5) | |
| 767 | REGENING.Enabled = false | |
| 768 | VALUE.Value = false | |
| 769 | end)) | |
| 770 | end | |
| 771 | end | |
| 772 | end | |
| 773 | end | |
| 774 | end | |
| 775 | end | |
| 776 | ||
| 777 | for _, c in pairs(script.Package:GetChildren()) do | |
| 778 | c.Parent = Character | |
| 779 | end | |
| 780 | ||
| 781 | local b = IT("BodyForce",RootPart)
| |
| 782 | b.Name = "LowGrav" | |
| 783 | b.force = Vector3.new(0,1500,0) | |
| 784 | ||
| 785 | local SKILLTEXTCOLOR = C3(0,0,0) | |
| 786 | local SKILLFONT = "Fantasy" | |
| 787 | local SKILLTEXTSIZE = 7 | |
| 788 | ||
| 789 | local BACKATTACHMENT1 = IT("Attachment",Torso)
| |
| 790 | BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75) | |
| 791 | local BACKATTACHMENT2 = IT("Attachment",Torso)
| |
| 792 | BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75) | |
| 793 | ||
| 794 | Humanoid.Died:Connect(FullBodyRegen) | |
| 795 | ||
| 796 | --//=================================\\ | |
| 797 | --|| DAMAGING | |
| 798 | --\\=================================// | |
| 799 | ||
| 800 | function ApplyDamage(Humanoid,Damage) | |
| 801 | if Humanoid.Health == math.huge then | |
| 802 | Humanoid.Parent:BreakJoints() | |
| 803 | else | |
| 804 | local MULTIPLY = Humanoid.MaxHealth/100 | |
| 805 | Damage = Damage * DAMAGEMULTIPLIER | |
| 806 | if Humanoid.Health ~= 0 then | |
| 807 | Humanoid.Health = Humanoid.Health - Damage*MULTIPLY | |
| 808 | end | |
| 809 | end | |
| 810 | end | |
| 811 | ||
| 812 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,CAMSINSTAKILL,INSTAKILL) | |
| 813 | local CHILDREN = workspace:GetDescendants() | |
| 814 | for index, CHILD in pairs(CHILDREN) do | |
| 815 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
| 816 | local HUM = CHILD:FindFirstChildOfClass("Humanoid")
| |
| 817 | if HUM then | |
| 818 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
| |
| 819 | if TORSO then | |
| 820 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
| 821 | if INSTAKILL == true or HUM.MaxHealth == math.huge then | |
| 822 | CHILD:BreakJoints() | |
| 823 | else | |
| 824 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
| 825 | ApplyDamage(HUM,DMG) | |
| 826 | end | |
| 827 | if FLING > 0 then | |
| 828 | for _, c in pairs(CHILD:GetChildren()) do | |
| 829 | if c:IsA("BasePart") then
| |
| 830 | local bv = Instance.new("BodyVelocity")
| |
| 831 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 832 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
| 833 | bv.Parent = c | |
| 834 | Debris:AddItem(bv,0.05) | |
| 835 | end | |
| 836 | end | |
| 837 | end | |
| 838 | end | |
| 839 | end | |
| 840 | end | |
| 841 | end | |
| 842 | end | |
| 843 | end | |
| 844 | ||
| 845 | --//=================================\\ | |
| 846 | --|| ATTACK FUNCTIONS AND STUFF | |
| 847 | --\\=================================// | |
| 848 | ||
| 849 | function Fireball() | |
| 850 | ATTACK = true | |
| 851 | Rooted = true | |
| 852 | local GYRO = IT("BodyGyro",RootPart)
| |
| 853 | GYRO.D = 20 | |
| 854 | GYRO.P = 4000 | |
| 855 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 856 | local POSITION = IT("BodyPosition",RootPart)
| |
| 857 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 858 | POSITION.D = 450 | |
| 859 | POSITION.P = 40000 | |
| 860 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 861 | local FIRE = Particles("FistFire",RightArm,true)
| |
| 862 | CreateSound(CHARGE,RightArm,6,1,false) | |
| 863 | coroutine.resume(coroutine.create(function() | |
| 864 | repeat | |
| 865 | Swait() | |
| 866 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 867 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 868 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 869 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 870 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 871 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 872 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 873 | until ATTACK == false | |
| 874 | FIRE.LockedToPart = false | |
| 875 | FIRE.Enabled = false | |
| 876 | Debris:AddItem(FIRE,5) | |
| 877 | GYRO:remove() | |
| 878 | POSITION:remove() | |
| 879 | end)) | |
| 880 | wait(1) | |
| 881 | repeat | |
| 882 | Particles("ExplosionFire1",RightArm,70)
| |
| 883 | coroutine.resume(coroutine.create(function() | |
| 884 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10,10,10)) | |
| 885 | FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
| 886 | CreateSound(FIREBALLSOUND,FIREBALL,6,1,false) | |
| 887 | local FLAME = Particles("FireballFire1",FIREBALL,true)
| |
| 888 | local FLAME2 = Particles("FireballFire2",FIREBALL,true)
| |
| 889 | for i = 1, 250 do | |
| 890 | Swait() | |
| 891 | local HIT,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 10, Character) | |
| 892 | FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-5) | |
| 893 | if HIT then | |
| 894 | Particles("ExplosionFire1",FIREBALL,600)
| |
| 895 | ApplyAoE(FIREBALL.Position,200,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 896 | for i = 1, 3 do | |
| 897 | WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 898 | end | |
| 899 | for i = 1, 3 do | |
| 900 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 901 | end | |
| 902 | for i = 1, 5 do | |
| 903 | WACKYEFFECT({Time = 80+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 904 | end | |
| 905 | break | |
| 906 | end | |
| 907 | end | |
| 908 | FLAME.Enabled = false | |
| 909 | FLAME2.Enabled = false | |
| 910 | Debris:AddItem(FIREBALL,7) | |
| 911 | end)) | |
| 912 | wait(0.1) | |
| 913 | until KEYHOLD == false | |
| 914 | wait(0.2) | |
| 915 | ATTACK = false | |
| 916 | Rooted = false | |
| 917 | end | |
| 918 | ||
| 919 | function FireField() | |
| 920 | ATTACK = true | |
| 921 | Rooted = true | |
| 922 | local A = false | |
| 923 | local POSITION = IT("BodyPosition",RootPart)
| |
| 924 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 925 | POSITION.D = 450 | |
| 926 | POSITION.P = 40000 | |
| 927 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 928 | coroutine.resume(coroutine.create(function() | |
| 929 | repeat | |
| 930 | Swait() | |
| 931 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 932 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 933 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.85, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 934 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 935 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 936 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 937 | until A == true | |
| 938 | repeat | |
| 939 | Swait() | |
| 940 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 941 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 942 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 943 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.4, -0.3) * ANGLES(RAD(170), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 944 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 945 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(45), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 946 | until ATTACK == false | |
| 947 | POSITION:remove() | |
| 948 | end)) | |
| 949 | local RANGE = 75 | |
| 950 | local REGENING = script.Regen2:Clone() | |
| 951 | REGENING.Parent = Torso | |
| 952 | REGENING.Enabled = true | |
| 953 | REGENING.Rate = 900 | |
| 954 | REGENING.Speed = NumberRange.new(RANGE) | |
| 955 | wait() | |
| 956 | for i = 1, 75 do | |
| 957 | wait() | |
| 958 | ApplyAoE(Torso.Position,6,1,1,0,false) | |
| 959 | REGENING.Speed = NumberRange.new(RANGE) | |
| 960 | RANGE = RANGE - (75/(math.ceil(REGENRATE*75))) | |
| 961 | end | |
| 962 | REGENING.Enabled = false | |
| 963 | wait(0.5) | |
| 964 | for i = 1, 6 do | |
| 965 | WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 966 | end | |
| 967 | CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false) | |
| 968 | A = true | |
| 969 | local FLAME = Particles("Field",Torso,true)
| |
| 970 | FLAME.Size = NumberSequence.new(0,25) | |
| 971 | FIREFIELD = true | |
| 972 | local SOUND = CreateSound(BURNSOUND,Torso,10,1,true) | |
| 973 | coroutine.resume(coroutine.create(function() | |
| 974 | for i = 1, 20 do | |
| 975 | wait(1) | |
| 976 | SOUND.Parent = Torso | |
| 977 | SOUND.Playing = true | |
| 978 | ApplyAoE(Torso.Position,100,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 979 | for i = 1, 2 do | |
| 980 | WACKYEFFECT({Time = 20+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(30,30,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 981 | end | |
| 982 | if SEARING == true then | |
| 983 | break | |
| 984 | end | |
| 985 | end | |
| 986 | FIREFIELD = false | |
| 987 | FLAME.Enabled = false | |
| 988 | Debris:AddItem(FLAME,5) | |
| 989 | SOUND:remove() | |
| 990 | end)) | |
| 991 | wait(1) | |
| 992 | ATTACK = false | |
| 993 | Rooted = false | |
| 994 | end | |
| 995 | ||
| 996 | function SearingForm() | |
| 997 | ATTACK = true | |
| 998 | Rooted = true | |
| 999 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1000 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1001 | POSITION.D = 450 | |
| 1002 | POSITION.P = 40000 | |
| 1003 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1004 | coroutine.resume(coroutine.create(function() | |
| 1005 | repeat | |
| 1006 | Swait() | |
| 1007 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 1008 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 1009 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.8, -0.35) * ANGLES(RAD(120), RAD(0), RAD(-70)) * ANGLES(RAD(0), RAD(-15), RAD(5 + 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1010 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.2, -0.35) * ANGLES(RAD(120), RAD(0), RAD(70)) * ANGLES(RAD(0), RAD(15), RAD(-5 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1011 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1012 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1013 | until ATTACK == false | |
| 1014 | end)) | |
| 1015 | local FIRES = {}
| |
| 1016 | local RANGE = 75 | |
| 1017 | local REGENING = script.Regen2:Clone() | |
| 1018 | REGENING.Parent = Torso | |
| 1019 | REGENING.Enabled = true | |
| 1020 | REGENING.Rate = 900 | |
| 1021 | REGENING.Speed = NumberRange.new(RANGE) | |
| 1022 | wait() | |
| 1023 | for i = 1, 75 do | |
| 1024 | wait() | |
| 1025 | ApplyAoE(Torso.Position,6,1,1,0,false) | |
| 1026 | REGENING.Speed = NumberRange.new(RANGE) | |
| 1027 | RANGE = RANGE - (75/(math.ceil(REGENRATE*75))) | |
| 1028 | end | |
| 1029 | REGENING.Enabled = false | |
| 1030 | wait(0.5) | |
| 1031 | for i = 1, 6 do | |
| 1032 | WACKYEFFECT({Time = 10+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1033 | end | |
| 1034 | local BUSY = true | |
| 1035 | Particles("ExplosionFire1",Torso,100)
| |
| 1036 | SEARING = true | |
| 1037 | local WING1 = Particles("WingFire1",BACKATTACHMENT1,true)
| |
| 1038 | local WING2 = Particles("WingFire1",BACKATTACHMENT2,true)
| |
| 1039 | coroutine.resume(coroutine.create(function() | |
| 1040 | coroutine.resume(coroutine.create(function() | |
| 1041 | repeat | |
| 1042 | wait(1) | |
| 1043 | ApplyAoE(Torso.Position,20,5,10,0,false,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 1044 | until SEARING == false | |
| 1045 | end)) | |
| 1046 | repeat | |
| 1047 | Swait() | |
| 1048 | local ACCEL1 = VT(10,2-(6*COS(SINE / 24)),-6-(2*COS(SINE / 24))) | |
| 1049 | local ACCEL2 = VT(-10,2-(6*COS(SINE / 24)),-6-(2*COS(SINE / 24))) | |
| 1050 | WING1.Acceleration = ACCEL1 | |
| 1051 | WING2.Acceleration = ACCEL2 | |
| 1052 | local HIT,HITPOS = Raycast(RootPart.Position, RootPart.CFrame.lookVector, 4, Character) | |
| 1053 | if HIT then | |
| 1054 | ApplyAoE(Torso.Position,200,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 1055 | CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false) | |
| 1056 | CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false) | |
| 1057 | for i = 1, 3 do | |
| 1058 | WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1059 | end | |
| 1060 | for i = 1, 3 do | |
| 1061 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1062 | end | |
| 1063 | Particles("ExplosionFire1",Torso,600)
| |
| 1064 | BUSY = false | |
| 1065 | break | |
| 1066 | end | |
| 1067 | until SEARING == false | |
| 1068 | end)) | |
| 1069 | for _, c in pairs(Character:GetChildren()) do | |
| 1070 | if c:IsA("BasePart") then
| |
| 1071 | local FLAME = Particles("BodyFire",c,true)
| |
| 1072 | table.insert(FIRES,FLAME) | |
| 1073 | end | |
| 1074 | end | |
| 1075 | POSITION:remove() | |
| 1076 | wait() | |
| 1077 | ApplyAoE(Torso.Position,120,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 1078 | CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false) | |
| 1079 | ATTACK = false | |
| 1080 | Rooted = false | |
| 1081 | GYRO = IT("BodyGyro",RootPart)
| |
| 1082 | GYRO.D = 20 | |
| 1083 | GYRO.P = 4000 | |
| 1084 | GYRO.MaxTorque = VT(0,40000,0) | |
| 1085 | BODYPOS = IT("BodyPosition",RootPart)
| |
| 1086 | BODYPOS.Position = RootPart.Position+VT(0,2,0) | |
| 1087 | BODYPOS.D = 450 | |
| 1088 | BODYPOS.P = 40000 | |
| 1089 | BODYPOS.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1090 | local KEYDOWN = Mouse.KeyDown:connect(function(NEWKEY) | |
| 1091 | if NEWKEY == "c" and ATTACK == false then | |
| 1092 | BUSY = false | |
| 1093 | end | |
| 1094 | end) | |
| 1095 | local HUM = Humanoid.Died:Connect(function() | |
| 1096 | BUSY = false | |
| 1097 | ApplyAoE(Torso.Position,200,45,80,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true})
| |
| 1098 | CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false) | |
| 1099 | CreateSound(EXPLOSIONMEDIUMSOUND,Torso,10,1,false) | |
| 1100 | for i = 1, 3 do | |
| 1101 | WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1102 | end | |
| 1103 | for i = 1, 3 do | |
| 1104 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(Torso.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1105 | end | |
| 1106 | Particles("ExplosionFire1",Torso,600)
| |
| 1107 | end) | |
| 1108 | repeat wait() until BUSY == false | |
| 1109 | for i = 1, #FIRES do | |
| 1110 | FIRES[i].Enabled = false | |
| 1111 | Debris:AddItem(FIRES[i],5) | |
| 1112 | end | |
| 1113 | HUM:disconnect() | |
| 1114 | WING1.Enabled = false | |
| 1115 | WING2.Enabled = false | |
| 1116 | WING1.LockedToPart = false | |
| 1117 | WING2.LockedToPart = false | |
| 1118 | Debris:AddItem(WING1,5) | |
| 1119 | Debris:AddItem(WING2,5) | |
| 1120 | KEYDOWN:disconnect() | |
| 1121 | SEARING = false | |
| 1122 | GYRO:remove() | |
| 1123 | BODYPOS:remove() | |
| 1124 | FullBodyRegen() | |
| 1125 | end | |
| 1126 | ||
| 1127 | function SearingOrb() | |
| 1128 | ATTACK = true | |
| 1129 | Rooted = true | |
| 1130 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1131 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1132 | POSITION.D = 450 | |
| 1133 | POSITION.P = 40000 | |
| 1134 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1135 | local FIRE = Particles("FistFire",RightArm,true)
| |
| 1136 | local FIRE2 = Particles("FistFire",LeftArm,true)
| |
| 1137 | CreateSound(CHARGE,Torso,6,1,false) | |
| 1138 | local NEWANIM = false | |
| 1139 | coroutine.resume(coroutine.create(function() | |
| 1140 | repeat | |
| 1141 | Swait() | |
| 1142 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1143 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1144 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1145 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1146 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1147 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1148 | until ATTACK == false or NEWANIM == true | |
| 1149 | if NEWANIM == true then | |
| 1150 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1151 | GYRO.D = 20 | |
| 1152 | GYRO.P = 4000 | |
| 1153 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1154 | repeat | |
| 1155 | Swait() | |
| 1156 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1157 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 1158 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 1159 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1160 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1161 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1162 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1163 | until ATTACK == false | |
| 1164 | GYRO:remove() | |
| 1165 | end | |
| 1166 | POSITION:remove() | |
| 1167 | FIRE.LockedToPart = false | |
| 1168 | FIRE.Enabled = false | |
| 1169 | Debris:AddItem(FIRE,5) | |
| 1170 | FIRE2.LockedToPart = false | |
| 1171 | FIRE2.Enabled = false | |
| 1172 | Debris:AddItem(FIRE2,5) | |
| 1173 | end)) | |
| 1174 | local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
| |
| 1175 | MakeForm(ORB,"Ball") | |
| 1176 | ORB.CFrame = CF(RootPart.Position+VT(0,8,0)) | |
| 1177 | local A = IT("Attachment",ORB)
| |
| 1178 | local FIRES = Particles("FireballFire1",A,true)
| |
| 1179 | FIRES.Size = NumberSequence.new(0) | |
| 1180 | FIRES.LockedToPart = true | |
| 1181 | local LOOP = 0 | |
| 1182 | for i = 1, 500 do | |
| 1183 | Swait() | |
| 1184 | LOOP = LOOP + 1 | |
| 1185 | if LOOP >= 30 then | |
| 1186 | LOOP = 0 | |
| 1187 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1188 | end | |
| 1189 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1190 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1191 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1192 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1193 | FIRES.Enabled = true | |
| 1194 | end | |
| 1195 | wait(1) | |
| 1196 | if KEYHOLD == false then | |
| 1197 | coroutine.resume(coroutine.create(function() | |
| 1198 | ORB.Transparency = 1 | |
| 1199 | FIRES.Enabled = false | |
| 1200 | Debris:AddItem(ORB,10) | |
| 1201 | ApplyAoE(ORB.Position,400,75,90,175,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1202 | CreateSound(EXPLOSIONLARGESOUND,ORB,10,1,false) | |
| 1203 | CreateSound(EXPLOSIONSMALLSOUND,ORB,10,1,false) | |
| 1204 | for i = 1, 3 do | |
| 1205 | WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1206 | end | |
| 1207 | for i = 1, 3 do | |
| 1208 | WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1209 | end | |
| 1210 | Particles("ExplosionFire1",ORB,1200)
| |
| 1211 | for i = 1, 15 do | |
| 1212 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1213 | end | |
| 1214 | end)) | |
| 1215 | else | |
| 1216 | for i = 1, 100 do | |
| 1217 | Swait() | |
| 1218 | ORB.Size = ORB.Size - VT(0.2,0.2,0.2)*5 | |
| 1219 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1220 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1221 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1222 | end | |
| 1223 | ORB.Transparency = 1 | |
| 1224 | FIRES.Enabled = false | |
| 1225 | Debris:AddItem(ORB,10) | |
| 1226 | CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false) | |
| 1227 | for _, c in pairs(Character:GetChildren()) do | |
| 1228 | if c:IsA("BasePart") then
| |
| 1229 | Particles("ExplosionFire2",c,25)
| |
| 1230 | end | |
| 1231 | end | |
| 1232 | NEWANIM = true | |
| 1233 | wait(0.5) | |
| 1234 | for i = 1, 15 do | |
| 1235 | wait(0.1) | |
| 1236 | coroutine.resume(coroutine.create(function() | |
| 1237 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2,2,2)) | |
| 1238 | FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
| 1239 | CreateSound(FIREBALLSOUND,FIREBALL,6,1,false) | |
| 1240 | local FLAME = Particles("FireballFire3",FIREBALL,true)
| |
| 1241 | for i = 1, 250 do | |
| 1242 | Swait() | |
| 1243 | local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2, Character) | |
| 1244 | FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2) | |
| 1245 | if HIT then | |
| 1246 | CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false) | |
| 1247 | local FIELD = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true)
| |
| 1248 | local FIELD2 = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true)
| |
| 1249 | FIELD.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
| 1250 | FIELD2.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(45), RAD(0)) | |
| 1251 | coroutine.resume(coroutine.create(function() | |
| 1252 | local FLAMES = Particles("DebrisFire",FIELD,true)
| |
| 1253 | local FLAMES2 = Particles("DebrisFire",FIELD2,true)
| |
| 1254 | for i = 1, 15 do | |
| 1255 | wait(1) | |
| 1256 | ApplyAoE(FIELD.Position,FIELD.Size.X/2,5,15,0,false,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1257 | end | |
| 1258 | FLAMES.Enabled = false | |
| 1259 | FLAMES2.Enabled = false | |
| 1260 | Debris:AddItem(FIELD,5) | |
| 1261 | Debris:AddItem(FIELD2,5) | |
| 1262 | end)) | |
| 1263 | Particles("ExplosionFire2",FIREBALL,600)
| |
| 1264 | break | |
| 1265 | end | |
| 1266 | end | |
| 1267 | FLAME.Enabled = false | |
| 1268 | Debris:AddItem(FIREBALL,7) | |
| 1269 | end)) | |
| 1270 | end | |
| 1271 | end | |
| 1272 | wait(0.3) | |
| 1273 | ATTACK = false | |
| 1274 | Rooted = false | |
| 1275 | end | |
| 1276 | ||
| 1277 | function Shroud() | |
| 1278 | if Mouse.Target ~= nil then | |
| 1279 | if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1280 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1281 | local TORSO = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
| |
| 1282 | if TORSO and HUM.Health > 0 then | |
| 1283 | local DISTANCE = (RootPart.Position-TORSO.Position).Magnitude | |
| 1284 | if DISTANCE < 100 then | |
| 1285 | ATTACK = true | |
| 1286 | POSEIDON = false | |
| 1287 | Rooted = true | |
| 1288 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1289 | GYRO.D = 20 | |
| 1290 | GYRO.P = 4000 | |
| 1291 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1292 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1293 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1294 | POSITION.D = 450 | |
| 1295 | POSITION.P = 40000 | |
| 1296 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1297 | local TARGETTING = true | |
| 1298 | local HIT = false | |
| 1299 | local FIRES = {}
| |
| 1300 | for _, c in pairs(Character:GetChildren()) do | |
| 1301 | if c:IsA("BasePart") then
| |
| 1302 | local FLAME = Particles("BodyFire",c,true)
| |
| 1303 | FLAME.Rate = 15 | |
| 1304 | table.insert(FIRES,FLAME) | |
| 1305 | end | |
| 1306 | end | |
| 1307 | CreateSound(CHARGE,Torso,6,1,false) | |
| 1308 | coroutine.resume(coroutine.create(function() | |
| 1309 | repeat | |
| 1310 | GYRO.CFrame = CF(RootPart.Position,TORSO.Position) | |
| 1311 | Swait() | |
| 1312 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1316 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1317 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1318 | until TARGETTING == false | |
| 1319 | repeat | |
| 1320 | GYRO.CFrame = CF(RootPart.Position,TORSO.Position) | |
| 1321 | POSITION.Position = CF(RootPart.Position,TORSO.Position)*CF(0,0,-5).p | |
| 1322 | DISTANCE = (RootPart.Position-TORSO.Position).Magnitude | |
| 1323 | Swait() | |
| 1324 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1325 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1326 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1327 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1328 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1329 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1330 | until HIT == true | |
| 1331 | POSITION:remove() | |
| 1332 | GYRO:remove() | |
| 1333 | end)) | |
| 1334 | wait(0.5) | |
| 1335 | repeat wait() until HOLD == true | |
| 1336 | for _, c in pairs(Character:GetChildren()) do | |
| 1337 | if c:IsA("BasePart") then
| |
| 1338 | local FLAME = Particles("BodyFire",c,true)
| |
| 1339 | table.insert(FIRES,FLAME) | |
| 1340 | end | |
| 1341 | end | |
| 1342 | for _, c in pairs(Character:GetChildren()) do | |
| 1343 | if c:IsA("BasePart") then
| |
| 1344 | c.Transparency = 1 | |
| 1345 | end | |
| 1346 | end | |
| 1347 | TARGETTING = false | |
| 1348 | for i = 1, 100 do | |
| 1349 | wait() | |
| 1350 | if DISTANCE < 5 or DISTANCE >= 200 then | |
| 1351 | break | |
| 1352 | end | |
| 1353 | end | |
| 1354 | HIT = true | |
| 1355 | if DISTANCE < 5 then | |
| 1356 | for i = 1, #FIRES do | |
| 1357 | FIRES[i].Enabled = false | |
| 1358 | end | |
| 1359 | for _, c in pairs(HUM.Parent:GetChildren()) do | |
| 1360 | if c:IsA("BasePart") then
| |
| 1361 | local FLAME = Particles("BodyFire",c,true)
| |
| 1362 | table.insert(FIRES,FLAME) | |
| 1363 | end | |
| 1364 | end | |
| 1365 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
| 1366 | RootPart.CFrame = TORSO.CFrame | |
| 1367 | local WELD = weldBetween(RootPart,TORSO) | |
| 1368 | repeat wait() until HOLD == true | |
| 1369 | CreateSound(416328540,Torso,6,1,false) | |
| 1370 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1371 | local bv = Instance.new("BodyVelocity")
| |
| 1372 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1373 | bv.velocity = CF(TORSO.Position,TORSO.Position+VT(0,15,0)).lookVector*125 | |
| 1374 | bv.Parent = TORSO | |
| 1375 | for i = 1, 70 do | |
| 1376 | wait(0.1) | |
| 1377 | if TORSO.Parent == nil then | |
| 1378 | break | |
| 1379 | end | |
| 1380 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1381 | end | |
| 1382 | UNANCHOR = false | |
| 1383 | bv:remove() | |
| 1384 | wait(1) | |
| 1385 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1386 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
| 1387 | UNANCHOR = true | |
| 1388 | local bv = Instance.new("BodyVelocity")
| |
| 1389 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1390 | bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450 | |
| 1391 | bv.Parent = TORSO | |
| 1392 | local LANDED = false | |
| 1393 | for i = 1, 500 do | |
| 1394 | wait() | |
| 1395 | Ignore = {Character,HUM.Parent}
| |
| 1396 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1397 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1398 | local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore) | |
| 1399 | if HITFLOOR or FULLREGEN == true then | |
| 1400 | LANDED = true | |
| 1401 | break | |
| 1402 | end | |
| 1403 | if TORSO.Parent == nil then | |
| 1404 | break | |
| 1405 | end | |
| 1406 | end | |
| 1407 | if TORSO.Parent ~= nil then | |
| 1408 | UNANCHOR = false | |
| 1409 | bv:remove() | |
| 1410 | wait(1) | |
| 1411 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1412 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
| 1413 | UNANCHOR = true | |
| 1414 | local bv = Instance.new("BodyVelocity")
| |
| 1415 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1416 | bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450 | |
| 1417 | bv.Parent = TORSO | |
| 1418 | local LANDED = false | |
| 1419 | for i = 1, 500 do | |
| 1420 | wait() | |
| 1421 | Ignore = {Character,HUM.Parent}
| |
| 1422 | WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.9, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1423 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1424 | local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore) | |
| 1425 | if HITFLOOR or FULLREGEN == true then | |
| 1426 | LANDED = true | |
| 1427 | break | |
| 1428 | end | |
| 1429 | if TORSO.Parent == nil then | |
| 1430 | break | |
| 1431 | end | |
| 1432 | end | |
| 1433 | bv:remove() | |
| 1434 | if LANDED == true then | |
| 1435 | UNANCHOR = false | |
| 1436 | for i = 1, 10 do | |
| 1437 | ApplyAoE(TORSO.Position+VT(0,1,0),10+(2*i),15,15,45,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1438 | end | |
| 1439 | CreateSound(EXPLOSIONLARGESOUND,TORSO,10,1,false) | |
| 1440 | CreateSound(EXPLOSIONSMALLSOUND,TORSO,10,1,false) | |
| 1441 | Particles("ExplosionFire1",TORSO,120)
| |
| 1442 | for i = 1, 15 do | |
| 1443 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1444 | end | |
| 1445 | WELD:remove() | |
| 1446 | wait(0.3) | |
| 1447 | UNANCHOR = true | |
| 1448 | else | |
| 1449 | WELD:remove() | |
| 1450 | end | |
| 1451 | end | |
| 1452 | end | |
| 1453 | for i = 1, #FIRES do | |
| 1454 | FIRES[i].Enabled = false | |
| 1455 | Debris:AddItem(FIRES[i],5) | |
| 1456 | end | |
| 1457 | for _, c in pairs(Character:GetChildren()) do | |
| 1458 | if c:IsA("BasePart") and c ~= RootPart then
| |
| 1459 | c.Transparency = 0 | |
| 1460 | end | |
| 1461 | end | |
| 1462 | RootPart.Velocity = VT(0,0,0) | |
| 1463 | ATTACK = false | |
| 1464 | Rooted = false | |
| 1465 | end | |
| 1466 | end | |
| 1467 | end | |
| 1468 | end | |
| 1469 | end | |
| 1470 | ||
| 1471 | function Spitter() | |
| 1472 | ATTACK = true | |
| 1473 | Rooted = true | |
| 1474 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1475 | GYRO.D = 20 | |
| 1476 | GYRO.P = 4000 | |
| 1477 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1478 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1479 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1480 | POSITION.D = 450 | |
| 1481 | POSITION.P = 40000 | |
| 1482 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1483 | local FIRE = Particles("FistFire",RightArm,true)
| |
| 1484 | CreateSound(CHARGE,RightArm,6,0.8,false) | |
| 1485 | coroutine.resume(coroutine.create(function() | |
| 1486 | repeat | |
| 1487 | Swait() | |
| 1488 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1489 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 1490 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 1491 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1492 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1493 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1494 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1495 | until ATTACK == false | |
| 1496 | FIRE.LockedToPart = false | |
| 1497 | FIRE.Enabled = false | |
| 1498 | Debris:AddItem(FIRE,5) | |
| 1499 | GYRO:remove() | |
| 1500 | POSITION:remove() | |
| 1501 | end)) | |
| 1502 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
| |
| 1503 | MakeForm(FIREBALL,"Ball") | |
| 1504 | FIREBALL.CFrame = RightArm.CFrame*CF(0,-1,0) | |
| 1505 | local CORE = IT("Attachment",FIREBALL)
| |
| 1506 | local FIRES = Particles("FireballFire1",CORE,true)
| |
| 1507 | FIRES.Size = NumberSequence.new(0) | |
| 1508 | FIRES.LockedToPart = true | |
| 1509 | local LOOP = 0 | |
| 1510 | repeat | |
| 1511 | Swait() | |
| 1512 | LOOP = LOOP + 1 | |
| 1513 | if LOOP == 20 then | |
| 1514 | LOOP = 0 | |
| 1515 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1516 | end | |
| 1517 | if FIREBALL.Size.X < 20 then | |
| 1518 | FIREBALL.Size = FIREBALL.Size + VT(0.1,0.1,0.1) | |
| 1519 | FIRES.Size = NumberSequence.new(FIREBALL.Size.Y/1.5) | |
| 1520 | FIRES.Speed = NumberRange.new(0,FIREBALL.Size.Y/2) | |
| 1521 | end | |
| 1522 | FIRES.Enabled = true | |
| 1523 | FIREBALL.CFrame = RightArm.CFrame*CF(0,-1-FIREBALL.Size.Z/2,0) | |
| 1524 | until KEYHOLD == false and FIREBALL.Size.X >= 10 | |
| 1525 | CreateSound(FIREBALLSOUND,FIREBALL,10,0.8,false) | |
| 1526 | coroutine.resume(coroutine.create(function() | |
| 1527 | FIREBALL.CFrame = CF(FIREBALL.Position,Mouse.Hit.p) | |
| 1528 | local RANGE = 75 | |
| 1529 | local FLAME = Particles("Field",CORE,true)
| |
| 1530 | FLAME.Speed = NumberRange.new(0,FIREBALL.Size.X*5) | |
| 1531 | FLAME.Size = NumberSequence.new(0,25) | |
| 1532 | for i = 1, 600 do | |
| 1533 | LOOP = LOOP + 1 | |
| 1534 | if LOOP == 20 then | |
| 1535 | LOOP = 0 | |
| 1536 | ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*5,5,25,0,false) | |
| 1537 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1538 | end | |
| 1539 | Swait() | |
| 1540 | FIREBALL.CFrame = CF(FIREBALL.Position,FIREBALL.CFrame*CF(0,-0.001,-1).p)*CF(0,0,-0.2) | |
| 1541 | local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, FIREBALL.Size.X/2.5, Character) | |
| 1542 | if HIT then | |
| 1543 | ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*12,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1544 | CreateSound(EXPLOSIONLARGESOUND,FIREBALL,10,1,false) | |
| 1545 | CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false) | |
| 1546 | for i = 1, 3 do | |
| 1547 | WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1548 | end | |
| 1549 | for i = 1, 3 do | |
| 1550 | WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1551 | end | |
| 1552 | Particles("ExplosionFire1",FIREBALL,1200)
| |
| 1553 | for i = 1, 15 do | |
| 1554 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X*10,FIREBALL.Size.X*10,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1555 | end | |
| 1556 | break | |
| 1557 | end | |
| 1558 | end | |
| 1559 | FLAME.Enabled = false | |
| 1560 | FIRES.Enabled = false | |
| 1561 | for i = 1, 10 do | |
| 1562 | Swait() | |
| 1563 | FIREBALL.Mesh.Scale = FIREBALL.Mesh.Scale - VT(0.1,0.1,0.1) | |
| 1564 | end | |
| 1565 | Debris:AddItem(FIREBALL,5) | |
| 1566 | end)) | |
| 1567 | wait(0.5) | |
| 1568 | ATTACK = false | |
| 1569 | Rooted = false | |
| 1570 | end | |
| 1571 | ||
| 1572 | function Devastor() | |
| 1573 | ATTACK = true | |
| 1574 | Rooted = true | |
| 1575 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1576 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
| 1577 | POSITION.D = 450 | |
| 1578 | POSITION.P = 40000 | |
| 1579 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1580 | local FIRE = Particles("FistFire",RightArm,true)
| |
| 1581 | local FIRE2 = Particles("FistFire",LeftArm,true)
| |
| 1582 | CreateSound(CHARGE,Torso,6,1,false) | |
| 1583 | local NEWANIM = false | |
| 1584 | coroutine.resume(coroutine.create(function() | |
| 1585 | repeat | |
| 1586 | Swait() | |
| 1587 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1588 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1589 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1590 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
| 1591 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1592 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1593 | until ATTACK == false or NEWANIM == true | |
| 1594 | if NEWANIM == true then | |
| 1595 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1596 | GYRO.D = 20 | |
| 1597 | GYRO.P = 4000 | |
| 1598 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1599 | repeat | |
| 1600 | Swait() | |
| 1601 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1602 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
| 1603 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
| 1604 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1605 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1606 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1607 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1608 | until ATTACK == false | |
| 1609 | GYRO:remove() | |
| 1610 | end | |
| 1611 | POSITION:remove() | |
| 1612 | FIRE.LockedToPart = false | |
| 1613 | FIRE.Enabled = false | |
| 1614 | Debris:AddItem(FIRE,5) | |
| 1615 | FIRE2.LockedToPart = false | |
| 1616 | FIRE2.Enabled = false | |
| 1617 | Debris:AddItem(FIRE2,5) | |
| 1618 | end)) | |
| 1619 | local FIRETABLE = {}
| |
| 1620 | local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true)
| |
| 1621 | MakeForm(ORB,"Ball") | |
| 1622 | ORB.CFrame = CF(RootPart.Position+VT(0,8,0)) | |
| 1623 | local A = IT("Attachment",ORB)
| |
| 1624 | local FIRES = Particles("FireballFire1",A,true)
| |
| 1625 | FIRES.Size = NumberSequence.new(0) | |
| 1626 | FIRES.LockedToPart = true | |
| 1627 | local LOOP = 0 | |
| 1628 | for i = 1, 200 do | |
| 1629 | Swait() | |
| 1630 | LOOP = LOOP + 1 | |
| 1631 | if LOOP >= 30 then | |
| 1632 | LOOP = 0 | |
| 1633 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1634 | end | |
| 1635 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1636 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1637 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1638 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1639 | FIRES.Enabled = true | |
| 1640 | end | |
| 1641 | RightArm.Transparency = 1 | |
| 1642 | LeftArm.Transparency = 1 | |
| 1643 | FIRE.Enabled = false | |
| 1644 | FIRE2.Enabled = false | |
| 1645 | for _, c in pairs(Character:GetChildren()) do | |
| 1646 | if c:IsA("BasePart") then
| |
| 1647 | local FLAME = Particles("BodyFire",c,true)
| |
| 1648 | table.insert(FIRETABLE,FLAME) | |
| 1649 | end | |
| 1650 | end | |
| 1651 | CreateSound(CHARGE,Torso,6,0.5,false) | |
| 1652 | for i = 1, 200 do | |
| 1653 | Swait() | |
| 1654 | LOOP = LOOP + 1 | |
| 1655 | if LOOP >= 30 then | |
| 1656 | LOOP = 0 | |
| 1657 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1658 | end | |
| 1659 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1660 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1661 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1662 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1663 | FIRES.Enabled = true | |
| 1664 | end | |
| 1665 | for _, c in pairs(Character:GetChildren()) do | |
| 1666 | if c:IsA("BasePart") then
| |
| 1667 | c.Transparency = 1 | |
| 1668 | end | |
| 1669 | end | |
| 1670 | for i = 1, #FIRETABLE do | |
| 1671 | FIRETABLE[i].Enabled = false | |
| 1672 | Debris:AddItem(FIRETABLE[i],5) | |
| 1673 | end | |
| 1674 | for i = 1, 400 do | |
| 1675 | Swait() | |
| 1676 | LOOP = LOOP + 1 | |
| 1677 | if LOOP >= 30 then | |
| 1678 | LOOP = 0 | |
| 1679 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1680 | end | |
| 1681 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
| 1682 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
| 1683 | FIRES.Size = NumberSequence.new(ORB.Size.Y/1.5) | |
| 1684 | FIRES.Speed = NumberRange.new(0,ORB.Size.Y/2) | |
| 1685 | FIRES.Enabled = true | |
| 1686 | end | |
| 1687 | wait(0.5) | |
| 1688 | FIRES.Lifetime = NumberRange.new(2,5) | |
| 1689 | FIRES.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,ORB.Size.Y/1.5),NumberSequenceKeypoint.new(0.5,ORB.Size.Y/2),NumberSequenceKeypoint.new(1,0)})
| |
| 1690 | FIRES.LockedToPart = false | |
| 1691 | CreateSound(FIREBALLSOUND,Effects,4,1,false) | |
| 1692 | coroutine.resume(coroutine.create(function() | |
| 1693 | ORB.CFrame = CF(ORB.Position,Mouse.Hit.p) | |
| 1694 | for i = 1, 1200 do | |
| 1695 | Swait() | |
| 1696 | ORB.CFrame = ORB.CFrame*CF(0,0,-1) | |
| 1697 | local HIT,HITPOS = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2.5, Character) | |
| 1698 | if HIT then | |
| 1699 | break | |
| 1700 | end | |
| 1701 | end | |
| 1702 | for i = 1, 6 do | |
| 1703 | ApplyAoE(ORB.Position,ORB.Size.X*10,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true})
| |
| 1704 | CreateSound(EXPLOSIONLARGESOUND,Effects,2,1,false) | |
| 1705 | CreateSound(EXPLOSIONSMALLSOUND,Effects,4,1,false) | |
| 1706 | for i = 1, 3 do | |
| 1707 | WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1708 | end | |
| 1709 | for i = 1, 3 do | |
| 1710 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)})
| |
| 1711 | end | |
| 1712 | for i = 1, 15 do | |
| 1713 | WACKYEFFECT({Time = 120+(i*5), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(ORB.Size.X*30,15,ORB.Size.X*30), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 1714 | end | |
| 1715 | wait(1) | |
| 1716 | end | |
| 1717 | FIRES.Enabled = false | |
| 1718 | for i = 1, 10 do | |
| 1719 | Swait() | |
| 1720 | ORB.Mesh.Scale = ORB.Mesh.Scale - VT(0.1,0.1,0.1) | |
| 1721 | end | |
| 1722 | Debris:AddItem(ORB,5) | |
| 1723 | end)) | |
| 1724 | wait(1) | |
| 1725 | FullBodyRegen() | |
| 1726 | ATTACK = false | |
| 1727 | Rooted = false | |
| 1728 | end | |
| 1729 | ||
| 1730 | --//=================================\\ | |
| 1731 | --|| MISC | |
| 1732 | --\\=================================// | |
| 1733 | ||
| 1734 | function Lock() | |
| 1735 | ATTACK = true | |
| 1736 | Rooted = true | |
| 1737 | local GYRO = IT("BodyGyro",RootPart)
| |
| 1738 | GYRO.D = 50 | |
| 1739 | GYRO.P = 4000 | |
| 1740 | GYRO.MaxTorque = VT(40000,40000,40000) | |
| 1741 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1742 | POSITION.Position = RootPart.Position+VT(0,1,0) | |
| 1743 | POSITION.D = 450 | |
| 1744 | POSITION.P = 40000 | |
| 1745 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1746 | local FLINT = FLINTLOCK:Clone() | |
| 1747 | FLINTLOCK.Transparency = 1 | |
| 1748 | FLINT.Parent = Character | |
| 1749 | local SHOT = false | |
| 1750 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, FLINT, CF(-0.05,-1.65,0) * ANGLES(RAD(180),RAD(0),RAD(0)), CF(0, 0, 0))
| |
| 1751 | coroutine.resume(coroutine.create(function() | |
| 1752 | repeat | |
| 1753 | Swait() | |
| 1754 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
| 1755 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 1756 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1757 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1758 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1759 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1760 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1761 | until SHOT == true | |
| 1762 | CreateSound(213603013,RightArm,4,1,false) | |
| 1763 | local FROM = FLINT.CFrame*CF(0,1.043,0.231).p | |
| 1764 | local Ignore = Character | |
| 1765 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 1766 | local TO = Mouse.Hit.p | |
| 1767 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Ignore) | |
| 1768 | if AIMHIT ~= nil then | |
| 1769 | if AIMHIT.Parent ~= Character then | |
| 1770 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
| |
| 1771 | local HUM = AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1772 | if HUM then | |
| 1773 | ApplyDamage(HUM,MRANDOM(70,90)) | |
| 1774 | end | |
| 1775 | end | |
| 1776 | end | |
| 1777 | end | |
| 1778 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0)) | |
| 1779 | MakeForm(TRAIL,"Cyl") | |
| 1780 | local DIST = (FLINT.CFrame*CF(0,1.043,0.231).p - AIMPOS).Magnitude | |
| 1781 | TRAIL.Size = VT(0.1,DIST,0.1) | |
| 1782 | TRAIL.CFrame = CF(FLINT.CFrame*CF(0,1.043,0.231).p, AIMPOS) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
| 1783 | coroutine.resume(coroutine.create(function() | |
| 1784 | for i = 1, 5 do | |
| 1785 | Swait() | |
| 1786 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
| 1787 | end | |
| 1788 | TRAIL:remove() | |
| 1789 | end)) | |
| 1790 | repeat | |
| 1791 | Swait() | |
| 1792 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 1793 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1794 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1795 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1796 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1797 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1798 | until ATTACK == false | |
| 1799 | GYRO:remove() | |
| 1800 | POSITION:remove() | |
| 1801 | FLINT:remove() | |
| 1802 | FLINTLOCK.Transparency = 0 | |
| 1803 | end)) | |
| 1804 | wait(0.3) | |
| 1805 | SHOT = true | |
| 1806 | wait(0.5) | |
| 1807 | ATTACK = false | |
| 1808 | Rooted = false | |
| 1809 | end | |
| 1810 | ||
| 1811 | function Jupiter() | |
| 1812 | ATTACK = true | |
| 1813 | Rooted = true | |
| 1814 | local POSITION = IT("BodyPosition",RootPart)
| |
| 1815 | POSITION.Position = RootPart.Position+VT(0,0.2,0) | |
| 1816 | POSITION.D = 450 | |
| 1817 | POSITION.P = 40000 | |
| 1818 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 1819 | coroutine.resume(coroutine.create(function() | |
| 1820 | repeat | |
| 1821 | Swait() | |
| 1822 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed) | |
| 1823 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
| 1824 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.55 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 1825 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 1826 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 1827 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed) | |
| 1828 | until ATTACK == false | |
| 1829 | end)) | |
| 1830 | wait(0.5) | |
| 1831 | repeat wait() until KEYHOLD == false | |
| 1832 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35,4,35), Transparency = 0.3, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = 431105970, SoundPitch = 1, SoundVolume = 10})
| |
| 1833 | POSITION:remove() | |
| 1834 | RootPart.Velocity = VT(0,150,0) | |
| 1835 | ATTACK = false | |
| 1836 | Rooted = false | |
| 1837 | end | |
| 1838 | ||
| 1839 | function Taunt() | |
| 1840 | ATTACK = true | |
| 1841 | Rooted = true | |
| 1842 | local TAUNT = CreateSound(159882303,Torso,10,1,false) | |
| 1843 | coroutine.resume(coroutine.create(function() | |
| 1844 | repeat | |
| 1845 | Swait() | |
| 1846 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1847 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1848 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1849 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1850 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1851 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 1852 | until ATTACK == false | |
| 1853 | end)) | |
| 1854 | repeat wait() until TAUNT.Playing == false | |
| 1855 | ATTACK = false | |
| 1856 | Rooted = false | |
| 1857 | end | |
| 1858 | ||
| 1859 | --//=================================\\ | |
| 1860 | --|| ASSIGN THINGS TO KEYS | |
| 1861 | --\\=================================// | |
| 1862 | ||
| 1863 | function MouseDown(Mouse) | |
| 1864 | HOLD = true | |
| 1865 | if ATTACK == false then | |
| 1866 | end | |
| 1867 | end | |
| 1868 | ||
| 1869 | function MouseUp(Mouse) | |
| 1870 | HOLD = false | |
| 1871 | end | |
| 1872 | ||
| 1873 | local MUSIC = CreateSound(285883918,Character,3,1,true) | |
| 1874 | ||
| 1875 | function KeyDown(Key) | |
| 1876 | KEYHOLD = true | |
| 1877 | if ATTACK == false and FULLREGEN == false then | |
| 1878 | if Key == "z" then | |
| 1879 | Fireball() | |
| 1880 | end | |
| 1881 | ||
| 1882 | if Key == "b" and FIREFIELD == false and SEARING == false then | |
| 1883 | FireField() | |
| 1884 | end | |
| 1885 | ||
| 1886 | if Key == "c" and SEARING == false then | |
| 1887 | SearingForm() | |
| 1888 | end | |
| 1889 | ||
| 1890 | if Key == "v" and SEARING == false then | |
| 1891 | SearingOrb() | |
| 1892 | end | |
| 1893 | ||
| 1894 | if Key == "q" and SEARING == false then | |
| 1895 | Shroud() | |
| 1896 | end | |
| 1897 | ||
| 1898 | if Key == "x" and SEARING == false then | |
| 1899 | Jupiter() | |
| 1900 | wait(2) | |
| 1901 | Devastor() | |
| 1902 | end | |
| 1903 | ||
| 1904 | if Key == "e" then | |
| 1905 | Spitter() | |
| 1906 | end | |
| 1907 | ||
| 1908 | if Key == "g" then | |
| 1909 | Lock() | |
| 1910 | end | |
| 1911 | ||
| 1912 | if Key == "j" then | |
| 1913 | Jupiter() | |
| 1914 | end | |
| 1915 | ||
| 1916 | if Key == "t" and SEARING == false then | |
| 1917 | Taunt() | |
| 1918 | end | |
| 1919 | ||
| 1920 | if Key == "h" then | |
| 1921 | if POSEIDON == false then | |
| 1922 | POSEIDON = true | |
| 1923 | CreateSound(POSEIDONSOUND,Torso,5,MRANDOM(8,12)/10,false) | |
| 1924 | else | |
| 1925 | POSEIDON = false | |
| 1926 | end | |
| 1927 | end | |
| 1928 | end | |
| 1929 | ||
| 1930 | if Key == "w" and ATTACK == false and SEARING == true and VALUE2 == false then | |
| 1931 | repeat | |
| 1932 | VALUE2 = true | |
| 1933 | Swait() | |
| 1934 | BODYPOS.Position = RootPart.CFrame*CF(0,0,-5).p | |
| 1935 | until KEYHOLD == false | |
| 1936 | VALUE2 = false | |
| 1937 | end | |
| 1938 | ||
| 1939 | if string.byte(Key) == 50 and ATTACK == false then | |
| 1940 | if Speed == 16 then | |
| 1941 | Speed = 45 | |
| 1942 | elseif Speed == 45 then | |
| 1943 | Speed = 16 | |
| 1944 | end | |
| 1945 | end | |
| 1946 | ||
| 1947 | if Key == "1" then | |
| 1948 | MUSIC:Play() | |
| 1949 | CHOSENSONG = CHOSENSONG + 1 | |
| 1950 | if CHOSENSONG > #SONGS then | |
| 1951 | CHOSENSONG = 1 | |
| 1952 | end | |
| 1953 | end | |
| 1954 | end | |
| 1955 | ||
| 1956 | function KeyUp(Key) | |
| 1957 | KEYHOLD = false | |
| 1958 | end | |
| 1959 | ||
| 1960 | Mouse.Button1Down:connect(function(NEWKEY) | |
| 1961 | MouseDown(NEWKEY) | |
| 1962 | end) | |
| 1963 | Mouse.Button1Up:connect(function(NEWKEY) | |
| 1964 | MouseUp(NEWKEY) | |
| 1965 | end) | |
| 1966 | Mouse.KeyDown:connect(function(NEWKEY) | |
| 1967 | KeyDown(NEWKEY) | |
| 1968 | end) | |
| 1969 | Mouse.KeyUp:connect(function(NEWKEY) | |
| 1970 | KeyUp(NEWKEY) | |
| 1971 | end) | |
| 1972 | ||
| 1973 | --//=================================\\ | |
| 1974 | --\\=================================// | |
| 1975 | ||
| 1976 | function unanchor() | |
| 1977 | if UNANCHOR == true then | |
| 1978 | for _, c in pairs(Character:GetChildren()) do | |
| 1979 | if c:IsA("BasePart") then
| |
| 1980 | c.Anchored = false | |
| 1981 | end | |
| 1982 | end | |
| 1983 | else | |
| 1984 | for _, c in pairs(Character:GetChildren()) do | |
| 1985 | if c:IsA("BasePart") then
| |
| 1986 | c.Anchored = true | |
| 1987 | end | |
| 1988 | end | |
| 1989 | end | |
| 1990 | end | |
| 1991 | ||
| 1992 | --//=================================\\ | |
| 1993 | --|| WRAP THE WHOLE SCRIPT UP | |
| 1994 | --\\=================================// | |
| 1995 | ||
| 1996 | Humanoid.Changed:connect(function(Jump) | |
| 1997 | if Jump == "Jump" and (Disable_Jump == true) then | |
| 1998 | Humanoid.Jump = false | |
| 1999 | end | |
| 2000 | end) | |
| 2001 | ||
| 2002 | local LOOP = 0 | |
| 2003 | ||
| 2004 | while true do | |
| 2005 | Swait() | |
| 2006 | if Character:FindFirstChildOfClass("Humanoid") == nil then
| |
| 2007 | Humanoid = IT("Humanoid",Character)
| |
| 2008 | end | |
| 2009 | Effects.Parent = Character | |
| 2010 | script.Parent = WEAPONGUI | |
| 2011 | ANIMATE.Parent = nil | |
| 2012 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
| 2013 | v:Stop(); | |
| 2014 | end | |
| 2015 | SINE = SINE + CHANGE | |
| 2016 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
| 2017 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
| 2018 | Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects}
| |
| 2019 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
| |
| 2020 | local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore) | |
| 2021 | local WALKSPEEDVALUE = 5 | |
| 2022 | if SEARING == false then | |
| 2023 | if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then | |
| 2024 | if Humanoid.WalkSpeed <= 20 then | |
| 2025 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
| 2026 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2027 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
| 2028 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2 +0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed) | |
| 2029 | elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then | |
| 2030 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
| 2031 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / (2*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
| 2032 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
| 2033 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
| 2034 | end | |
| 2035 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then | |
| 2036 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2037 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2038 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2039 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2040 | end | |
| 2041 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
| 2042 | ANIM = "Jump" | |
| 2043 | if ATTACK == false then | |
| 2044 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2045 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2046 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2047 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2048 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2049 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2050 | end | |
| 2051 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
| 2052 | ANIM = "Fall" | |
| 2053 | if ATTACK == false then | |
| 2054 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed) | |
| 2055 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-8*COS(SINE / 6))), 1 / Animation_Speed) | |
| 2056 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2057 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2058 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2059 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2060 | end | |
| 2061 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
| 2062 | ANIM = "Idle" | |
| 2063 | if ATTACK == false then | |
| 2064 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
| 2065 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
| 2066 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 2 * COS(SINE / 12)), RAD(-25), RAD(-10 - 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2067 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2068 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2069 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2070 | end | |
| 2071 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
| 2072 | ANIM = "Walk" | |
| 2073 | if ATTACK == false then | |
| 2074 | if Humanoid.WalkSpeed <= 20 then | |
| 2075 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2076 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed) | |
| 2078 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed) | |
| 2079 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
| 2080 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
| 2081 | elseif Humanoid.WalkSpeed > 20 then | |
| 2082 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2083 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
| 2084 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
| 2085 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
| 2086 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed) | |
| 2087 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed) | |
| 2088 | end | |
| 2089 | end | |
| 2090 | end | |
| 2091 | elseif SEARING == true then | |
| 2092 | if APPLYGYRO == true then | |
| 2093 | if VALUE2 == false and DIRECTTURN == false then | |
| 2094 | if GYRO ~= nil then | |
| 2095 | GYRO.MaxTorque = VT(0,40000,0) | |
| 2096 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 2097 | end | |
| 2098 | else | |
| 2099 | if GYRO ~= nil then | |
| 2100 | GYRO.MaxTorque = VT(80000,40000,80000) | |
| 2101 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
| 2102 | end | |
| 2103 | end | |
| 2104 | end | |
| 2105 | if VALUE2 == false and ATTACK == false then | |
| 2106 | ANIM = "IdleFlight" | |
| 2107 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
| 2108 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2109 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 2110 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2111 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2112 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2113 | elseif VALUE2 == true and ATTACK == false then | |
| 2114 | ANIM = "Flight" | |
| 2115 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2116 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 2117 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0,1 / Animation_Speed) | |
| 2118 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 2119 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2120 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
| 2121 | end | |
| 2122 | end | |
| 2123 | unanchor() | |
| 2124 | Humanoid.MaxHealth = "inf" | |
| 2125 | Humanoid.Health = "inf" | |
| 2126 | if Rooted == false then | |
| 2127 | Disable_Jump = false | |
| 2128 | Humanoid.WalkSpeed = Speed | |
| 2129 | elseif Rooted == true then | |
| 2130 | Disable_Jump = true | |
| 2131 | Humanoid.WalkSpeed = 0 | |
| 2132 | end | |
| 2133 | Regen() | |
| 2134 | if Head:FindFirstChild("face") then
| |
| 2135 | Head.face.Texture = "rbxassetid://608798717" | |
| 2136 | Head.face.Transparency = Head.Transparency | |
| 2137 | end | |
| 2138 | for _, c in pairs(Character:GetDescendants()) do | |
| 2139 | if c.ClassName == "Attachment" and c ~= BACKATTACHMENT1 and c ~= BACKATTACHMENT2 and c.Parent.Parent ~= Effects then | |
| 2140 | c:remove() | |
| 2141 | end | |
| 2142 | if c.ClassName == "ParticleEmitter" then | |
| 2143 | if c.Name ~= "Regen" and c.Name ~= "Regen2" and c.Name ~= "CurseParticles" and c.Parent.Parent == Character then | |
| 2144 | c:remove() | |
| 2145 | end | |
| 2146 | end | |
| 2147 | if c and c.Parent then | |
| 2148 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
| 2149 | local ACCESSORY = c.Parent | |
| 2150 | c.Parent = Character | |
| 2151 | local REGENVALUE = IT("BoolValue",c)
| |
| 2152 | REGENVALUE.Name = "IsRegening" | |
| 2153 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE})
| |
| 2154 | if c then | |
| 2155 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then
| |
| 2156 | local WELD = weldBetween(Head,c) | |
| 2157 | table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
| |
| 2158 | else | |
| 2159 | local WELD = weldBetween(Torso,c) | |
| 2160 | table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil})
| |
| 2161 | end | |
| 2162 | end | |
| 2163 | ACCESSORY:remove() | |
| 2164 | end | |
| 2165 | end | |
| 2166 | end | |
| 2167 | for _, c in pairs(Character:GetChildren()) do | |
| 2168 | if SEARING == true and c:IsA("BasePart") then
| |
| 2169 | c.Transparency = 1 | |
| 2170 | end | |
| 2171 | end | |
| 2172 | MUSIC.Parent = Character | |
| 2173 | MUSIC.SoundId = "rbxassetid://"..SONGS[CHOSENSONG] | |
| 2174 | MUSIC.Pitch = 1 | |
| 2175 | if CHOSENSONG ~= 5 then | |
| 2176 | MUSIC.Volume = 2 | |
| 2177 | else | |
| 2178 | MUSIC.Volume = 4 | |
| 2179 | end | |
| 2180 | MUSIC.Playing = true | |
| 2181 | if POSEIDON == true and FULLREGEN == false then | |
| 2182 | LOOP = LOOP + 1 | |
| 2183 | local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true)
| |
| 2184 | FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0)) | |
| 2185 | FLOOR.CanCollide = true | |
| 2186 | Debris:AddItem(FLOOR,0.2) | |
| 2187 | local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true)
| |
| 2188 | FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))*ANGLES(RAD(0),RAD(45),RAD(0)) | |
| 2189 | FLOOR.CanCollide = true | |
| 2190 | Debris:AddItem(FLOOR,0.2) | |
| 2191 | if LOOP >= 5 then | |
| 2192 | LOOP = 0 | |
| 2193 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = HITPOS+VT(0,0.45,0), RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
| |
| 2194 | end | |
| 2195 | end | |
| 2196 | RootJoint.Parent = RootPart | |
| 2197 | Humanoid.DisplayDistanceType = "None" | |
| 2198 | Humanoid.Name = "Searing Emperor" | |
| 2199 | end | |
| 2200 | ||
| 2201 | --//=================================\\ | |
| 2202 | --\\=================================// | |
| 2203 | ||
| 2204 | ||
| 2205 | ||
| 2206 | ||
| 2207 | ||
| 2208 | --//====================================================\\-- | |
| 2209 | --|| END OF SCRIPT | |
| 2210 | --\\====================================================//-- | |
| 2211 | end)) | |
| 2212 | ParticleEmitter1.Name = "Regen" | |
| 2213 | ParticleEmitter1.Parent = LocalScript0 | |
| 2214 | ParticleEmitter1.Speed = NumberRange.new(1, 1) | |
| 2215 | ParticleEmitter1.Rotation = NumberRange.new(0, 360) | |
| 2216 | ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2217 | ParticleEmitter1.Enabled = false | |
| 2218 | ParticleEmitter1.LightEmission = 0.89999997615814 | |
| 2219 | ParticleEmitter1.Texture = "rbxassetid://296874871" | |
| 2220 | ParticleEmitter1.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2221 | ParticleEmitter1.ZOffset = 1 | |
| 2222 | ParticleEmitter1.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0) | |
| 2223 | ParticleEmitter1.Acceleration = Vector3.new(0, 3, 0) | |
| 2224 | ParticleEmitter1.Drag = 3 | |
| 2225 | ParticleEmitter1.EmissionDirection = Enum.NormalId.Right | |
| 2226 | ParticleEmitter1.Lifetime = NumberRange.new(1, 1) | |
| 2227 | ParticleEmitter1.Rate = 300 | |
| 2228 | ParticleEmitter1.RotSpeed = NumberRange.new(-56, 56) | |
| 2229 | ParticleEmitter1.SpreadAngle = Vector2.new(360, 360) | |
| 2230 | ParticleEmitter1.VelocitySpread = 360 | |
| 2231 | ParticleEmitter2.Name = "Regen2" | |
| 2232 | ParticleEmitter2.Parent = LocalScript0 | |
| 2233 | ParticleEmitter2.Speed = NumberRange.new(1, 1) | |
| 2234 | ParticleEmitter2.Rotation = NumberRange.new(0, 360) | |
| 2235 | ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2236 | ParticleEmitter2.Enabled = false | |
| 2237 | ParticleEmitter2.LightEmission = 0.89999997615814 | |
| 2238 | ParticleEmitter2.Texture = "rbxassetid://296874871" | |
| 2239 | ParticleEmitter2.Transparency = NumberSequence.new(1,1,0.7704918384552,0.29508197307587,0.24590164422989,0.37704920768738,0.62841534614563,0.90710383653641,1) | |
| 2240 | ParticleEmitter2.ZOffset = 1 | |
| 2241 | ParticleEmitter2.Size = NumberSequence.new(0,0.81967234611511,0.7103830575943,0.49180328845978,0) | |
| 2242 | ParticleEmitter2.Drag = 5 | |
| 2243 | ParticleEmitter2.EmissionDirection = Enum.NormalId.Right | |
| 2244 | ParticleEmitter2.Lifetime = NumberRange.new(1, 1) | |
| 2245 | ParticleEmitter2.Rate = 70 | |
| 2246 | ParticleEmitter2.RotSpeed = NumberRange.new(-56, 56) | |
| 2247 | ParticleEmitter2.SpreadAngle = Vector2.new(360, 360) | |
| 2248 | ParticleEmitter2.VelocitySpread = 360 | |
| 2249 | BillboardGui3.Name = "NameGui" | |
| 2250 | BillboardGui3.Parent = LocalScript0 | |
| 2251 | BillboardGui3.Enabled = false | |
| 2252 | BillboardGui3.Size = UDim2.new(7.5, 0, 1.5, 0) | |
| 2253 | BillboardGui3.AlwaysOnTop = true | |
| 2254 | BillboardGui3.MaxDistance = 70 | |
| 2255 | BillboardGui3.SizeOffset = Vector2.new(0, 4) | |
| 2256 | TextLabel4.Name = "PlayerName" | |
| 2257 | TextLabel4.Parent = BillboardGui3 | |
| 2258 | TextLabel4.Transparency = 1 | |
| 2259 | TextLabel4.Size = UDim2.new(1, 0, 1, 0) | |
| 2260 | TextLabel4.BackgroundColor = BrickColor.new("Institutional white")
| |
| 2261 | TextLabel4.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 2262 | TextLabel4.BackgroundTransparency = 1 | |
| 2263 | TextLabel4.BorderColor = BrickColor.new("Institutional white")
| |
| 2264 | TextLabel4.BorderColor3 = Color3.new(1, 1, 1) | |
| 2265 | TextLabel4.BorderSizePixel = 0 | |
| 2266 | TextLabel4.Font = Enum.Font.Antique | |
| 2267 | TextLabel4.FontSize = Enum.FontSize.Size14 | |
| 2268 | TextLabel4.Text = "Shackluster" | |
| 2269 | TextLabel4.TextColor = BrickColor.new("Sand violet metallic")
| |
| 2270 | TextLabel4.TextColor3 = Color3.new(0.580392, 0.580392, 0.580392) | |
| 2271 | TextLabel4.TextScaled = true | |
| 2272 | TextLabel4.TextSize = 14 | |
| 2273 | TextLabel4.TextStrokeColor3 = Color3.new(0.337255, 0.337255, 0.337255) | |
| 2274 | TextLabel4.TextStrokeTransparency = 0 | |
| 2275 | TextLabel4.TextWrap = true | |
| 2276 | TextLabel4.TextWrapped = true | |
| 2277 | TextLabel5.Name = "Title" | |
| 2278 | TextLabel5.Parent = BillboardGui3 | |
| 2279 | TextLabel5.Position = UDim2.new(-0.75, 0, 0.899999976, 0) | |
| 2280 | TextLabel5.Transparency = 1 | |
| 2281 | TextLabel5.Size = UDim2.new(2.5, 0, 1.5, 0) | |
| 2282 | TextLabel5.BackgroundColor = BrickColor.new("Institutional white")
| |
| 2283 | TextLabel5.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 2284 | TextLabel5.BackgroundTransparency = 1 | |
| 2285 | TextLabel5.BorderColor = BrickColor.new("Institutional white")
| |
| 2286 | TextLabel5.BorderColor3 = Color3.new(1, 1, 1) | |
| 2287 | TextLabel5.BorderSizePixel = 0 | |
| 2288 | TextLabel5.Font = Enum.Font.Antique | |
| 2289 | TextLabel5.FontSize = Enum.FontSize.Size14 | |
| 2290 | TextLabel5.Text = "The Searing Emperor" | |
| 2291 | TextLabel5.TextColor = BrickColor.new("Alder")
| |
| 2292 | TextLabel5.TextColor3 = Color3.new(0.666667, 0.333333, 1) | |
| 2293 | TextLabel5.TextScaled = true | |
| 2294 | TextLabel5.TextSize = 14 | |
| 2295 | TextLabel5.TextStrokeColor3 = Color3.new(0.666667, 0, 1) | |
| 2296 | TextLabel5.TextStrokeTransparency = 0 | |
| 2297 | TextLabel5.TextWrap = true | |
| 2298 | TextLabel5.TextWrapped = true | |
| 2299 | ParticleEmitter6.Name = "FistFire" | |
| 2300 | ParticleEmitter6.Parent = LocalScript0 | |
| 2301 | ParticleEmitter6.Speed = NumberRange.new(3, 3) | |
| 2302 | ParticleEmitter6.Rotation = NumberRange.new(0, 360) | |
| 2303 | ParticleEmitter6.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2304 | ParticleEmitter6.Enabled = false | |
| 2305 | ParticleEmitter6.LightEmission = 0.89999997615814 | |
| 2306 | ParticleEmitter6.Texture = "rbxassetid://296874871" | |
| 2307 | ParticleEmitter6.Transparency = NumberSequence.new(0.47540986537933,0.2896174788475,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2308 | ParticleEmitter6.ZOffset = 1 | |
| 2309 | ParticleEmitter6.Size = NumberSequence.new(0,0,0.7103830575943,0.49180328845978,0) | |
| 2310 | ParticleEmitter6.Acceleration = Vector3.new(0, 3, 0) | |
| 2311 | ParticleEmitter6.Drag = 1 | |
| 2312 | ParticleEmitter6.EmissionDirection = Enum.NormalId.Bottom | |
| 2313 | ParticleEmitter6.Lifetime = NumberRange.new(2, 2) | |
| 2314 | ParticleEmitter6.LockedToPart = true | |
| 2315 | ParticleEmitter6.Rate = 300 | |
| 2316 | ParticleEmitter6.RotSpeed = NumberRange.new(-56, 56) | |
| 2317 | ParticleEmitter6.SpreadAngle = Vector2.new(45, 45) | |
| 2318 | ParticleEmitter6.VelocitySpread = 45 | |
| 2319 | LocalScript7.Name = "CamShake" | |
| 2320 | LocalScript7.Parent = LocalScript0 | |
| 2321 | table.insert(cors,sandbox(LocalScript7,function() | |
| 2322 | wait() | |
| 2323 | VT = Vector3.new | |
| 2324 | MRANDOM = math.random | |
| 2325 | local A = nil | |
| 2326 | local B = nil | |
| 2327 | local C = nil | |
| 2328 | local HUMANOID = script.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2329 | for _, c in pairs(script:GetChildren()) do | |
| 2330 | if c.Name == "Timer" then | |
| 2331 | A = c.Value | |
| 2332 | elseif c.Name == "Shake" then | |
| 2333 | B = c.Value*5 | |
| 2334 | elseif c.Name == "DoesFade" then | |
| 2335 | C = c.Value | |
| 2336 | end | |
| 2337 | end | |
| 2338 | local TIMER = A or 35 | |
| 2339 | local SHAKE = B or 5 | |
| 2340 | local FADE = C or true | |
| 2341 | if HUMANOID and game.Players:FindFirstChild(script.Parent.Name) then | |
| 2342 | if FADE == true then | |
| 2343 | local FADER = SHAKE/TIMER | |
| 2344 | for i = 1, TIMER do | |
| 2345 | wait() | |
| 2346 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10,MRANDOM(-(SHAKE-(FADER*i)),(SHAKE-(FADER*i)))/10) | |
| 2347 | end | |
| 2348 | HUMANOID.CameraOffset = VT(0,0,0) | |
| 2349 | else | |
| 2350 | for i = 1, TIMER do | |
| 2351 | wait() | |
| 2352 | HUMANOID.CameraOffset = VT(MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10,MRANDOM(-SHAKE,SHAKE)/10) | |
| 2353 | end | |
| 2354 | HUMANOID.CameraOffset = VT(0,0,0) | |
| 2355 | end | |
| 2356 | end | |
| 2357 | script:remove() | |
| 2358 | end)) | |
| 2359 | LocalScript7.Disabled = true | |
| 2360 | NumberValue8.Name = "Timer" | |
| 2361 | NumberValue8.Parent = LocalScript7 | |
| 2362 | NumberValue8.Value = 35 | |
| 2363 | NumberValue9.Name = "Shake" | |
| 2364 | NumberValue9.Parent = LocalScript7 | |
| 2365 | NumberValue9.Value = 5 | |
| 2366 | BoolValue10.Name = "DoesFade" | |
| 2367 | BoolValue10.Parent = LocalScript7 | |
| 2368 | ParticleEmitter11.Name = "FireballFire2" | |
| 2369 | ParticleEmitter11.Parent = LocalScript0 | |
| 2370 | ParticleEmitter11.Rotation = NumberRange.new(0, 360) | |
| 2371 | ParticleEmitter11.Color = ColorSequence.new(Color3.new(0.14902, 0.886275, 1),Color3.new(0, 0.666667, 1)) | |
| 2372 | ParticleEmitter11.Enabled = false | |
| 2373 | ParticleEmitter11.LightEmission = 0.89999997615814 | |
| 2374 | ParticleEmitter11.Texture = "rbxassetid://296874871" | |
| 2375 | ParticleEmitter11.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2376 | ParticleEmitter11.ZOffset = 2 | |
| 2377 | ParticleEmitter11.Size = NumberSequence.new(5,5,1.8032789230347,0) | |
| 2378 | ParticleEmitter11.Drag = 1 | |
| 2379 | ParticleEmitter11.EmissionDirection = Enum.NormalId.Right | |
| 2380 | ParticleEmitter11.Lifetime = NumberRange.new(0, 1.5) | |
| 2381 | ParticleEmitter11.Rate = 9999 | |
| 2382 | ParticleEmitter11.RotSpeed = NumberRange.new(-56, 56) | |
| 2383 | ParticleEmitter11.SpreadAngle = Vector2.new(360, 360) | |
| 2384 | ParticleEmitter11.VelocitySpread = 360 | |
| 2385 | ParticleEmitter12.Name = "ExplosionFire2" | |
| 2386 | ParticleEmitter12.Parent = LocalScript0 | |
| 2387 | ParticleEmitter12.Speed = NumberRange.new(7, 270) | |
| 2388 | ParticleEmitter12.Rotation = NumberRange.new(0, 360) | |
| 2389 | ParticleEmitter12.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2390 | ParticleEmitter12.Enabled = false | |
| 2391 | ParticleEmitter12.LightEmission = 0.89999997615814 | |
| 2392 | ParticleEmitter12.Texture = "rbxassetid://296874871" | |
| 2393 | ParticleEmitter12.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2394 | ParticleEmitter12.ZOffset = 1 | |
| 2395 | ParticleEmitter12.Size = NumberSequence.new(0,0.98360657691956,1.530054807663,0) | |
| 2396 | ParticleEmitter12.Drag = 8 | |
| 2397 | ParticleEmitter12.EmissionDirection = Enum.NormalId.Right | |
| 2398 | ParticleEmitter12.Lifetime = NumberRange.new(2, 4) | |
| 2399 | ParticleEmitter12.Rate = 300 | |
| 2400 | ParticleEmitter12.RotSpeed = NumberRange.new(-56, 56) | |
| 2401 | ParticleEmitter12.SpreadAngle = Vector2.new(360, 360) | |
| 2402 | ParticleEmitter12.VelocitySpread = 360 | |
| 2403 | ParticleEmitter13.Name = "Field" | |
| 2404 | ParticleEmitter13.Parent = LocalScript0 | |
| 2405 | ParticleEmitter13.Speed = NumberRange.new(20, 50) | |
| 2406 | ParticleEmitter13.Rotation = NumberRange.new(0, 360) | |
| 2407 | ParticleEmitter13.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2408 | ParticleEmitter13.Enabled = false | |
| 2409 | ParticleEmitter13.LightEmission = 0.89999997615814 | |
| 2410 | ParticleEmitter13.Texture = "rbxassetid://296874871" | |
| 2411 | ParticleEmitter13.Transparency = NumberSequence.new(1,0.92349725961685,0.87978142499924,0.92349725961685,1) | |
| 2412 | ParticleEmitter13.ZOffset = 1 | |
| 2413 | ParticleEmitter13.Size = NumberSequence.new(0,10) | |
| 2414 | ParticleEmitter13.EmissionDirection = Enum.NormalId.Right | |
| 2415 | ParticleEmitter13.Lifetime = NumberRange.new(2, 4) | |
| 2416 | ParticleEmitter13.Rate = 999 | |
| 2417 | ParticleEmitter13.RotSpeed = NumberRange.new(-56, 56) | |
| 2418 | ParticleEmitter13.SpreadAngle = Vector2.new(360, 360) | |
| 2419 | ParticleEmitter13.VelocitySpread = 360 | |
| 2420 | ParticleEmitter14.Name = "BodyFire" | |
| 2421 | ParticleEmitter14.Parent = LocalScript0 | |
| 2422 | ParticleEmitter14.Speed = NumberRange.new(1, 1) | |
| 2423 | ParticleEmitter14.Rotation = NumberRange.new(0, 360) | |
| 2424 | ParticleEmitter14.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2425 | ParticleEmitter14.Enabled = false | |
| 2426 | ParticleEmitter14.LightEmission = 0.89999997615814 | |
| 2427 | ParticleEmitter14.Texture = "rbxassetid://296874871" | |
| 2428 | ParticleEmitter14.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1) | |
| 2429 | ParticleEmitter14.ZOffset = 1 | |
| 2430 | ParticleEmitter14.Size = NumberSequence.new(0.81250011920929,0.81250011920929,0) | |
| 2431 | ParticleEmitter14.Acceleration = Vector3.new(0, 3, 0) | |
| 2432 | ParticleEmitter14.Drag = 3 | |
| 2433 | ParticleEmitter14.EmissionDirection = Enum.NormalId.Right | |
| 2434 | ParticleEmitter14.Lifetime = NumberRange.new(1, 1) | |
| 2435 | ParticleEmitter14.Rate = 300 | |
| 2436 | ParticleEmitter14.RotSpeed = NumberRange.new(-56, 56) | |
| 2437 | ParticleEmitter14.SpreadAngle = Vector2.new(360, 360) | |
| 2438 | ParticleEmitter14.VelocitySpread = 360 | |
| 2439 | ParticleEmitter15.Name = "WingFire1" | |
| 2440 | ParticleEmitter15.Parent = LocalScript0 | |
| 2441 | ParticleEmitter15.Speed = NumberRange.new(8, 8) | |
| 2442 | ParticleEmitter15.Rotation = NumberRange.new(0, 360) | |
| 2443 | ParticleEmitter15.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2444 | ParticleEmitter15.Enabled = false | |
| 2445 | ParticleEmitter15.LightEmission = 0.89999997615814 | |
| 2446 | ParticleEmitter15.Texture = "rbxassetid://296874871" | |
| 2447 | ParticleEmitter15.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2448 | ParticleEmitter15.ZOffset = 1 | |
| 2449 | ParticleEmitter15.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076) | |
| 2450 | ParticleEmitter15.Acceleration = Vector3.new(8, 5, -7) | |
| 2451 | ParticleEmitter15.EmissionDirection = Enum.NormalId.Back | |
| 2452 | ParticleEmitter15.Lifetime = NumberRange.new(2.5, 2.5) | |
| 2453 | ParticleEmitter15.LockedToPart = true | |
| 2454 | ParticleEmitter15.Rate = 300 | |
| 2455 | ParticleEmitter15.RotSpeed = NumberRange.new(-56, 56) | |
| 2456 | ParticleEmitter15.SpreadAngle = Vector2.new(15, 5) | |
| 2457 | ParticleEmitter15.VelocitySpread = 15 | |
| 2458 | ParticleEmitter16.Name = "WingFire2" | |
| 2459 | ParticleEmitter16.Parent = LocalScript0 | |
| 2460 | ParticleEmitter16.Speed = NumberRange.new(8, 8) | |
| 2461 | ParticleEmitter16.Rotation = NumberRange.new(0, 360) | |
| 2462 | ParticleEmitter16.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2463 | ParticleEmitter16.Enabled = false | |
| 2464 | ParticleEmitter16.LightEmission = 0.89999997615814 | |
| 2465 | ParticleEmitter16.Texture = "rbxassetid://296874871" | |
| 2466 | ParticleEmitter16.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2467 | ParticleEmitter16.ZOffset = 1 | |
| 2468 | ParticleEmitter16.Size = NumberSequence.new(0,4.0437164306641,5.7377052307129,6.1748638153076) | |
| 2469 | ParticleEmitter16.Acceleration = Vector3.new(-8, 5, -7) | |
| 2470 | ParticleEmitter16.EmissionDirection = Enum.NormalId.Back | |
| 2471 | ParticleEmitter16.Lifetime = NumberRange.new(2.5, 2.5) | |
| 2472 | ParticleEmitter16.LockedToPart = true | |
| 2473 | ParticleEmitter16.Rate = 300 | |
| 2474 | ParticleEmitter16.RotSpeed = NumberRange.new(-56, 56) | |
| 2475 | ParticleEmitter16.SpreadAngle = Vector2.new(15, 5) | |
| 2476 | ParticleEmitter16.VelocitySpread = 15 | |
| 2477 | ParticleEmitter17.Name = "ExplosionFire1" | |
| 2478 | ParticleEmitter17.Parent = LocalScript0 | |
| 2479 | ParticleEmitter17.Speed = NumberRange.new(7, 670) | |
| 2480 | ParticleEmitter17.Rotation = NumberRange.new(0, 360) | |
| 2481 | ParticleEmitter17.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2482 | ParticleEmitter17.Enabled = false | |
| 2483 | ParticleEmitter17.LightEmission = 0.89999997615814 | |
| 2484 | ParticleEmitter17.Texture = "rbxassetid://296874871" | |
| 2485 | ParticleEmitter17.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2486 | ParticleEmitter17.ZOffset = 1 | |
| 2487 | ParticleEmitter17.Size = NumberSequence.new(10,10,7.0491800308228,0) | |
| 2488 | ParticleEmitter17.Drag = 5 | |
| 2489 | ParticleEmitter17.EmissionDirection = Enum.NormalId.Right | |
| 2490 | ParticleEmitter17.Lifetime = NumberRange.new(2, 4) | |
| 2491 | ParticleEmitter17.Rate = 300 | |
| 2492 | ParticleEmitter17.RotSpeed = NumberRange.new(-56, 56) | |
| 2493 | ParticleEmitter17.SpreadAngle = Vector2.new(360, 360) | |
| 2494 | ParticleEmitter17.VelocitySpread = 360 | |
| 2495 | ParticleEmitter18.Name = "FireballFire1" | |
| 2496 | ParticleEmitter18.Parent = LocalScript0 | |
| 2497 | ParticleEmitter18.Rotation = NumberRange.new(0, 360) | |
| 2498 | ParticleEmitter18.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2499 | ParticleEmitter18.Enabled = false | |
| 2500 | ParticleEmitter18.LightEmission = 0.89999997615814 | |
| 2501 | ParticleEmitter18.Texture = "rbxassetid://296874871" | |
| 2502 | ParticleEmitter18.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2503 | ParticleEmitter18.ZOffset = 1 | |
| 2504 | ParticleEmitter18.Size = NumberSequence.new(10,10,7.0491800308228,0) | |
| 2505 | ParticleEmitter18.Drag = 1 | |
| 2506 | ParticleEmitter18.EmissionDirection = Enum.NormalId.Right | |
| 2507 | ParticleEmitter18.Lifetime = NumberRange.new(0, 1.5) | |
| 2508 | ParticleEmitter18.Rate = 9999 | |
| 2509 | ParticleEmitter18.RotSpeed = NumberRange.new(-56, 56) | |
| 2510 | ParticleEmitter18.SpreadAngle = Vector2.new(360, 360) | |
| 2511 | ParticleEmitter18.VelocitySpread = 360 | |
| 2512 | ParticleEmitter19.Name = "FireballFire3" | |
| 2513 | ParticleEmitter19.Parent = LocalScript0 | |
| 2514 | ParticleEmitter19.Rotation = NumberRange.new(0, 360) | |
| 2515 | ParticleEmitter19.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2516 | ParticleEmitter19.Enabled = false | |
| 2517 | ParticleEmitter19.LightEmission = 0.89999997615814 | |
| 2518 | ParticleEmitter19.Texture = "rbxassetid://296874871" | |
| 2519 | ParticleEmitter19.Transparency = NumberSequence.new(0.47540986537933,0.37704920768738,0.25683063268661,0.4426229596138,0.62841534614563,1) | |
| 2520 | ParticleEmitter19.ZOffset = 1 | |
| 2521 | ParticleEmitter19.Size = NumberSequence.new(2.7868854999542,4.4808745384216,4.5901637077332,0) | |
| 2522 | ParticleEmitter19.Drag = 1 | |
| 2523 | ParticleEmitter19.EmissionDirection = Enum.NormalId.Right | |
| 2524 | ParticleEmitter19.Lifetime = NumberRange.new(0, 1.5) | |
| 2525 | ParticleEmitter19.Rate = 9999 | |
| 2526 | ParticleEmitter19.RotSpeed = NumberRange.new(-56, 56) | |
| 2527 | ParticleEmitter19.SpreadAngle = Vector2.new(360, 360) | |
| 2528 | ParticleEmitter19.VelocitySpread = 360 | |
| 2529 | ParticleEmitter20.Name = "DebrisFire" | |
| 2530 | ParticleEmitter20.Parent = LocalScript0 | |
| 2531 | ParticleEmitter20.Speed = NumberRange.new(2, 2) | |
| 2532 | ParticleEmitter20.Rotation = NumberRange.new(0, 360) | |
| 2533 | ParticleEmitter20.Color = ColorSequence.new(Color3.new(0.666667, 0.333333, 1),Color3.new(0.458824, 0.227451, 0.686275),Color3.new(0, 1, 1)) | |
| 2534 | ParticleEmitter20.Enabled = false | |
| 2535 | ParticleEmitter20.LightEmission = 0.89999997615814 | |
| 2536 | ParticleEmitter20.Texture = "rbxassetid://296874871" | |
| 2537 | ParticleEmitter20.Transparency = NumberSequence.new(0,0.14207655191422,0.4426229596138,0.62841534614563,1) | |
| 2538 | ParticleEmitter20.ZOffset = 1 | |
| 2539 | ParticleEmitter20.Size = NumberSequence.new(2.677595615387,3.9890713691711,4.6448087692261,3.8251371383667,0) | |
| 2540 | ParticleEmitter20.Acceleration = Vector3.new(0, 25, 0) | |
| 2541 | ParticleEmitter20.Drag = 3 | |
| 2542 | ParticleEmitter20.EmissionDirection = Enum.NormalId.Right | |
| 2543 | ParticleEmitter20.Lifetime = NumberRange.new(0, 3) | |
| 2544 | ParticleEmitter20.Rate = 300 | |
| 2545 | ParticleEmitter20.RotSpeed = NumberRange.new(-56, 56) | |
| 2546 | ParticleEmitter20.SpreadAngle = Vector2.new(360, 360) | |
| 2547 | ParticleEmitter20.VelocitySpread = 360 | |
| 2548 | Part21.Name = "Pauldrons" | |
| 2549 | Part21.Parent = LocalScript0 | |
| 2550 | Part21.CFrame = CFrame.new(47.1000023, 21.5235691, 58.9999733, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 2551 | Part21.Orientation = Vector3.new(0, 180, 0) | |
| 2552 | Part21.Position = Vector3.new(47.1000023, 21.5235691, 58.9999733) | |
| 2553 | Part21.Rotation = Vector3.new(-180, 0, -180) | |
| 2554 | Part21.Transparency = 1 | |
| 2555 | Part21.Size = Vector3.new(3.4000001, 2.20000005, 1) | |
| 2556 | Part21.Anchored = true | |
| 2557 | Part21.BottomSurface = Enum.SurfaceType.Smooth | |
| 2558 | Part21.CanCollide = false | |
| 2559 | Part21.Locked = true | |
| 2560 | Part21.TopSurface = Enum.SurfaceType.Smooth | |
| 2561 | Part21.FormFactor = Enum.FormFactor.Custom | |
| 2562 | Part21.formFactor = Enum.FormFactor.Custom | |
| 2563 | SpecialMesh22.Parent = Part21 | |
| 2564 | SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id=204454962 " | |
| 2565 | SpecialMesh22.TextureId = "rbxassetid://855840122" | |
| 2566 | SpecialMesh22.MeshType = Enum.MeshType.FileMesh | |
| 2567 | Folder23.Name = "Package" | |
| 2568 | Folder23.Parent = LocalScript0 | |
| 2569 | CharacterMesh24.Parent = Folder23 | |
| 2570 | CharacterMesh24.BodyPart = Enum.BodyPart.Torso | |
| 2571 | CharacterMesh24.MeshId = 27111894 | |
| 2572 | CharacterMesh25.Parent = Folder23 | |
| 2573 | CharacterMesh25.BodyPart = Enum.BodyPart.LeftLeg | |
| 2574 | CharacterMesh25.MeshId = 27111857 | |
| 2575 | CharacterMesh26.Parent = Folder23 | |
| 2576 | CharacterMesh26.BodyPart = Enum.BodyPart.RightLeg | |
| 2577 | CharacterMesh26.MeshId = 27111882 | |
| 2578 | CharacterMesh27.Name = "Superhero Left Arm" | |
| 2579 | CharacterMesh27.Parent = Folder23 | |
| 2580 | CharacterMesh27.BodyPart = Enum.BodyPart.LeftArm | |
| 2581 | CharacterMesh27.MeshId = 32328397 | |
| 2582 | CharacterMesh28.Name = "Superhero Right Arm" | |
| 2583 | CharacterMesh28.Parent = Folder23 | |
| 2584 | CharacterMesh28.BodyPart = Enum.BodyPart.RightArm | |
| 2585 | CharacterMesh28.MeshId = 32328563 | |
| 2586 | Part29.Name = "Flintlock" | |
| 2587 | Part29.Parent = LocalScript0 | |
| 2588 | Part29.CFrame = CFrame.new(-11.2999983, 4.42351913, 92.0999756, -1, 0, 0, 0, -1, 0, 0, 0, 1) | |
| 2589 | Part29.Orientation = Vector3.new(0, 0, 180) | |
| 2590 | Part29.Position = Vector3.new(-11.2999983, 4.42351913, 92.0999756) | |
| 2591 | Part29.Rotation = Vector3.new(0, 0, -180) | |
| 2592 | Part29.Color = Color3.new(0.105882, 0.164706, 0.207843) | |
| 2593 | Part29.Size = Vector3.new(1, 2, 1) | |
| 2594 | Part29.Anchored = true | |
| 2595 | Part29.BottomSurface = Enum.SurfaceType.Smooth | |
| 2596 | Part29.BrickColor = BrickColor.new("Black")
| |
| 2597 | Part29.CanCollide = false | |
| 2598 | Part29.Locked = true | |
| 2599 | Part29.TopSurface = Enum.SurfaceType.Smooth | |
| 2600 | Part29.brickColor = BrickColor.new("Black")
| |
| 2601 | Part29.FormFactor = Enum.FormFactor.Plate | |
| 2602 | Part29.formFactor = Enum.FormFactor.Plate | |
| 2603 | SpecialMesh30.Parent = Part29 | |
| 2604 | SpecialMesh30.MeshId = "http://www.roblox.com/asset/?id=13508017" | |
| 2605 | SpecialMesh30.Scale = Vector3.new(1.5, 1.5, 1.5) | |
| 2606 | SpecialMesh30.TextureId = "http://www.roblox.com/asset/?id=13508018" | |
| 2607 | SpecialMesh30.MeshType = Enum.MeshType.FileMesh | |
| 2608 | for i,v in pairs(mas:GetChildren()) do | |
| 2609 | v.Parent = workspace | |
| 2610 | pcall(function() v:MakeJoints() end) | |
| 2611 | end | |
| 2612 | mas:Destroy() | |
| 2613 | for i,v in pairs(cors) do | |
| 2614 | spawn(function() | |
| 2615 | pcall(v) | |
| 2616 | end) | |
| 2617 | end |