SHOW:
|
|
- or go back to the newest paste.
| 1 | - | p = game.Players.LocalPlayer |
| 1 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
|
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | do | |
| 4 | print("FE Compatibility code by Mokiros")
| |
| 5 | script.Parent = Player.Character | |
| 6 | ||
| 7 | --RemoteEvent for communicating | |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | ||
| 11 | --Fake event to make stuff like Mouse.KeyDown work | |
| 12 | local function fakeEvent() | |
| 13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 14 | t.connect = t.Connect | |
| 15 | return t | |
| 16 | end | |
| 17 | ||
| 18 | --Creating fake input objects with fake variables | |
| 19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 23 | end} | |
| 24 | --Merged 2 functions into one by checking amount of arguments | |
| 25 | CAS.UnbindAction = CAS.BindAction | |
| 26 | ||
| 27 | --This function will trigger the events that have been :Connect()'ed | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | ||
| 37 | Event.OnServerEvent:Connect(function(plr,io) | |
| 38 | if plr~=Player then return end | |
| 39 | if io.isMouse then | |
| 40 | m.Target = io.Target | |
| 41 | m.Hit = io.Hit | |
| 42 | - | Player = game:GetService("Players").LocalPlayer
|
| 42 | + | else |
| 43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 46 | end | |
| 47 | for _,t in pairs(CAS.Actions) do | |
| 48 | for _,k in pairs(t.Keys) do | |
| 49 | if k==io.KeyCode then | |
| 50 | t.Function(t.Name,io.UserInputState,io) | |
| 51 | end | |
| 52 | end | |
| 53 | end | |
| 54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 56 | end | |
| 57 | end) | |
| 58 | Event.Parent = NLS([==[ | |
| 59 | local Player = game:GetService("Players").LocalPlayer
| |
| 60 | local Event = script:WaitForChild("UserInput_Event")
| |
| 61 | ||
| 62 | local UIS = game:GetService("UserInputService")
| |
| 63 | local input = function(io,a) | |
| 64 | if a then return end | |
| 65 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 67 | end | |
| 68 | UIS.InputBegan:Connect(input) | |
| 69 | UIS.InputEnded:Connect(input) | |
| 70 | ||
| 71 | local Mouse = Player:GetMouse() | |
| 72 | local h,t | |
| 73 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 74 | --If player is not moving their mouse, client won't fire events | |
| 75 | while wait(1/30) do | |
| 76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 77 | h,t=Mouse.Hit,Mouse.Target | |
| 78 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 79 | end | |
| 80 | end]==],Player.Character) | |
| 81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 82 | end | |
| 83 | ||
| 84 | p = owner | |
| 85 | char = p.Character | |
| 86 | torso = char.Torso | |
| 87 | neck = char.Torso.Neck | |
| 88 | hum = char.Humanoid | |
| 89 | ||
| 90 | CV="Maroon" | |
| 91 | ||
| 92 | local txt = Instance.new("BillboardGui", char)
| |
| 93 | txt.Adornee = char .Head | |
| 94 | txt.Name = "_status" | |
| 95 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 96 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 97 | local text = Instance.new("TextLabel", txt)
| |
| 98 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 99 | text.FontSize = "Size24" | |
| 100 | text.TextScaled = true | |
| 101 | text.TextTransparency = 0 | |
| 102 | text.BackgroundTransparency = 1 | |
| 103 | text.TextTransparency = 0 | |
| 104 | text.TextStrokeTransparency = 0 | |
| 105 | text.Font = "SourceSansBold" | |
| 106 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 107 | ||
| 108 | v=Instance.new("Part")
| |
| 109 | v.Name = "ColorBrick" | |
| 110 | v.Parent=p.Character | |
| 111 | v.FormFactor="Symmetric" | |
| 112 | v.Anchored=true | |
| 113 | v.CanCollide=false | |
| 114 | v.BottomSurface="Smooth" | |
| 115 | v.TopSurface="Smooth" | |
| 116 | v.Size=Vector3.new(10,5,3) | |
| 117 | v.Transparency=1 | |
| 118 | v.CFrame=char.Torso.CFrame | |
| 119 | v.BrickColor=BrickColor.new(CV) | |
| 120 | v.Transparency=1 | |
| 121 | text.TextColor3 = Color3.new(1,1,1) | |
| 122 | v.Shape="Block" | |
| 123 | text.Text = "Luminous Magic User" | |
| 124 | ||
| 125 | Player = owner | |
| 126 | Character = Player.Character | |
| 127 | PlayerGui = Player.PlayerGui | |
| 128 | Backpack = Player.Backpack | |
| 129 | Torso = Character.Torso | |
| 130 | Head = Character.Head | |
| 131 | Humanoid = Character.Humanoid | |
| 132 | Face = Head.face | |
| 133 | LeftArm = Character["Left Arm"] | |
| 134 | LeftLeg = Character["Left Leg"] | |
| 135 | RightArm = Character["Right Arm"] | |
| 136 | RightLeg = Character["Right Leg"] | |
| 137 | LS = Torso["Left Shoulder"] | |
| 138 | LH = Torso["Left Hip"] | |
| 139 | RS = Torso["Right Shoulder"] | |
| 140 | RH = Torso["Right Hip"] | |
| 141 | Neck = Torso.Neck | |
| 142 | it = Instance.new | |
| 143 | vt = Vector3.new | |
| 144 | cf = CFrame.new | |
| 145 | euler = CFrame.fromEulerAnglesXYZ | |
| 146 | angles = CFrame.Angles | |
| 147 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 148 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 149 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 150 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
| 151 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 152 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 153 | RootPart = Character.HumanoidRootPart | |
| 154 | RootJoint = RootPart.RootJoint | |
| 155 | RootCF = euler(-1.57, 0, 3.14) | |
| 156 | attack = false | |
| 157 | attackdebounce = false | |
| 158 | MMouse = nil | |
| 159 | combo = 0 | |
| 160 | local hitfloor, posfloor = nil, nil | |
| 161 | local idle = 0 | |
| 162 | local Anim = "Idle" | |
| 163 | local Effects = {}
| |
| 164 | local Weapon = {}
| |
| 165 | local Welds = {}
| |
| 166 | local invisible = false | |
| 167 | local doing2 = false | |
| 168 | local doing4 = false | |
| 169 | local Marked = {}
| |
| 170 | local MarkedGUI = {}
| |
| 171 | local decreaseatk = 0 | |
| 172 | local decreasedef = 0 | |
| 173 | local decreasemvmt = 0 | |
| 174 | local pursuitnum = 0 | |
| 175 | local arcorb = false | |
| 176 | local move1 = "(Q)\nLuminous Bullet" | |
| 177 | local move2 = "(E)\nSirius" | |
| 178 | local move3 = "(R)\nLuminous Blast" | |
| 179 | local move4 = "(F)\nBright Destruction" | |
| 180 | local cooldowns = {}
| |
| 181 | local cooldown1 = 0 | |
| 182 | table.insert(cooldowns, cooldown1) | |
| 183 | local cooldown2 = 0 | |
| 184 | table.insert(cooldowns, cooldown2) | |
| 185 | local cooldown3 = 0 | |
| 186 | table.insert(cooldowns, cooldown3) | |
| 187 | local cooldown4 = 0 | |
| 188 | table.insert(cooldowns, cooldown4) | |
| 189 | local cooldownsadd = {}
| |
| 190 | local cooldownadd1 = 100 | |
| 191 | table.insert(cooldownsadd, cooldownadd1) | |
| 192 | local cooldownadd2 = 100 | |
| 193 | table.insert(cooldownsadd, cooldownadd2) | |
| 194 | local cooldownadd3 = 100 | |
| 195 | table.insert(cooldownsadd, cooldownadd3) | |
| 196 | local cooldownadd4 = 100 | |
| 197 | table.insert(cooldownsadd, cooldownadd4) | |
| 198 | local cooldownmax = 100 | |
| 199 | player = nil | |
| 200 | RSH = nil | |
| 201 | RW = Instance.new("Motor")
| |
| 202 | LW = Instance.new("Motor")
| |
| 203 | RW.Name = "Right Shoulder" | |
| 204 | LW.Name = "Left Shoulder" | |
| 205 | LH = Torso["Left Hip"] | |
| 206 | RH = Torso["Right Hip"] | |
| 207 | TorsoColor = Torso.BrickColor | |
| 208 | TorsoRed = TorsoColor.Color.r | |
| 209 | TorsoGreen = TorsoColor.Color.g | |
| 210 | TorsoBlue = TorsoColor.Color.b | |
| 211 | NewCol = BrickColor.new("White").Color
| |
| 212 | NewCol2 = BrickColor.new("White").Color
| |
| 213 | if Player:findFirstChild("Color1") ~= nil then
| |
| 214 | NewCol = Player.Color1.Value | |
| 215 | end | |
| 216 | if Player:findFirstChild("Color2") ~= nil then
| |
| 217 | NewCol2 = Player.Color2.Value | |
| 218 | end | |
| 219 | print(BrickColor.new(NewCol)) | |
| 220 | local mdec = Instance.new("NumberValue", Decrease)
| |
| 221 | mdec.Name = "DecreaseDef" | |
| 222 | mdec.Value = 0.4 | |
| 223 | local mdec2 = Instance.new("NumberValue", Decrease)
| |
| 224 | mdec2.Name = "DecreaseMvmt" | |
| 225 | mdec2.Value = 0.1 | |
| 226 | if Character:findFirstChild("Effects", true) ~= nil then
| |
| 227 | Character:findFirstChild("Effects", true).Parent = nil
| |
| 228 | end | |
| 229 | local effects = it("Model", Character)
| |
| 230 | effects.Name = "Effects" | |
| 231 | local Animate = Humanoid.Animator | |
| 232 | local canjump = true | |
| 233 | removeControl = function() | |
| 234 | canjump = false | |
| 235 | end | |
| 236 | resumeControl = function() | |
| 237 | canjump = true | |
| 238 | end | |
| 239 | Player.Character.Humanoid.Changed:connect(function() | |
| 240 | if canjump == false then | |
| 241 | Player.Character.Humanoid.Jump = false | |
| 242 | end | |
| 243 | end) | |
| 244 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 245 | ArtificialHB.Name = "Heartbeat" | |
| 246 | ||
| 247 | script:WaitForChild("Heartbeat")
| |
| 248 | ||
| 249 | frame = 1 / 30 | |
| 250 | tf = 0 | |
| 251 | allowframeloss = true | |
| 252 | tossremainder = false | |
| 253 | lastframe = tick() | |
| 254 | script.Heartbeat:Fire() | |
| 255 | ||
| 256 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 257 | tf = tf + s | |
| 258 | if tf >= frame then | |
| 259 | if allowframeloss then | |
| 260 | script.Heartbeat:Fire() | |
| 261 | lastframe = tick() | |
| 262 | else | |
| 263 | for i = 1, math.floor(tf / frame) do | |
| 264 | script.Heartbeat:Fire() | |
| 265 | end | |
| 266 | lastframe = tick() | |
| 267 | end | |
| 268 | if tossremainder then | |
| 269 | tf = 0 | |
| 270 | else | |
| 271 | tf = tf - frame * math.floor(tf / frame) | |
| 272 | end | |
| 273 | end | |
| 274 | end) | |
| 275 | ||
| 276 | function swait(num) | |
| 277 | if num == 0 or num == nil then | |
| 278 | ArtificialHB.Event:wait() | |
| 279 | else | |
| 280 | for i = 0, num do | |
| 281 | ArtificialHB.Event:wait() | |
| 282 | end | |
| 283 | end | |
| 284 | end | |
| 285 | if Character:findFirstChild("Carnufico", true) ~= nil then
| |
| 286 | Character:findFirstChild("Carnufico", true).Parent = nil
| |
| 287 | end | |
| 288 | if Player.PlayerGui:findFirstChild("WeaponGUI", true) ~= nil then
| |
| 289 | Player.PlayerGui:findFirstChild("WeaponGUI", true).Parent = nil
| |
| 290 | end | |
| 291 | if Character:findFirstChild("Stats", true) ~= nil then
| |
| 292 | Character:findFirstChild("Stats", true).Parent = nil
| |
| 293 | end | |
| 294 | local Stats = Instance.new("BoolValue")
| |
| 295 | Stats.Name = "Stats" | |
| 296 | Stats.Parent = Character | |
| 297 | local Atk = Instance.new("NumberValue")
| |
| 298 | Atk.Name = "Damage" | |
| 299 | Atk.Parent = Stats | |
| 300 | Atk.Value = 1 | |
| 301 | local Def = Instance.new("NumberValue")
| |
| 302 | Def.Name = "Defense" | |
| 303 | Def.Parent = Stats | |
| 304 | Def.Value = 1 | |
| 305 | local Mvmt = Instance.new("NumberValue")
| |
| 306 | Mvmt.Name = "Movement" | |
| 307 | Mvmt.Parent = Stats | |
| 308 | Mvmt.Value = 1 | |
| 309 | local Block = Instance.new("BoolValue")
| |
| 310 | Block.Name = "Block" | |
| 311 | Block.Parent = Stats | |
| 312 | Block.Value = false | |
| 313 | local Stun = Instance.new("NumberValue")
| |
| 314 | Stun.Name = "Stun" | |
| 315 | Stun.Parent = Stats | |
| 316 | Stun.Value = 0 | |
| 317 | local StunT = Instance.new("NumberValue")
| |
| 318 | StunT.Name = "StunThreshold" | |
| 319 | StunT.Parent = Stats | |
| 320 | StunT.Value = 100 | |
| 321 | local Rooted = Instance.new("BoolValue")
| |
| 322 | Rooted.Name = "Rooted" | |
| 323 | Rooted.Parent = Stats | |
| 324 | Rooted.Value = false | |
| 325 | local Stunned = Instance.new("BoolValue")
| |
| 326 | Stunned.Name = "Stunned" | |
| 327 | Stunned.Parent = Stats | |
| 328 | Stunned.Value = false | |
| 329 | local Stagger = Instance.new("BoolValue")
| |
| 330 | Stagger.Name = "Stagger" | |
| 331 | Stagger.Parent = Stats | |
| 332 | Stagger.Value = false | |
| 333 | local StaggerHit = Instance.new("BoolValue")
| |
| 334 | StaggerHit.Name = "StaggerHit" | |
| 335 | StaggerHit.Parent = Stats | |
| 336 | StaggerHit.Value = false | |
| 337 | local RecentEnemy = Instance.new("ObjectValue")
| |
| 338 | RecentEnemy.Name = "RecentEnemy" | |
| 339 | RecentEnemy.Parent = Stats | |
| 340 | RecentEnemy.Value = nil | |
| 341 | local Decrease = Instance.new("BoolValue")
| |
| 342 | Decrease.Name = "Decrease" | |
| 343 | Decrease.Parent = Stats | |
| 344 | Decrease.Value = false | |
| 345 | local mana = Instance.new("NumberValue")
| |
| 346 | mana.Name = "Mana" | |
| 347 | mana.Parent = Stats | |
| 348 | mana.Value = 0 | |
| 349 | local invisnum = Instance.new("NumberValue")
| |
| 350 | invisnum.Name = "Pursuit" | |
| 351 | invisnum.Parent = Stats | |
| 352 | invisnum.Value = 0 | |
| 353 | local isinvis = Instance.new("BoolValue")
| |
| 354 | isinvis.Name = "IsInvisible" | |
| 355 | isinvis.Parent = Stats | |
| 356 | isinvis.Value = false | |
| 357 | local passive = Instance.new("NumberValue", Decrease)
| |
| 358 | passive.Name = "DecreaseAtk" | |
| 359 | passive.Value = 0 | |
| 360 | local passive2 = Instance.new("NumberValue", nil)
| |
| 361 | passive2.Name = "DecreaseDef" | |
| 362 | passive2.Value = 0.2 | |
| 363 | local passive3 = Instance.new("NumberValue", nil)
| |
| 364 | passive3.Name = "DecreaseMvmt" | |
| 365 | passive3.Value = -0.2 | |
| 366 | NoOutline = function(Part) | |
| 367 | Part.TopSurface = 10 | |
| 368 | end | |
| 369 | part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
| 370 | local fp = it("Part")
| |
| 371 | fp.formFactor = formfactor | |
| 372 | fp.Parent = parent | |
| 373 | fp.Reflectance = reflectance | |
| 374 | fp.Transparency = transparency | |
| 375 | fp.CanCollide = false | |
| 376 | fp.Locked = true | |
| 377 | fp.BrickColor = brickcolor | |
| 378 | fp.Name = name | |
| 379 | fp.Size = size | |
| 380 | fp.Position = Torso.Position | |
| 381 | NoOutline(fp) | |
| 382 | fp.Material = "Neon" | |
| 383 | fp:BreakJoints() | |
| 384 | return fp | |
| 385 | end | |
| 386 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
| 387 | local mesh = it(Mesh) | |
| 388 | mesh.Parent = part | |
| 389 | if Mesh == "SpecialMesh" then | |
| 390 | mesh.MeshType = meshtype | |
| 391 | if meshid ~= "nil" then | |
| 392 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
| 393 | end | |
| 394 | end | |
| 395 | mesh.Offset = offset | |
| 396 | mesh.Scale = scale | |
| 397 | return mesh | |
| 398 | end | |
| 399 | weld = function(parent, part0, part1, c0) | |
| 400 | local weld = it("Motor")
| |
| 401 | weld.Parent = parent | |
| 402 | weld.Part0 = part0 | |
| 403 | weld.Part1 = part1 | |
| 404 | weld.C0 = c0 | |
| 405 | return weld | |
| 406 | end | |
| 407 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
| 408 | local gui = it(GuiType) | |
| 409 | gui.Parent = parent | |
| 410 | gui.Text = text | |
| 411 | gui.BackgroundTransparency = backtrans | |
| 412 | gui.BackgroundColor3 = backcol | |
| 413 | gui.SizeConstraint = "RelativeXY" | |
| 414 | gui.TextXAlignment = "Center" | |
| 415 | gui.TextYAlignment = "Center" | |
| 416 | gui.Position = pos | |
| 417 | gui.Size = size | |
| 418 | gui.Font = "SourceSansBold" | |
| 419 | gui.FontSize = "Size14" | |
| 420 | gui.TextWrapped = false | |
| 421 | gui.TextStrokeTransparency = 0 | |
| 422 | gui.TextColor = BrickColor.new("White")
| |
| 423 | return gui | |
| 424 | end | |
| 425 | local Color1 = Torso.BrickColor | |
| 426 | local fengui = it("GuiMain")
| |
| 427 | fengui.Parent = Player.PlayerGui | |
| 428 | fengui.Name = "WeaponGUI" | |
| 429 | local fenframe = it("Frame")
| |
| 430 | fenframe.Parent = fengui | |
| 431 | fenframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 432 | fenframe.BackgroundTransparency = 1 | |
| 433 | fenframe.BorderColor3 = Color3.new(17, 17, 17) | |
| 434 | fenframe.Size = UDim2.new(0.1, 0, 0.1, 0) | |
| 435 | fenframe.Position = UDim2.new(0.95, 0, 0.7, 0) | |
| 436 | local fenframe2 = it("Frame")
| |
| 437 | fenframe2.Parent = fengui | |
| 438 | fenframe2.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 439 | fenframe2.BackgroundTransparency = 1 | |
| 440 | fenframe2.BorderColor3 = Color3.new(17, 17, 17) | |
| 441 | fenframe2.Size = UDim2.new(0.2, 0, 0.1, 0) | |
| 442 | fenframe2.Position = UDim2.new(0.4, 0, 0.85, 0) | |
| 443 | local fenframe3 = it("Frame")
| |
| 444 | fenframe3.Parent = fengui | |
| 445 | fenframe3.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 446 | fenframe3.BackgroundTransparency = 1 | |
| 447 | fenframe3.BorderColor3 = Color3.new(17, 17, 17) | |
| 448 | fenframe3.Size = UDim2.new(0.2, 0, 0.2, 0) | |
| 449 | fenframe3.Position = UDim2.new(0.8, 0, 0.8, 0) | |
| 450 | fenframe3.Name = "MoveFrame" | |
| 451 | local fenframe4 = it("Frame")
| |
| 452 | fenframe4.Parent = fengui | |
| 453 | fenframe4.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 454 | fenframe4.BackgroundTransparency = 1 | |
| 455 | fenframe4.BorderColor3 = Color3.new(17, 17, 17) | |
| 456 | fenframe4.Size = UDim2.new(0.1, 0, 0.1, 0) | |
| 457 | fenframe4.Position = UDim2.new(0, 0, 0.7, 0) | |
| 458 | local pressedf = false | |
| 459 | local fenframe5 = it("Frame")
| |
| 460 | fenframe5.Parent = fengui | |
| 461 | fenframe5.BackgroundColor3 = Color3.new(0, 0, 0) | |
| 462 | fenframe5.BackgroundTransparency = 1 | |
| 463 | fenframe5.BorderColor3 = Color3.new(0, 0, 0) | |
| 464 | fenframe5.Size = UDim2.new(1, 0, 1, 0) | |
| 465 | fenframe5.Position = UDim2.new(0, 0, 0, 0) | |
| 466 | fenframe5.ZIndex = 2 | |
| 467 | local tellbar = gui("TextLabel", fenframe5, "Z to enable magic.", 1, Color3.new(0, 0, 0), UDim2.new(0.25, 0, 0.25, 0), UDim2.new(0.5, 0, 0.5, 0))
| |
| 468 | tellbar.Font = "SourceSansBold" | |
| 469 | tellbar.TextScaled = true | |
| 470 | tellbar.TextTransparency = 1 | |
| 471 | tellbar.TextStrokeTransparency = 1 | |
| 472 | tellbar.ZIndex = 2 | |
| 473 | local fnumb = 0 | |
| 474 | local fenbarmana1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
| |
| 475 | local fenbarmana2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
| |
| 476 | local fenbarmana4 = gui("TextLabel", fenframe, "Mana(" .. mana.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
| |
| 477 | local fenbarblock1 = gui("TextLabel", fenframe, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
| |
| 478 | local fenbarblock2 = gui("TextLabel", fenframe, "", 0, BrickColor.new(NewCol).Color, UDim2.new(-0.7, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
| |
| 479 | local fenbarblock3 = gui("TextLabel", fenframe, "Pursuit(" .. invisnum.Value .. ")", 1, Color3.new(0, 0, 0), UDim2.new(-0.7, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
| |
| 480 | local fenbardamage = gui("TextLabel", fenframe2, "Damage", 0.55, Color3.new(0.6078431372549, 0, 0), UDim2.new(-0.23, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
| |
| 481 | local fenbardef = gui("TextLabel", fenframe2, "Defense", 0.55, Color3.new(0, 0, 0.6078431372549), UDim2.new(-0.46, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
| |
| 482 | local fenbarmove = gui("TextLabel", fenframe2, "Walkspeed", 0.55, Color3.new(0, 0.6078431372549, 0), UDim2.new(1.03, 0, 0, 0), UDim2.new(0.2, 0, 1, 0))
| |
| 483 | local fenbarhp1 = gui("TextLabel", fenframe2, "", 0, Color3.new(0, 0, 0), UDim2.new(-0.46, 0, 1, 0), UDim2.new(1.92, 0, 0.4, 0))
| |
| 484 | local fenbarhp2 = gui("TextLabel", fenbarhp1, "", 0, Color3.new(1, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
| |
| 485 | local fenbarhp3 = gui("TextLabel", fenbarhp1, "(100)", 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
| |
| 486 | local fenbarstun1 = gui("TextLabel", fenframe4, "", 0, Color3.new(0, 0, 0), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, -4, 0))
| |
| 487 | local fenbarstun2 = gui("TextLabel", fenframe4, "", 0, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0, 0), UDim2.new(0.4, 0, 0, 0))
| |
| 488 | local fenbarstun3 = gui("TextLabel", fenframe4, "Stun(" .. Stun.Value .. ")", 1, Color3.new(0.960784, 0.803922, 0.188235), UDim2.new(0.2, 0, 0.2, 0), UDim2.new(0.4, 0, 0.2, 0))
| |
| 489 | local fenbarmove1 = gui("TextButton", fenframe3, move1, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
| |
| 490 | fenbarmove1.ZIndex = 2 | |
| 491 | local fenbarmove1b = gui("TextLabel", fenbarmove1, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
| |
| 492 | local fenbarmove2 = gui("TextButton", fenframe3, move2, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.1, 0), UDim2.new(0.4, 0, 0.4, 0))
| |
| 493 | fenbarmove2.ZIndex = 2 | |
| 494 | local fenbarmove2b = gui("TextLabel", fenbarmove2, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
| |
| 495 | local fenbarmove3 = gui("TextButton", fenframe3, move3, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.1, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
| |
| 496 | fenbarmove3.ZIndex = 2 | |
| 497 | local fenbarmove3b = gui("TextLabel", fenbarmove3, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
| |
| 498 | local fenbarmove4 = gui("TextButton", fenframe3, move4, 0.55, Color3.new(0.5, 0.5, 0.5), UDim2.new(0.6, 0, 0.6, 0), UDim2.new(0.4, 0, 0.4, 0))
| |
| 499 | fenbarmove4.ZIndex = 2 | |
| 500 | local fenbarmove4b = gui("TextLabel", fenbarmove4, "", 0.55, BrickColor.new(NewCol).Color, UDim2.new(0, 0, 0, 0), UDim2.new(0, 0, 1, 0))
| |
| 501 | local testpart = part(3, effects, 0, 1, BrickColor.new("Black"), "Handle", vt())
| |
| 502 | testpart.Anchored = true | |
| 503 | local scarfp2 = part(3, effects, 0, 1, BrickColor.new("Black"), "Handle", vt())
| |
| 504 | scarfp2.Anchored = true | |
| 505 | local modelzorz = Instance.new("Model")
| |
| 506 | modelzorz.Parent = Character | |
| 507 | modelzorz.Name = "Carnufico" | |
| 508 | local handle = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Handle", vt()) | |
| 509 | local prt1 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol2), "Part01", vt()) | |
| 510 | local prt2 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part02", vt())
| |
| 511 | local prt3 = part(3, modelzorz, 0, 1, BrickColor.new("Medium stone grey"), "Part03", vt())
| |
| 512 | local prt4 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part04", vt())
| |
| 513 | local prt5 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part05", vt())
| |
| 514 | local prt6 = part(3, modelzorz, 0, 1, BrickColor.new("Dark stone grey"), "Part06", vt())
| |
| 515 | local prt7 = part(3, modelzorz, 0.5, 1, BrickColor.new("Really black"), "Part07", vt())
| |
| 516 | local prt8 = part(3, modelzorz, 0.5, 1, BrickColor.new(NewCol), "Part07", vt()) | |
| 517 | local prt9 = part(3, modelzorz, 0.5, 1, BrickColor.new("Really black"), "Part09", vt())
| |
| 518 | local prt10 = part(3, modelzorz, 0.5, 1, BrickColor.new(NewCol), "Part10", vt()) | |
| 519 | msh1 = mesh("CylinderMesh", prt1, "", "", vt(0, 0, 0), vt(2, 30, 2))
| |
| 520 | msh2 = mesh("SpecialMesh", prt2, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 1, 1))
| |
| 521 | msh3 = mesh("CylinderMesh", prt3, "", "", vt(0, 0, 0), vt(3, 3, 3))
| |
| 522 | msh4 = mesh("SpecialMesh", prt4, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
| |
| 523 | msh5 = mesh("SpecialMesh", prt5, "FileMesh", "3270017", vt(0, 0, 0), vt(1, 1, 1))
| |
| 524 | msh6 = mesh("SpecialMesh", prt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.8, 1, 0.5))
| |
| 525 | msh7 = mesh("BlockMesh", prt7, "", "", vt(0, 0, 0), vt(1, 2, 2))
| |
| 526 | msh8 = mesh("BlockMesh", prt8, "", "", vt(0, 0, 0), vt(1, 1, 2))
| |
| 527 | msh9 = mesh("SpecialMesh", prt9, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
| |
| 528 | msh10 = mesh("SpecialMesh", prt10, "Wedge", "nil", vt(0, 0, 0), vt(1, 2, 4))
| |
| 529 | local handlewld = weld(handle, handle, Torso, euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6)) | |
| 530 | local wld1 = weld(prt1, prt1, handle, euler(0, 0, 0) * cf(0, 0, 0)) | |
| 531 | local wld2 = weld(prt1, prt2, prt1, euler(3.14, 0, 0) * cf(0, 3, 0)) | |
| 532 | local wld3 = weld(prt1, prt3, prt1, euler(0, 0, 0) * cf(0, -3.2, 0)) | |
| 533 | local wld4 = weld(prt1, prt4, prt3, euler(-1.57, 0, 1.57) * euler(0, -0.7, 0) * cf(-0.16, -0.2, -0.1)) | |
| 534 | local wld5 = weld(prt1, prt5, prt3, euler(-1.57, 0, -1.57) * euler(0, 0.7, 0) * cf(0.16, -0.2, -0.1)) | |
| 535 | local wld6 = weld(prt1, prt6, prt3, euler(0, 0, 0) * cf(0, -0.2, 0.1)) | |
| 536 | local wld7 = weld(prt1, prt7, prt6, euler(0, 0, 0) * cf(0, 0.2, 0.2)) | |
| 537 | local wld8 = weld(prt1, prt8, prt6, euler(0, 0, 0) * cf(0, -0.1, 0.2)) | |
| 538 | local wld9 = weld(prt1, prt9, prt7, euler(0, 0, 0) * cf(0, 0, 0.7)) | |
| 539 | local wld10 = weld(prt1, prt10, prt8, euler(0, 0, 0) * cf(0, -0.1, 0.7)) | |
| 540 | for i = 0, 2.355, 0.785 do | |
| 541 | local prt4 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Part04", vt())
| |
| 542 | msh4 = mesh("SpecialMesh", prt4, "FileMesh", "9756362", vt(0, 0, 0), vt(1, 0.2, 0.2))
| |
| 543 | local wld4 = weld(prt1, prt4, prt3, euler(0, i, 0) * cf(0, 0.6, 0)) | |
| 544 | end | |
| 545 | oldprt = prt9 | |
| 546 | oldprt2 = prt10 | |
| 547 | cff = 0.1 | |
| 548 | eul = 0.02 | |
| 549 | siz = 0.99 | |
| 550 | for i = 1, 6 do | |
| 551 | local prt11 = part(3, modelzorz, 0.5, 1, BrickColor.new("Really black"), "Part11", vt())
| |
| 552 | msh11 = mesh("SpecialMesh", prt11, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
| |
| 553 | local wld11 = weld(prt1, prt11, oldprt, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0)) | |
| 554 | if i < 4 then | |
| 555 | num = 6 | |
| 556 | if i == 3 then | |
| 557 | num = 6.8 | |
| 558 | end | |
| 559 | local prt12 = part(3, modelzorz, 0.5, 1, BrickColor.new("Black"), "Part12", vt())
| |
| 560 | msh12 = mesh("BlockMesh", prt12, "", "", vt(0, 0, 0), vt(siz / 2, 2, num))
| |
| 561 | local wld12 = weld(prt1, prt12, prt11, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0)) | |
| 562 | end | |
| 563 | do | |
| 564 | do | |
| 565 | oldprt = prt11 | |
| 566 | cff = 0.6 | |
| 567 | eul = 0.15 | |
| 568 | siz = siz - 0.1 | |
| 569 | -- DECOMPILER ERROR at PC2114: LeaveBlock: unexpected jumping out DO_STMT | |
| 570 | ||
| 571 | end | |
| 572 | end | |
| 573 | end | |
| 574 | modelzorz.Name = "Chakra Gauntlets" | |
| 575 | local rprt1 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Right Part01", vt())
| |
| 576 | local rprt2 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Right Part02", vt()) | |
| 577 | local rprt3 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Right Part03", vt())
| |
| 578 | local rprt4 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Right Part04", vt())
| |
| 579 | local rprt5 = part(3, modelzorz, 0, 1, BrickColor.new("Really black"), "Right Part05", vt())
| |
| 580 | local rprt6 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Right Part06", vt())
| |
| 581 | local lprt1 = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Left Part01", vt())
| |
| 582 | local lprt2 = part(3, modelzorz, 0, 1, BrickColor.new(NewCol), "Left Part02", vt()) | |
| 583 | local lprt3 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Left Part03", vt())
| |
| 584 | local lprt4 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Left Part04", vt())
| |
| 585 | local lprt5 = part(3, modelzorz, 0, 1, BrickColor.new("Really black"), "Left Part05", vt())
| |
| 586 | local lprt6 = part(3, modelzorz, 0.5, 1, BrickColor.new("White"), "Left Part06", vt())
| |
| 587 | local rmsh1 = mesh("SpecialMesh", rprt1, "FileMesh", "3270017", vt(0, 0, 0), vt(1.2, 1.2, 2))
| |
| 588 | local rmsh2 = mesh("CylinderMesh", rprt2, "", "", vt(0, 0, 0), vt(5, 2, 5))
| |
| 589 | local rmsh3 = mesh("SpecialMesh", rprt3, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 6))
| |
| 590 | local rmsh4 = mesh("SpecialMesh", rprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 3))
| |
| 591 | local rmsh5 = mesh("CylinderMesh", rprt5, "", "", vt(0, 0, 0), vt(4, 2.1, 4))
| |
| 592 | local rmsh6 = mesh("SpecialMesh", rprt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
| |
| 593 | local lmsh1 = mesh("SpecialMesh", lprt1, "FileMesh", "3270017", vt(0, 0, 0), vt(1.2, 1.2, 2))
| |
| 594 | local lmsh2 = mesh("CylinderMesh", lprt2, "", "", vt(0, 0, 0), vt(5, 2, 5))
| |
| 595 | local lmsh3 = mesh("SpecialMesh", lprt3, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 3, 6))
| |
| 596 | local lmsh4 = mesh("SpecialMesh", lprt4, "Wedge", "nil", vt(0, 0, 0), vt(0.5, 1.5, 3))
| |
| 597 | local lmsh5 = mesh("CylinderMesh", lprt5, "", "", vt(0, 0, 0), vt(4, 2.1, 4))
| |
| 598 | local lmsh6 = mesh("SpecialMesh", lprt6, "FileMesh", "9756362", vt(0, 0, 0), vt(0.5, 0.5, 0.5))
| |
| 599 | local rwld1 = weld(lprt1, rprt1, RightArm, euler(1.57, 0, 0) * cf(0, 0.3, 0)) | |
| 600 | local rwld2 = weld(rprt1, rprt2, rprt1, euler(0, 0, 1.57) * cf(-0.6, 0, 0)) | |
| 601 | local rwld3 = weld(rprt1, rprt3, rprt2, euler(-0.2, 3.14, 1.57) * cf(-0.7, 0, -0.4)) | |
| 602 | local rwld4 = weld(rprt1, rprt4, rprt2, euler(-0.4, 3.14, -1.57) * cf(0.6, 0, -0.2)) | |
| 603 | local rwld5 = weld(rprt1, rprt5, rprt2, euler(0, 0, 0) * cf(0, 0, 0)) | |
| 604 | local rwld6 = weld(rprt1, rprt6, rprt2, euler(0, 0, 0.785) * cf(0, 0, 0.45)) | |
| 605 | local lwld1 = weld(lprt1, lprt1, LeftArm, euler(1.57, 0, 0) * cf(0, 0.3, 0)) | |
| 606 | local lwld2 = weld(rprt1, lprt2, lprt1, euler(0, 0, 1.57) * cf(0.6, 0, 0)) | |
| 607 | local lwld3 = weld(rprt1, lprt3, lprt2, euler(-0.2, 3.14, 1.57) * cf(-0.7, 0, -0.4)) | |
| 608 | local lwld4 = weld(rprt1, lprt4, lprt2, euler(-0.4, 3.14, -1.57) * cf(0.6, 0, -0.2)) | |
| 609 | local lwld5 = weld(rprt1, lprt5, lprt2, euler(0, 0, 0) * cf(0, 0, 0)) | |
| 610 | local lwld6 = weld(rprt1, lprt6, lprt2, euler(0, 0, 0.785) * cf(0, 0, 0.45)) | |
| 611 | for _,c in pairs(modelzorz:children()) do | |
| 612 | table.insert(Weapon, c) | |
| 613 | end | |
| 614 | for _,c in pairs(rprt1:children()) do | |
| 615 | if c.className == "Motor" then | |
| 616 | table.insert(Welds, c) | |
| 617 | end | |
| 618 | end | |
| 619 | oldprt2 = prt10 | |
| 620 | cff = 0.1 | |
| 621 | eul = 0.02 | |
| 622 | siz = 0.99 | |
| 623 | for i = 1, 7 do | |
| 624 | local prt13 = part(3, modelzorz, 0.5, 1, BrickColor.new(NewCol), "Part13", vt()) | |
| 625 | msh13 = mesh("SpecialMesh", prt13, "Wedge", "nil", vt(0, 0, 0), vt(siz, 2, 6))
| |
| 626 | local wld13 = weld(prt1, prt13, oldprt2, euler(0, 0, 0) * cf(0, 0, cff) * euler(eul, 0, 0)) | |
| 627 | oldprt2 = prt13 | |
| 628 | cff = 0.6 | |
| 629 | eul = 0.14 | |
| 630 | siz = siz - 0.1 | |
| 631 | end | |
| 632 | for _,c in pairs(modelzorz:children()) do | |
| 633 | table.insert(Weapon, c) | |
| 634 | end | |
| 635 | for _,c in pairs(prt1:children()) do | |
| 636 | if c.className == "Motor" then | |
| 637 | table.insert(Welds, c) | |
| 638 | end | |
| 639 | end | |
| 640 | local hitbox = part(3, modelzorz, 0, 1, BrickColor.new("Black"), "Hitbox2", vt())
| |
| 641 | hitbox.Anchored = false | |
| 642 | local hbwld = weld(hitbox, hitbox, RootPart, euler(0, 0, 0) * cf(0, 0, 0)) | |
| 643 | local hitbox2 = part(3, nil, 0, 1, BrickColor.new("Black"), "Hitbox", vt(1, 1, 1))
| |
| 644 | hitbox2.Anchored = true | |
| 645 | local hitboxCF = cf(0, 0, 0) | |
| 646 | hboxpos = Instance.new("BodyPosition", nil)
| |
| 647 | hboxpos.P = 2000 | |
| 648 | hboxpos.D = 100 | |
| 649 | hboxpos.maxForce = Vector3.new(545000, 545000, 545000) | |
| 650 | hitboxweld = function() | |
| 651 | hbwld.Parent = modelzorz | |
| 652 | hbwld.Part0 = hitbox | |
| 653 | hbwld.Part1 = prt6 | |
| 654 | end | |
| 655 | if script.Parent.className ~= "HopperBin" then | |
| 656 | Tool = Instance.new("HopperBin")
| |
| 657 | Tool.Parent = Backpack | |
| 658 | Tool.Name = "Luminous Magic" | |
| 659 | script.Parent = Tool | |
| 660 | end | |
| 661 | Bin = script.Parent | |
| 662 | if Bin.Name == "Luminous Magic" then | |
| 663 | Bin.Name = "Luminous Magic" | |
| 664 | end | |
| 665 | local bodvel = Instance.new("BodyVelocity")
| |
| 666 | local bg = Instance.new("BodyGyro")
| |
| 667 | so = function(id, par, vol, pit) | |
| 668 | local sou = Instance.new("Sound", par or workspace)
| |
| 669 | sou.Volume = vol | |
| 670 | sou.Pitch = pit or 1 | |
| 671 | sou.SoundId = "http://www.roblox.com/asset/?id=" .. id | |
| 672 | coroutine.resume(coroutine.create(function(Sound) | |
| 673 | swait() | |
| 674 | Sound:play() | |
| 675 | end), sou) | |
| 676 | game:GetService("Debris"):AddItem(sou, 6)
| |
| 677 | end | |
| 678 | function clerp(a,b,t) | |
| 679 | local qa = {QuaternionFromCFrame(a)}
| |
| 680 | local qb = {QuaternionFromCFrame(b)}
| |
| 681 | local ax, ay, az = a.x, a.y, a.z | |
| 682 | local bx, by, bz = b.x, b.y, b.z | |
| 683 | local _t = 1-t | |
| 684 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 685 | end | |
| 686 | ||
| 687 | function QuaternionFromCFrame(cf) | |
| 688 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 689 | local trace = m00 + m11 + m22 | |
| 690 | if trace > 0 then | |
| 691 | local s = math.sqrt(1 + trace) | |
| 692 | local recip = 0.5/s | |
| 693 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 694 | else | |
| 695 | local i = 0 | |
| 696 | if m11 > m00 then | |
| 697 | i = 1 | |
| 698 | end | |
| 699 | if m22 > (i == 0 and m00 or m11) then | |
| 700 | i = 2 | |
| 701 | end | |
| 702 | if i == 0 then | |
| 703 | local s = math.sqrt(m00-m11-m22+1) | |
| 704 | local recip = 0.5/s | |
| 705 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 706 | elseif i == 1 then | |
| 707 | local s = math.sqrt(m11-m22-m00+1) | |
| 708 | local recip = 0.5/s | |
| 709 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 710 | elseif i == 2 then | |
| 711 | local s = math.sqrt(m22-m00-m11+1) | |
| 712 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 713 | end | |
| 714 | end | |
| 715 | end | |
| 716 | ||
| 717 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 718 | local xs, ys, zs = x + x, y + y, z + z | |
| 719 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 720 | local xx = x*xs | |
| 721 | local xy = x*ys | |
| 722 | local xz = x*zs | |
| 723 | local yy = y*ys | |
| 724 | local yz = y*zs | |
| 725 | local zz = z*zs | |
| 726 | 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)) | |
| 727 | end | |
| 728 | ||
| 729 | function QuaternionSlerp(a, b, t) | |
| 730 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 731 | local startInterp, finishInterp; | |
| 732 | if cosTheta >= 0.0001 then | |
| 733 | if (1 - cosTheta) > 0.0001 then | |
| 734 | local theta = math.acos(cosTheta) | |
| 735 | local invSinTheta = 1/math.sin(theta) | |
| 736 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 737 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 738 | else | |
| 739 | startInterp = 1-t | |
| 740 | finishInterp = t | |
| 741 | end | |
| 742 | else | |
| 743 | if (1+cosTheta) > 0.0001 then | |
| 744 | local theta = math.acos(-cosTheta) | |
| 745 | local invSinTheta = 1/math.sin(theta) | |
| 746 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 747 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 748 | else | |
| 749 | startInterp = t-1 | |
| 750 | finishInterp = t | |
| 751 | end | |
| 752 | end | |
| 753 | 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 | |
| 754 | end | |
| 755 | hideanim = function() | |
| 756 | equipped = false | |
| 757 | for i = 0, 1, 0.5 do | |
| 758 | swait() | |
| 759 | handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4) | |
| 760 | wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4) | |
| 761 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
| 762 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
| 763 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(3, 0, 1), 0.4) | |
| 764 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 765 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
| 766 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 767 | end | |
| 768 | for i = 0, 1, 0.2 do | |
| 769 | swait() | |
| 770 | handlewld.C0 = clerp(handlewld.C0, euler(0, -1.57, 0) * cf(0, 1, 0), 0.4) | |
| 771 | wld1.C0 = clerp(wld1.C0, cf(0, -1.5, 0) * euler(0.2, 0, 0.4), 0.4) | |
| 772 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
| 773 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
| 774 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4) | |
| 775 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 776 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
| 777 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 778 | RH.C0 = clerp(RH.C0, RHC0, 0.4) | |
| 779 | LH.C0 = clerp(LH.C0, LHC0, 0.4) | |
| 780 | end | |
| 781 | mdec2.Parent = nil | |
| 782 | handlewld.Part1 = Torso | |
| 783 | handlewld.C0 = euler(-2, 1.57, 0) * cf(-1, -0.5, -0.6) | |
| 784 | wld1.C0 = euler(0, 0, 0) * cf(0, 0, 0) | |
| 785 | for i = 0, 1, 0.3 do | |
| 786 | swait() | |
| 787 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.4) | |
| 788 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
| 789 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 790 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 791 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 792 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 793 | end | |
| 794 | mdec.Parent = Decrease | |
| 795 | end | |
| 796 | mdec.Parent = Decrease | |
| 797 | equipanim = function() | |
| 798 | equipped = true | |
| 799 | mdec.Parent = nil | |
| 800 | for i = 0, 1, 0.5 do | |
| 801 | swait() | |
| 802 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
| 803 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
| 804 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(2, 0, 0.2), 0.4) | |
| 805 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 806 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
| 807 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 808 | end | |
| 809 | for i = 0, 1, 0.2 do | |
| 810 | swait() | |
| 811 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.4), 0.4) | |
| 812 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.4) | |
| 813 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(4, 0, 1), 0.4) | |
| 814 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 815 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.2), 0.4) | |
| 816 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 817 | end | |
| 818 | mdec2.Parent = Decrease | |
| 819 | handlewld.Part1 = RightArm | |
| 820 | handlewld.C0 = euler(0, -1.57, 0) * cf(0, 1, 0) | |
| 821 | wld1.C0 = cf(0, -1.5, 0) * euler(0.2, 0, 0.4) | |
| 822 | end | |
| 823 | StaggerAnim = function() | |
| 824 | attack = true | |
| 825 | removeControl() | |
| 826 | if invisible == true then | |
| 827 | Clone(0.1) | |
| 828 | end | |
| 829 | for i = 1, math.random(2, 4) do | |
| 830 | ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
| |
| 831 | end | |
| 832 | for i = 0, 1, 0.35 do | |
| 833 | swait() | |
| 834 | if Rooted.Value == false then | |
| 835 | Torso.Velocity = RootPart.CFrame.lookVector * -40 | |
| 836 | end | |
| 837 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.3) | |
| 838 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.4), 0.3) | |
| 839 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.3) | |
| 840 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 841 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3) | |
| 842 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 843 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.3) | |
| 844 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3) | |
| 845 | end | |
| 846 | for i = 0, 1, 0.2 do | |
| 847 | swait() | |
| 848 | if Rooted.Value == false then | |
| 849 | Torso.Velocity = RootPart.CFrame.lookVector * -40 | |
| 850 | end | |
| 851 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.5) * euler(0.1, 0, 0), 0.4) | |
| 852 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(-0.5, 0, -0.4), 0.4) | |
| 853 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 0.7) * euler(0, -0.7, 0), 0.4) | |
| 854 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 855 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.4) | |
| 856 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 857 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.4) | |
| 858 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.5), 0.4) | |
| 859 | end | |
| 860 | for i = 0, 1, 0.1 do | |
| 861 | swait() | |
| 862 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.4) * euler(0.5, 0, 0), 0.3) | |
| 863 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.8) * euler(-0.2, 0, -0.4), 0.3) | |
| 864 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.3, 0, 0.4) * euler(0, -0.4, 0), 0.3) | |
| 865 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 866 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2) * euler(0, 0.4, 0), 0.3) | |
| 867 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 868 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 1.2), 0.3) | |
| 869 | LH.C0 = clerp(LH.C0, cf(-1, 0, -1) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3) | |
| 870 | end | |
| 871 | for i = 1, 50 do | |
| 872 | swait() | |
| 873 | if StunT.Value <= Stun.Value then | |
| 874 | break | |
| 875 | end | |
| 876 | end | |
| 877 | do | |
| 878 | resumeControl() | |
| 879 | combo = 0 | |
| 880 | attack = false | |
| 881 | end | |
| 882 | end | |
| 883 | StaggerHitt = function() | |
| 884 | attack = true | |
| 885 | if invisible == true then | |
| 886 | Clone(0.1) | |
| 887 | end | |
| 888 | for i = 1, math.random(2, 4) do | |
| 889 | ClangEffect(BrickColor.new("New Yeller"), cf(hitbox.Position) * euler(math.random(-50, 50) / 100, math.random(-50, 50), math.random(-50, 50) / 100), 0, 0.1, 0.2, math.random(150, 300) / 1000)
| |
| 890 | end | |
| 891 | for i = 0, 1, 0.1 do | |
| 892 | swait() | |
| 893 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0.7) * euler(0.1, 0, 0), 0.3) | |
| 894 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(-0.2, 0, -0.6), 0.3) | |
| 895 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4, 0, 0.9) * euler(0, -0.7, 0), 0.3) | |
| 896 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 897 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4) * euler(0, 0.4, 0), 0.3) | |
| 898 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 899 | RH.C0 = clerp(RH.C0, cf(1, -0.8, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, -0.4), 0.3) | |
| 900 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0.2, 0.2), 0.3) | |
| 901 | end | |
| 902 | attack = false | |
| 903 | end | |
| 904 | StunAnim = function() | |
| 905 | attack = true | |
| 906 | removeControl() | |
| 907 | Stunned.Value = true | |
| 908 | showDamage(Character, "Stunned", "Interrupt") | |
| 909 | local dec = Instance.new("NumberValue", Decrease)
| |
| 910 | dec.Name = "DecreaseMvmt" | |
| 911 | dec.Value = 10 | |
| 912 | for i = 0, 1, 0.3 do | |
| 913 | swait() | |
| 914 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
| 915 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3) | |
| 916 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, -0.5), 0.2) | |
| 917 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0.2, 0, -3), 0.2) | |
| 918 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.2, 0, 1.3), 0.2) | |
| 919 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 920 | LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1, 0, 0.4) * euler(0, -0.1, 0), 0.2) | |
| 921 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 922 | RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.3), 0.25) | |
| 923 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.2, 0, 0), 0.25) | |
| 924 | end | |
| 925 | for i = 0, 1, 0.3 do | |
| 926 | swait() | |
| 927 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.3) | |
| 928 | wld1.C0 = clerp(wld1.C0, euler(0, 0, 0) * cf(0, 0, 0) * euler(1.57, 0, 0), 0.3) | |
| 929 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -0.5), 0.2) | |
| 930 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.5) * euler(0.8, 0, -3), 0.2) | |
| 931 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2) | |
| 932 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 933 | LW.C0 = clerp(LW.C0, cf(-1.2, 0.5, -0.4) * euler(1.2, 0, 0.8) * euler(0, -0.1, 0), 0.2) | |
| 934 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 935 | RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.5, 0, 0.6), 0.25) | |
| 936 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(0.1, 0, 0.7), 0.25) | |
| 937 | end | |
| 938 | for i = 0, 1, 0.3 do | |
| 939 | swait() | |
| 940 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.3, 0, -1), 0.2) | |
| 941 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1.57, 0, -3), 0.2) | |
| 942 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.8, 0, 1.3), 0.2) | |
| 943 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 944 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, -0.8) * euler(0, -0.1, 0), 0.2) | |
| 945 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 946 | RH.C0 = clerp(RH.C0, cf(1, -0.6, 0) * euler(0, 1.57, 0) * euler(-0.2, 0, 0.6), 0.25) | |
| 947 | LH.C0 = clerp(LH.C0, cf(-1, -0.8, 0) * euler(0, -1.57, 0) * euler(-0.1, 0, 0.3), 0.25) | |
| 948 | end | |
| 949 | local gairost = Instance.new("BodyGyro")
| |
| 950 | gairost.Parent = RootPart | |
| 951 | gairost.maxTorque = Vector3.new(400000, 0, 400000) * math.huge | |
| 952 | gairost.P = 20000 | |
| 953 | gairost.cframe = cf(0, 0, 0) | |
| 954 | for i = 0, 1, 0.1 do | |
| 955 | swait() | |
| 956 | if hitfloor ~= nil then | |
| 957 | Torso.Velocity = vt(0, 0, 0) | |
| 958 | end | |
| 959 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), 0.3) | |
| 960 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2.5) * euler(1.57, 0, -3.14), 0.3) | |
| 961 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1.5) * euler(0.2, 0, 0), 0.3) | |
| 962 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 963 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.5, 0, -1.57) * euler(0, 0, 0), 0.3) | |
| 964 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 965 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0), 0.3) | |
| 966 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 0), 0.3) | |
| 967 | end | |
| 968 | for i = 1, 70 do | |
| 969 | swait() | |
| 970 | gairost.cframe = RootPart.CFrame | |
| 971 | if hitfloor ~= nil then | |
| 972 | Torso.Velocity = vt(0, 0, 0) | |
| 973 | end | |
| 974 | end | |
| 975 | for i = 0, 1, 0.2 do | |
| 976 | swait() | |
| 977 | Stun.Value = 0 | |
| 978 | gairost.cframe = RootPart.CFrame | |
| 979 | Neck.C0 = clerp(Neck.C0, necko * euler(0.2, 0, 0), 0.3) | |
| 980 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -2) * euler(1, 0, -4), 0.3) | |
| 981 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-1.57, 0, 1) * euler(0.2, -1, 0), 0.3) | |
| 982 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 983 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.2, 0, 0.2) * euler(0, 0, 0), 0.3) | |
| 984 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 985 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(-0.3, 0.5, 0.4), 0.3) | |
| 986 | LH.C0 = clerp(LH.C0, cf(-1, -1, -1) * euler(0, -1.57, 0) * euler(-0.1, 0.2, 1), 0.3) | |
| 987 | end | |
| 988 | resumeControl() | |
| 989 | gairost.Parent = nil | |
| 990 | dec.Parent = nil | |
| 991 | Stun.Value = 0 | |
| 992 | combo = 0 | |
| 993 | Stunned.Value = false | |
| 994 | attack = false | |
| 995 | for i = 1, 10 do | |
| 996 | swait() | |
| 997 | Stun.Value = 0 | |
| 998 | end | |
| 999 | end | |
| 1000 | attackone = function() | |
| 1001 | end | |
| 1002 | attacktwo = function() | |
| 1003 | end | |
| 1004 | attackthree = function() | |
| 1005 | end | |
| 1006 | attackfour = function() | |
| 1007 | end | |
| 1008 | ||
| 1009 | Invisibility = function() | |
| 1010 | if invisible == false then | |
| 1011 | so("2767090", Torso, 1, 1)
| |
| 1012 | MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 0.5, 1.5, 0.5, 0.1) | |
| 1013 | MagicWave(BrickColor.new(NewCol), scarfp2.CFrame * euler(math.rad(180), 0, 0), 1, 1, 1, 1, 0.5, 1, 0.1) | |
| 1014 | MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 10, 10, 10, 0.05) | |
| 1015 | MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 5, 5, 5, 0.05) | |
| 1016 | invisnum.Value = invisnum.Value - 10 | |
| 1017 | for _,c in pairs(Decrease:children()) do | |
| 1018 | if c.Name == "DecreaseMvmt" and c:findFirstChild("Renegade") ~= nil then
| |
| 1019 | c.Parent = nil | |
| 1020 | end | |
| 1021 | end | |
| 1022 | d = Instance.new("NumberValue", Decrease)
| |
| 1023 | d.Name = "DecreaseAtk" | |
| 1024 | d.Value = -5 | |
| 1025 | dur = Instance.new("NumberValue", d)
| |
| 1026 | dur.Name = "Duration" | |
| 1027 | dur.Value = 420 | |
| 1028 | display = "+Damage" | |
| 1029 | showDamage(Character, display, "Debuff") | |
| 1030 | da = Instance.new("BoolValue", d)
| |
| 1031 | da.Name = "Renegade" | |
| 1032 | DecreaseStat(Character, "Defense", 0.1, 80) | |
| 1033 | invisible = true | |
| 1034 | isinvis.Value = true | |
| 1035 | passive3.Parent = Decrease | |
| 1036 | else | |
| 1037 | invisible = false | |
| 1038 | isinvis.Value = false | |
| 1039 | passive3.Parent = nil | |
| 1040 | end | |
| 1041 | end | |
| 1042 | ||
| 1043 | Runes = {"rbxassetid://0"}
| |
| 1044 | ContentProvider = game:GetService("ContentProvider")
| |
| 1045 | for _,v in pairs(Runes) do | |
| 1046 | ContentProvider:Preload(v) | |
| 1047 | end | |
| 1048 | do2 = function() | |
| 1049 | local ChatService = game:GetService("Chat")
| |
| 1050 | ||
| 1051 | neck.C0 = neck.C0 * CFrame.Angles(0,0,0) | |
| 1052 | ChatService:Chat(Head, "Sirius!", "Red") | |
| 1053 | wait(0) | |
| 1054 | if attack == true then | |
| 1055 | return | |
| 1056 | end | |
| 1057 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
| 1058 | return | |
| 1059 | end | |
| 1060 | if cooldownmax <= cooldowns[1] and mana.Value >= 0 then | |
| 1061 | deb = 0.2 | |
| 1062 | attack = true | |
| 1063 | cooldowns[1] = 100 | |
| 1064 | mana.Value = mana.Value - 20 | |
| 1065 | local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt()) | |
| 1066 | do | |
| 1067 | swait() | |
| 1068 | local dec = Instance.new("NumberValue", Decrease)
| |
| 1069 | dec.Name = "DecreaseMvmt" | |
| 1070 | dec.Value = 0.2 | |
| 1071 | for i = 0, 1, 0.2 do | |
| 1072 | swait() | |
| 1073 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 1074 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 1075 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3) | |
| 1076 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3) | |
| 1077 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1078 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 1079 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1080 | do | |
| 1081 | if StaggerHit.Value == true then | |
| 1082 | break | |
| 1083 | end | |
| 1084 | end | |
| 1085 | end | |
| 1086 | end | |
| 1087 | if Stagger.Value ~= true then --and StunT.Value > Stun.Value then | |
| 1088 | if StaggerHit.Value ~= true then | |
| 1089 | swait() | |
| 1090 | arcorb = true | |
| 1091 | orb.Anchored = true | |
| 1092 | orb.CFrame = RootPart.CFrame * cf(0, 50, 0) | |
| 1093 | so("515578896", orb, 2, 0.75)
| |
| 1094 | so("515578896", orb, 3, 0.5)
| |
| 1095 | so("515578896", orb, 3.5, 0.25)
| |
| 1096 | do | |
| 1097 | local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(150, 150, 150))
| |
| 1098 | ogui = Instance.new("BillboardGui")
| |
| 1099 | ogui.Parent = orb | |
| 1100 | ogui.Size = UDim2.new(5, 0, 5, 0) | |
| 1101 | oimg = Instance.new("ImageLabel")
| |
| 1102 | oimg.Parent = ogui | |
| 1103 | oimg.BackgroundTransparency = 1 | |
| 1104 | oimg.Size = UDim2.new(1, 0, 1, 0) | |
| 1105 | oimg.Image = Runes[math.random(1, #Runes)] | |
| 1106 | oimg.ImageColor3 = BrickColor.new(NewCol).Color | |
| 1107 | orbnum = 100 | |
| 1108 | while arcorb==true do | |
| 1109 | if arcorb == true then | |
| 1110 | swait() | |
| 1111 | end | |
| 1112 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1113 | if StaggerHit.Value == true then | |
| 1114 | break | |
| 1115 | end | |
| 1116 | orb.CFrame = RootPart.CFrame * cf(0, 50, -0) | |
| 1117 | MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 2.5, 2.5, 0, 0.125) | |
| 1118 | if orbnum < 0 or MMouse == nil then | |
| 1119 | arcorb = false | |
| 1120 | end | |
| 1121 | swait() | |
| 1122 | orbnum = orbnum - 1 | |
| 1123 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
| 1124 | arcorb = false | |
| 1125 | break | |
| 1126 | end | |
| 1127 | end | |
| 1128 | end | |
| 1129 | if MMouse.Hit.p ~= nil then | |
| 1130 | swait() | |
| 1131 | local MainPos = orb.Position | |
| 1132 | local MainPos2 = MMouse.Hit.p | |
| 1133 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
| 1134 | so("203691467", orb, 3, 0.5)
| |
| 1135 | coroutine.resume(coroutine.create(function(Pos1, Pos2, Look) | |
| 1136 | local num = 50 | |
| 1137 | repeat | |
| 1138 | swait() | |
| 1139 | local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character) | |
| 1140 | orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos) | |
| 1141 | MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 100, 100, 100, -5, -5, -5, 0.075) | |
| 1142 | MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, -2.5, -2.5, 0, 0.1) | |
| 1143 | Pos1 = Pos1 + Look.lookVector * 8.5 | |
| 1144 | orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p) | |
| 1145 | if ohit ~= nil then | |
| 1146 | num = 0 | |
| 1147 | end | |
| 1148 | num = num - 1 | |
| 1149 | until num <= 0 | |
| 1150 | local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
| |
| 1151 | ref.Anchored = true | |
| 1152 | ref.CFrame = cf(orb.Position) | |
| 1153 | so("517251746", ref, 5, 1.25)
| |
| 1154 | so("517251746", ref, 5, 1)
| |
| 1155 | so("138186576", ref, 5, 1)
| |
| 1156 | so("414516914", ref, 5, 0.75)
| |
| 1157 | game:GetService("Debris"):AddItem(ref, 5)
| |
| 1158 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 25, 25, 25, 0.05) | |
| 1159 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 40, 40, 40, 0.065) | |
| 1160 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 50, 50, 50, 0.075) | |
| 1161 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 150, 150, 150, 80, 80, 80, 0.085) | |
| 1162 | MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 5, 5, 0, 0.025) | |
| 1163 | MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 7.5, 7.5, 0, 0.025) | |
| 1164 | MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 10, 10, 0, 0.025) | |
| 1165 | MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 50, 50, 1, 10.5, 10.5, 0, 0.025) | |
| 1166 | MagniDamage(ref, 65, 16, 24, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true) | |
| 1167 | if isjugg == false then | |
| 1168 | end | |
| 1169 | orb.Parent = nil | |
| 1170 | end | |
| 1171 | ), MainPos, MainPos2, MouseLook) | |
| 1172 | end | |
| 1173 | do | |
| 1174 | dec.Parent = nil | |
| 1175 | swait() | |
| 1176 | attack = false | |
| 1177 | end | |
| 1178 | end | |
| 1179 | end | |
| 1180 | end | |
| 1181 | end | |
| 1182 | end | |
| 1183 | end | |
| 1184 | do1 = function() | |
| 1185 | local ChatService = game:GetService("Chat")
| |
| 1186 | ||
| 1187 | neck.C0 = neck.C0 * CFrame.Angles(0,0,0) | |
| 1188 | ChatService:Chat(Head, "Luminous Bullet!", "Red") | |
| 1189 | wait(0) | |
| 1190 | if attack == true then | |
| 1191 | return | |
| 1192 | end | |
| 1193 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
| 1194 | return | |
| 1195 | end | |
| 1196 | if cooldownmax <= cooldowns[1] and mana.Value >= 0 then | |
| 1197 | deb = 0.2 | |
| 1198 | attack = true | |
| 1199 | cooldowns[1] = 100 | |
| 1200 | mana.Value = mana.Value - 20 | |
| 1201 | local orb = part(3, modelzorz, 0, 0.5, BrickColor.new(NewCol), "Effect", vt()) | |
| 1202 | do | |
| 1203 | swait() | |
| 1204 | local dec = Instance.new("NumberValue", Decrease)
| |
| 1205 | dec.Name = "DecreaseMvmt" | |
| 1206 | dec.Value = 0.2 | |
| 1207 | for i = 0, 1, 0.2 do | |
| 1208 | swait() | |
| 1209 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 1.57) * euler(0, 0, 0), 0.3) | |
| 1210 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.2) * euler(0, 0, -1.57), 0.3) | |
| 1211 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1) * euler(0, 1.5, 0), 0.3) | |
| 1212 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 1213 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(1.57, 0, -1.57) * euler(0, 0, 0), 0.3) | |
| 1214 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.3) | |
| 1215 | RH.C0 = clerp(RH.C0, cf(0.5, -1, -0.3) * euler(0, 1.57, 0) * euler(0, 1.57, -0.3), 0.3) | |
| 1216 | LH.C0 = clerp(LH.C0, cf(-0.5, -1, 0.3) * euler(0, -1.57, 0) * euler(0, 1.57, 0.1), 0.3) | |
| 1217 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1218 | do | |
| 1219 | if StaggerHit.Value == true then | |
| 1220 | break | |
| 1221 | end | |
| 1222 | end | |
| 1223 | end | |
| 1224 | end | |
| 1225 | if Stagger.Value ~= true then --and StunT.Value > Stun.Value then | |
| 1226 | if StaggerHit.Value ~= true then | |
| 1227 | swait() | |
| 1228 | arcorb = true | |
| 1229 | orb.Anchored = true | |
| 1230 | orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3) | |
| 1231 | so("515578896", orb, 2, 0.75)
| |
| 1232 | do | |
| 1233 | local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
| |
| 1234 | ogui = Instance.new("BillboardGui")
| |
| 1235 | ogui.Parent = orb | |
| 1236 | ogui.Size = UDim2.new(5, 0, 5, 0) | |
| 1237 | oimg = Instance.new("ImageLabel")
| |
| 1238 | oimg.Parent = ogui | |
| 1239 | oimg.BackgroundTransparency = 1 | |
| 1240 | oimg.Size = UDim2.new(1, 0, 1, 0) | |
| 1241 | oimg.Image = Runes[math.random(1, #Runes)] | |
| 1242 | oimg.ImageColor3 = BrickColor.new(NewCol).Color | |
| 1243 | orbnum = 100 | |
| 1244 | while arcorb==true do | |
| 1245 | if arcorb == true then | |
| 1246 | swait() | |
| 1247 | end | |
| 1248 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1249 | if StaggerHit.Value == true then | |
| 1250 | break | |
| 1251 | end | |
| 1252 | orb.CFrame = RootPart.CFrame * cf(0, 0.5, -3) | |
| 1253 | MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, -0.5, -0.5, 0, 0.1) | |
| 1254 | MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, 0.25, 0.25, 0, 0.1) | |
| 1255 | if orbnum < 0 or MMouse == nil then | |
| 1256 | arcorb = false | |
| 1257 | end | |
| 1258 | swait() | |
| 1259 | orbnum = orbnum - 1 | |
| 1260 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
| 1261 | arcorb = false | |
| 1262 | break | |
| 1263 | end | |
| 1264 | end | |
| 1265 | end | |
| 1266 | if MMouse.Hit.p ~= nil then | |
| 1267 | swait() | |
| 1268 | local MainPos = orb.Position | |
| 1269 | local MainPos2 = MMouse.Hit.p | |
| 1270 | local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2) | |
| 1271 | so("203691467", orb, 3, 0.75)
| |
| 1272 | coroutine.resume(coroutine.create(function(Pos1, Pos2, Look) | |
| 1273 | local num = 50 | |
| 1274 | repeat | |
| 1275 | swait() | |
| 1276 | local ohit, opos = rayCast(Pos1, Look.lookVector, 5, Character) | |
| 1277 | orb.CFrame = CFrame.new((Pos1 + opos) / 2, opos) | |
| 1278 | MagicCircle(BrickColor.new(NewCol), cf(orb.Position), 15, 15, 15, -1, -1, -1, 0.075) | |
| 1279 | MagicRing(BrickColor.new(NewCol2), cf(orb.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 5, 5, 1, -0.25, -0.25, 0, 0.075) | |
| 1280 | Pos1 = Pos1 + Look.lookVector * 5 | |
| 1281 | orb.CFrame = CFrame.new(orb.Position, MMouse.Hit.p) | |
| 1282 | if ohit ~= nil then | |
| 1283 | num = 0 | |
| 1284 | end | |
| 1285 | num = num - 1 | |
| 1286 | until num <= 0 | |
| 1287 | local ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Effect", vt())
| |
| 1288 | ref.Anchored = true | |
| 1289 | ref.CFrame = cf(orb.Position) | |
| 1290 | so("168413145", ref, 2.5, 1.25)
| |
| 1291 | game:GetService("Debris"):AddItem(ref, 5)
| |
| 1292 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 10, 10, 10, 5, 5, 5, 0.05) | |
| 1293 | MagicCircle(BrickColor.new(NewCol), cf(ref.Position), 10, 10, 10, 10, 10, 10, 0.075) | |
| 1294 | MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 1, 2, 2, 0, 0.025) | |
| 1295 | MagicRing(BrickColor.new(NewCol2), cf(ref.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 10, 10, 1, 2.5, 2.5, 0, 0.025) | |
| 1296 | MagniDamage(ref, 22.5, 8, 12, math.random(5, 10), "Normal", RootPart, 0.5, 2, (math.random(5, 7)), nil, true) | |
| 1297 | if isjugg == false then | |
| 1298 | end | |
| 1299 | orb.Parent = nil | |
| 1300 | end | |
| 1301 | ), MainPos, MainPos2, MouseLook) | |
| 1302 | end | |
| 1303 | do | |
| 1304 | dec.Parent = nil | |
| 1305 | swait() | |
| 1306 | attack = false | |
| 1307 | end | |
| 1308 | end | |
| 1309 | end | |
| 1310 | end | |
| 1311 | end | |
| 1312 | end | |
| 1313 | end | |
| 1314 | do3 = function() | |
| 1315 | local ChatService = game:GetService("Chat")
| |
| 1316 | ||
| 1317 | neck.C0 = neck.C0 * CFrame.Angles(0,0,0) | |
| 1318 | ChatService:Chat(Head, "Luminous Blast!", "Red") | |
| 1319 | wait(0) | |
| 1320 | if attack == true then | |
| 1321 | return | |
| 1322 | end | |
| 1323 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
| 1324 | return | |
| 1325 | end | |
| 1326 | if cooldownmax <= cooldowns[3] and mana.Value >= 30 then | |
| 1327 | attack = true | |
| 1328 | cooldowns[3] = 0 | |
| 1329 | local dec = Instance.new("NumberValue", Decrease)
| |
| 1330 | dec.Name = "DecreaseMvmt" | |
| 1331 | dec.Value = 10 | |
| 1332 | local dec2 = Instance.new("NumberValue", Decrease)
| |
| 1333 | dec2.Name = "DecreaseDef" | |
| 1334 | dec2.Value = -10 | |
| 1335 | LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5) | |
| 1336 | for i = 0, 1, 0.1 do | |
| 1337 | swait() | |
| 1338 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
| 1339 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
| 1340 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
| 1341 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1342 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
| 1343 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1344 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
| 1345 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
| 1346 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1347 | do | |
| 1348 | if StaggerHit.Value == true then | |
| 1349 | break | |
| 1350 | end | |
| 1351 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1352 | ||
| 1353 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT | |
| 1354 | ||
| 1355 | end | |
| 1356 | end | |
| 1357 | end | |
| 1358 | so("315746833", RootPart, 2, 1)
| |
| 1359 | for i = 1, 50 do | |
| 1360 | swait() | |
| 1361 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 0, 5, 0, 20, 0, 20, 0.075, 3) | |
| 1362 | end | |
| 1363 | do | |
| 1364 | mana.Value = mana.Value - 30 | |
| 1365 | passivenum = -30 | |
| 1366 | dec.Parent = nil | |
| 1367 | dec2.Parent = nil | |
| 1368 | passive.Value = -1 | |
| 1369 | so("414516914", RootPart, 2, 0.5)
| |
| 1370 | so("168413145", RootPart, 2, 1)
| |
| 1371 | so("168413145", RootPart, 2, 0.75)
| |
| 1372 | so("168413145", RootPart, 2, 0.5)
| |
| 1373 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 50, 50, 50, 0.1) | |
| 1374 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 50, 0, 50, 0.075) | |
| 1375 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 1, 1, 1, 100, 0, 100, 0.1) | |
| 1376 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 50, 1, 50, 0.75, 0, 0.75, 0.025) | |
| 1377 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 50, 1, 50, 0.75, 0, 0.75, 0.025) | |
| 1378 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 50, 1, 50, 0.75, 0, 0.75, 0.025) | |
| 1379 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 10, 1, 10, 10, 0, 10, 0.1) | |
| 1380 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 25, 25, 25, 0.075) | |
| 1381 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 150, 150, 150, 2.5, 2.5, 2.5, 0.025) | |
| 1382 | MagniDamage(RootPart, 35, 10, 12, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false) | |
| 1383 | wait(0.25) | |
| 1384 | so("138186576", RootPart, 5, 1)
| |
| 1385 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 175, 1, 175, -5, 100, -5, 0.025) | |
| 1386 | for i = 0, 1, 0.1 do | |
| 1387 | swait() | |
| 1388 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
| 1389 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
| 1390 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
| 1391 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1392 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
| 1393 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1394 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
| 1395 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
| 1396 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1397 | do | |
| 1398 | if StaggerHit.Value == true then | |
| 1399 | break | |
| 1400 | end | |
| 1401 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1402 | ||
| 1403 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT | |
| 1404 | ||
| 1405 | end | |
| 1406 | end | |
| 1407 | end | |
| 1408 | dec.Parent = nil | |
| 1409 | dec2.Parent = nil | |
| 1410 | attack = false | |
| 1411 | end | |
| 1412 | end | |
| 1413 | end | |
| 1414 | do4 = function() | |
| 1415 | local ChatService = game:GetService("Chat")
| |
| 1416 | ||
| 1417 | neck.C0 = neck.C0 * CFrame.Angles(0,0,0) | |
| 1418 | ChatService:Chat(Head, "Bright Destruction!", "Red") | |
| 1419 | wait(0) | |
| 1420 | if attack == true then | |
| 1421 | return | |
| 1422 | end | |
| 1423 | if Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true then | |
| 1424 | return | |
| 1425 | end | |
| 1426 | if cooldownmax <= cooldowns[3] and mana.Value >= 30 then | |
| 1427 | attack = true | |
| 1428 | cooldowns[3] = 0 | |
| 1429 | local dec = Instance.new("NumberValue", Decrease)
| |
| 1430 | dec.Name = "DecreaseMvmt" | |
| 1431 | dec.Value = 10 | |
| 1432 | local dec2 = Instance.new("NumberValue", Decrease)
| |
| 1433 | dec2.Name = "DecreaseDef" | |
| 1434 | dec2.Value = -10 | |
| 1435 | LW.C0 = clerp(LW.C0, cf(-1, 0.5, -0.5) * euler(2, 0, 1), 0.5) | |
| 1436 | for i = 0, 1, 0.1 do | |
| 1437 | swait() | |
| 1438 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
| 1439 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
| 1440 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
| 1441 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1442 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
| 1443 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1444 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
| 1445 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
| 1446 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1447 | do | |
| 1448 | if StaggerHit.Value == true then | |
| 1449 | break | |
| 1450 | end | |
| 1451 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1452 | ||
| 1453 | -- DECOMPILER ERROR at PC281: LeaveBlock: unexpected jumping out IF_STMT | |
| 1454 | ||
| 1455 | end | |
| 1456 | end | |
| 1457 | end | |
| 1458 | so("315746833", RootPart, 2, 1.25)
| |
| 1459 | so("315746833", RootPart, 2, 0.75)
| |
| 1460 | do | |
| 1461 | wait(0) | |
| 1462 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 450, 450, 450, -10, -10, -10, 0.025) | |
| 1463 | wait(1) | |
| 1464 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 500, 500, 500, -15, -15, -15, 0.025) | |
| 1465 | wait(1) | |
| 1466 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 550, 550, 550, -20, -20, -20, 0.025) | |
| 1467 | wait(1) | |
| 1468 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 600, 600, 600, -22.5, -22.5, -22.5, 0.025) | |
| 1469 | wait(1) | |
| 1470 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 650, 650, 650, -25, -25, -25, 0.025) | |
| 1471 | wait(1) | |
| 1472 | MagicCircle(BrickColor.new(NewCol2), cf(RootPart.Position), 700, 700, 700, -27.5, -27.5, -27.5, 0.025) | |
| 1473 | wait(1) | |
| 1474 | end | |
| 1475 | do | |
| 1476 | mana.Value = mana.Value - 30 | |
| 1477 | passivenum = -30 | |
| 1478 | dec.Parent = nil | |
| 1479 | dec2.Parent = nil | |
| 1480 | passive.Value = -1 | |
| 1481 | so("414516914", RootPart, 5, 0.35)
| |
| 1482 | so("168413145", RootPart, 5, 0.25)
| |
| 1483 | so("414516914", RootPart, 5, 0.5)
| |
| 1484 | so("414516914", RootPart, 5, 0.75)
| |
| 1485 | so("517251746", RootPart, 10, 1)
| |
| 1486 | so("517251746", RootPart, 10, 0.75)
| |
| 1487 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 100, 100, 100, 0.1) | |
| 1488 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01) | |
| 1489 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01) | |
| 1490 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01) | |
| 1491 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01) | |
| 1492 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 100, 5, 100, 1, 0, 1, 0.01) | |
| 1493 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 10, 1, 10, 50, 0, 50, 0.1) | |
| 1494 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 10, 10, 10, 50, 50, 50, 0.075) | |
| 1495 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 250, 250, 250, 2.5, 2.5, 2.5, 0.025) | |
| 1496 | MagicCircle(BrickColor.new(NewCol2), cf(Torso.Position), 275, 275, 275, 5, 5, 5, 0.03) | |
| 1497 | MagniDamage(RootPart, 100, 15, 22, math.random(30, 50), "Knockdown2", RootPart, 0, 1, (math.random(4, 8)), nil, nil, false) | |
| 1498 | wait(0.45) | |
| 1499 | so("138186576", RootPart, 10, 0.75)
| |
| 1500 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 0, 1, 0, 50, 0, 50, 0.075) | |
| 1501 | wait(0.45) | |
| 1502 | so("138186576", RootPart, 10, 0.75)
| |
| 1503 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 0, 1, 0, 50, 0, 50, 0.075) | |
| 1504 | wait(0.45) | |
| 1505 | so("138186576", RootPart, 10, 0.75)
| |
| 1506 | MagicWave(BrickColor.new(NewCol2), cf(Torso.Position) * euler(0, math.random(-50, 50), 0), 0, 1, 0, 50, 0, 50, 0.075) | |
| 1507 | for i = 0, 1, 0.1 do | |
| 1508 | swait() | |
| 1509 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.4, 0, -0.2), 0.4) | |
| 1510 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -1.5) * euler(0.8, 0, 0.5), 0.4) | |
| 1511 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.4, 0, 0.5), 0.4) | |
| 1512 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1513 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2, 0, -0.4), 0.4) | |
| 1514 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.4) | |
| 1515 | RH.C0 = clerp(RH.C0, RHC0 * cf(0, 0, 0) * euler(0, -0.5, -0.5), 0.4) | |
| 1516 | LH.C0 = clerp(LH.C0, LHC0 * cf(-0.5, 1, 0) * euler(0.5, 0, -0.5), 0.4) | |
| 1517 | if Stagger.Value ~= true and StunT.Value > Stun.Value then | |
| 1518 | do | |
| 1519 | if StaggerHit.Value == true then | |
| 1520 | break | |
| 1521 | end | |
| 1522 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1523 | ||
| 1524 | -- DECOMPILER ERROR at PC648: LeaveBlock: unexpected jumping out IF_STMT | |
| 1525 | ||
| 1526 | end | |
| 1527 | end | |
| 1528 | end | |
| 1529 | dec.Parent = nil | |
| 1530 | dec2.Parent = nil | |
| 1531 | attack = false | |
| 1532 | end | |
| 1533 | end | |
| 1534 | end | |
| 1535 | DecreaseStat = function(Model, Stat, Amount, Duration, cangui) | |
| 1536 | if Model:findFirstChild("Stats") ~= nil and Model.Stats[Stat] ~= nil then
| |
| 1537 | Model.Stats[Stat].Value = Model.Stats[Stat].Value - Amount | |
| 1538 | d = Instance.new("NumberValue", Model.Stats.Decrease)
| |
| 1539 | dur = Instance.new("NumberValue", d)
| |
| 1540 | dur.Name = "Duration" | |
| 1541 | dur.Value = Duration | |
| 1542 | game:GetService("Debris"):AddItem(d, 20)
| |
| 1543 | if Stat == "Damage" then | |
| 1544 | d.Name = "DecreaseAtk" | |
| 1545 | else | |
| 1546 | if Stat == "Defense" then | |
| 1547 | d.Name = "DecreaseDef" | |
| 1548 | else | |
| 1549 | if Stat == "Movement" then | |
| 1550 | d.Name = "DecreaseMvmt" | |
| 1551 | end | |
| 1552 | end | |
| 1553 | end | |
| 1554 | if Model:findFirstChild("Torso") ~= nil then
| |
| 1555 | display = "" | |
| 1556 | if Stat == "Damage" then | |
| 1557 | if Amount > 0 then | |
| 1558 | display = "-Damage" | |
| 1559 | else | |
| 1560 | display = "+Damage" | |
| 1561 | end | |
| 1562 | else | |
| 1563 | if Stat == "Defense" then | |
| 1564 | if Amount > 0 then | |
| 1565 | display = "-Defense" | |
| 1566 | else | |
| 1567 | display = "+Defense" | |
| 1568 | end | |
| 1569 | else | |
| 1570 | if Stat == "Movement" then | |
| 1571 | if Amount > 0 then | |
| 1572 | display = "-Movement" | |
| 1573 | else | |
| 1574 | display = "+Movement" | |
| 1575 | end | |
| 1576 | end | |
| 1577 | end | |
| 1578 | end | |
| 1579 | if cangui ~= true then | |
| 1580 | showDamage(Model, display, "Debuff") | |
| 1581 | end | |
| 1582 | end | |
| 1583 | d.Value = Amount | |
| 1584 | end | |
| 1585 | end | |
| 1586 | GetDist = function(Part1, Part2, magni) | |
| 1587 | local targ = Part1.Position - Part2.Position | |
| 1588 | local mag = targ.magnitude | |
| 1589 | if mag <= magni then | |
| 1590 | return true | |
| 1591 | else | |
| 1592 | return false | |
| 1593 | end | |
| 1594 | end | |
| 1595 | MagniDamage = function(Part, magni, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration) | |
| 1596 | for _,c in pairs(workspace:children()) do | |
| 1597 | local hum = c:findFirstChild("Humanoid")
| |
| 1598 | if hum ~= nil then | |
| 1599 | local head = nil | |
| 1600 | for _,d in pairs(c:children()) do | |
| 1601 | if d.className == "Model" and ranged ~= true then | |
| 1602 | head = d:findFirstChild("Hitbox")
| |
| 1603 | if d.Parent == Character then | |
| 1604 | break | |
| 1605 | end | |
| 1606 | if head ~= nil then | |
| 1607 | local targ = head.Position - Part.Position | |
| 1608 | local mag = targ.magnitude | |
| 1609 | if mag <= magni and c.Name ~= Player.Name then | |
| 1610 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
| |
| 1611 | ref.Anchored = true | |
| 1612 | ref.CFrame = cf(head.Position) | |
| 1613 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 1614 | hitnum = math.random(1, 5) | |
| 1615 | if hitnum == 1 then | |
| 1616 | so("199148971", ref, 1, 1)
| |
| 1617 | else | |
| 1618 | if hitnum == 2 then | |
| 1619 | so("199149025", ref, 1, 1)
| |
| 1620 | else | |
| 1621 | if hitnum == 3 then | |
| 1622 | so("199149072", ref, 1, 1)
| |
| 1623 | else | |
| 1624 | if hitnum == 4 then | |
| 1625 | so("199149109", ref, 1, 1)
| |
| 1626 | else | |
| 1627 | if hitnum == 5 then | |
| 1628 | so("199149119", ref, 1, 1)
| |
| 1629 | end | |
| 1630 | end | |
| 1631 | end | |
| 1632 | end | |
| 1633 | end | |
| 1634 | StaggerHit.Value = true | |
| 1635 | end | |
| 1636 | end | |
| 1637 | end | |
| 1638 | do | |
| 1639 | if d.className == "Part" and d.Name=="Torso" then | |
| 1640 | head = d | |
| 1641 | if head ~= nil then | |
| 1642 | local targ = head.Position - Part.Position | |
| 1643 | local mag = targ.magnitude | |
| 1644 | if mag <= magni and c.Name ~= Player.Name then | |
| 1645 | if stun == nil then | |
| 1646 | stun = math.random(5, 10) | |
| 1647 | end | |
| 1648 | local Rang = nil | |
| 1649 | if Ranged == false then | |
| 1650 | Rang = true | |
| 1651 | end | |
| 1652 | local stag = nil | |
| 1653 | if shbash == true then | |
| 1654 | stag = true | |
| 1655 | end | |
| 1656 | Damagefunc(head, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration) | |
| 1657 | end | |
| 1658 | end | |
| 1659 | end | |
| 1660 | do | |
| 1661 | -- DECOMPILER ERROR at PC183: LeaveBlock: unexpected jumping out DO_STMT | |
| 1662 | ||
| 1663 | end | |
| 1664 | end | |
| 1665 | end | |
| 1666 | end | |
| 1667 | end | |
| 1668 | end | |
| 1669 | rayCast = function(Pos, Dir, Max, Ignore) | |
| 1670 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1671 | end | |
| 1672 | local Point = Torso.CFrame * cf(0, Torso.Size.Y, 0) | |
| 1673 | LastPoint = Point | |
| 1674 | effect = function(Color, Ref, LP, P1, returnn) | |
| 1675 | if LP == nil or P1 == nil then | |
| 1676 | return | |
| 1677 | end | |
| 1678 | local effectsmsh = Instance.new("CylinderMesh")
| |
| 1679 | effectsmsh.Scale = Vector3.new(0.2, 1, 0.2) | |
| 1680 | effectsmsh.Name = "Mesh" | |
| 1681 | local effectsg = Instance.new("Part")
| |
| 1682 | NoOutline(effectsg) | |
| 1683 | effectsg.formFactor = 3 | |
| 1684 | effectsg.CanCollide = false | |
| 1685 | effectsg.Name = "Eff" | |
| 1686 | effectsg.Locked = true | |
| 1687 | effectsg.Anchored = true | |
| 1688 | effectsg.Size = Vector3.new(0.5, 1, 0.5) | |
| 1689 | effectsg.Parent = workspace | |
| 1690 | effectsmsh.Parent = effectsg | |
| 1691 | effectsg.BrickColor = BrickColor.new(Color) | |
| 1692 | effectsg.Reflectance = Ref | |
| 1693 | local point1 = P1 | |
| 1694 | local mg = (LP.p - point1.p).magnitude | |
| 1695 | effectsg.Size = Vector3.new(0.5, mg, 0.5) | |
| 1696 | effectsg.CFrame = cf((LP.p + point1.p) / 2, point1.p) * CFrame.Angles(math.rad(90), 0, 0) | |
| 1697 | effectsmsh.Scale = Vector3.new(0.2, 1, 0.2) | |
| 1698 | game:GetService("Debris"):AddItem(effectsg, 2)
| |
| 1699 | if returnn then | |
| 1700 | return effectsg | |
| 1701 | end | |
| 1702 | if not returnn then | |
| 1703 | table.insert(Effects, {effectsg, "Cylinder", 0.2, 0.01, 0, 0.01, effectsmsh})
| |
| 1704 | end | |
| 1705 | end | |
| 1706 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent) | |
| 1707 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1708 | prt.Anchored = true | |
| 1709 | prt.CFrame = cframe | |
| 1710 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1711 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1712 | if Type == 1 or Type == nil then | |
| 1713 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
| |
| 1714 | else | |
| 1715 | if Type == 2 then | |
| 1716 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
| |
| 1717 | else | |
| 1718 | if Type == 3 then | |
| 1719 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
| |
| 1720 | end | |
| 1721 | end | |
| 1722 | end | |
| 1723 | end | |
| 1724 | MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
| 1725 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1726 | prt.Anchored = true | |
| 1727 | prt.CFrame = cframe | |
| 1728 | msh = mesh("SpecialMesh", prt, "FileMesh", "4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1729 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1730 | table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
| |
| 1731 | end | |
| 1732 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1733 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1734 | prt.Anchored = true | |
| 1735 | prt.CFrame = cframe | |
| 1736 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1737 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1738 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1739 | end | |
| 1740 | MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1741 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 1742 | prt.Anchored = true | |
| 1743 | prt.CFrame = cframe * cf(x2, y2, z2) | |
| 1744 | local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1745 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1746 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1747 | end | |
| 1748 | MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push) | |
| 1749 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1750 | prt.Anchored = true | |
| 1751 | prt.CFrame = cframe | |
| 1752 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1753 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1754 | table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
| |
| 1755 | end | |
| 1756 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1757 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1758 | prt.Anchored = true | |
| 1759 | prt.CFrame = cframe | |
| 1760 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1761 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1762 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1763 | end | |
| 1764 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
| 1765 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1766 | prt.Anchored = true | |
| 1767 | prt.CFrame = cframe | |
| 1768 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1769 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1770 | table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
| |
| 1771 | end | |
| 1772 | MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1773 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1774 | prt.Anchored = true | |
| 1775 | prt.CFrame = cframe | |
| 1776 | local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1777 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1778 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1779 | end | |
| 1780 | ClangEffect = function(brickcolor, cframe, duration, decrease, size, power) | |
| 1781 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
| 1782 | prt.Anchored = true | |
| 1783 | prt.CFrame = cframe | |
| 1784 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
| |
| 1785 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1786 | table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
| |
| 1787 | end | |
| 1788 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1789 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1790 | prt.Anchored = true | |
| 1791 | prt.CFrame = cframe | |
| 1792 | local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1793 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1794 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 1795 | end | |
| 1796 | MagicFire = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 1797 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 1798 | prt.Anchored = true | |
| 1799 | prt.CFrame = cframe | |
| 1800 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1801 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1802 | table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
| |
| 1803 | end | |
| 1804 | MagicFireWave = function(brickcolor, cframe, x1, y1, z1) | |
| 1805 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
| 1806 | prt.Anchored = true | |
| 1807 | prt.CFrame = cframe | |
| 1808 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1809 | d = Instance.new("Decal")
| |
| 1810 | d.Parent = prt | |
| 1811 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
| 1812 | d.Face = "Top" | |
| 1813 | d = Instance.new("Decal")
| |
| 1814 | d.Parent = prt | |
| 1815 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
| 1816 | d.Face = "Bottom" | |
| 1817 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1818 | table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
| |
| 1819 | end | |
| 1820 | ElecEffect = function(cff, x, y, z) | |
| 1821 | local prt = part(3, workspace, 0, 0, BrickColor.new("Bright red"), "Part", vt(1, 1, 1))
| |
| 1822 | prt.Anchored = true | |
| 1823 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 1824 | prt.CFrame = cf(prt.Position) | |
| 1825 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1826 | xval = math.random() / 3 | |
| 1827 | yval = math.random() / 3 | |
| 1828 | zval = math.random() / 3 | |
| 1829 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
| |
| 1830 | Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
| |
| 1831 | end | |
| 1832 | CloneBody = function() | |
| 1833 | for _,v in pairs(Torso.Parent:children()) do | |
| 1834 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 1835 | local c = part(3, workspace, 0, 0.5, BrickColor.new("Really black"), "Effect", v.Size)
| |
| 1836 | c.Anchored = true | |
| 1837 | c.CFrame = v.CFrame | |
| 1838 | game:GetService("Debris"):AddItem(c, 5)
| |
| 1839 | if v.Name == "Head" then | |
| 1840 | cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
| |
| 1841 | end | |
| 1842 | table.insert(Effects, {c, "Disappear", 0.05})
| |
| 1843 | end | |
| 1844 | end | |
| 1845 | end | |
| 1846 | Clone = function(duration) | |
| 1847 | for _,v in pairs(Torso.Parent:children()) do | |
| 1848 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 1849 | local c = part(3, workspace, 0, 0, BrickColor.new("Really black"), "Effect", v.Size)
| |
| 1850 | c.Anchored = true | |
| 1851 | c.CFrame = v.CFrame | |
| 1852 | game:GetService("Debris"):AddItem(c, 5)
| |
| 1853 | if v.Name == "Head" then | |
| 1854 | cmsh = mesh("SpecialMesh", c, "Head", "nil", vt(0, 0, 0), v.Mesh.Scale)
| |
| 1855 | end | |
| 1856 | table.insert(Effects, {c, "Disappear", duration})
| |
| 1857 | else | |
| 1858 | do | |
| 1859 | do | |
| 1860 | if v.className == "Hat" then | |
| 1861 | n = v.Handle:clone() | |
| 1862 | n:BreakJoints() | |
| 1863 | n.archivable = true | |
| 1864 | n.Anchored = true | |
| 1865 | n.CanCollide = false | |
| 1866 | n.Name = "Effect" | |
| 1867 | n.BrickColor = BrickColor.new("Really black")
| |
| 1868 | n.Parent = workspace | |
| 1869 | n.CFrame = v.Handle.CFrame | |
| 1870 | n.Transparency = 1 | |
| 1871 | n:BreakJoints() | |
| 1872 | table.insert(Effects, {n, "Disappear", duration})
| |
| 1873 | end | |
| 1874 | -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out DO_STMT | |
| 1875 | ||
| 1876 | -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
| 1877 | ||
| 1878 | -- DECOMPILER ERROR at PC108: LeaveBlock: unexpected jumping out IF_STMT | |
| 1879 | ||
| 1880 | end | |
| 1881 | end | |
| 1882 | end | |
| 1883 | end | |
| 1884 | for _,v in pairs(modelzorz:children()) do | |
| 1885 | if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then | |
| 1886 | n = v:clone() | |
| 1887 | for _,b in pairs(n:children()) do | |
| 1888 | if b.className == "Motor" then | |
| 1889 | b.Parent = nil | |
| 1890 | end | |
| 1891 | end | |
| 1892 | n.archivable = true | |
| 1893 | n.Anchored = true | |
| 1894 | n.CanCollide = false | |
| 1895 | n.Name = "Effect" | |
| 1896 | n.BrickColor = BrickColor.new("Really black")
| |
| 1897 | n.Parent = workspace | |
| 1898 | n.CFrame = v.CFrame | |
| 1899 | n.Transparency = 0 | |
| 1900 | n:BreakJoints() | |
| 1901 | table.insert(Effects, {n, "Disappear", duration})
| |
| 1902 | end | |
| 1903 | end | |
| 1904 | end | |
| 1905 | Cloak = function() | |
| 1906 | so("2767090", Torso, 1, 1)
| |
| 1907 | Face.Parent = nil | |
| 1908 | Clone(0.02) | |
| 1909 | for _,v in pairs(Torso.Parent:children()) do | |
| 1910 | do | |
| 1911 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 1912 | coroutine.resume(coroutine.create(function() | |
| 1913 | for i = 0, 1, 0.1 do | |
| 1914 | wait() | |
| 1915 | v.Transparency = v.Transparency + 0.1 | |
| 1916 | end | |
| 1917 | v.Transparency = 1 | |
| 1918 | end)) | |
| 1919 | end | |
| 1920 | if v.className == "Hat" then | |
| 1921 | do | |
| 1922 | hatp = v.Handle | |
| 1923 | coroutine.resume(coroutine.create(function(derp) | |
| 1924 | for i = 0, 1, 0.1 do | |
| 1925 | wait() | |
| 1926 | derp.Transparency = derp.Transparency + 0.1 | |
| 1927 | end | |
| 1928 | derp.Transparency = 1 | |
| 1929 | end), hatp) | |
| 1930 | -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1931 | ||
| 1932 | -- DECOMPILER ERROR at PC45: LeaveBlock: unexpected jumping out IF_STMT | |
| 1933 | ||
| 1934 | end | |
| 1935 | end | |
| 1936 | end | |
| 1937 | end | |
| 1938 | for _,v in pairs(modelzorz:children()) do | |
| 1939 | if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then | |
| 1940 | coroutine.resume(coroutine.create(function() | |
| 1941 | for i = 0, 1, 0.1 do | |
| 1942 | wait() | |
| 1943 | v.Transparency = v.Transparency + 0.1 | |
| 1944 | end | |
| 1945 | v.Transparency = 1 | |
| 1946 | end)) | |
| 1947 | end | |
| 1948 | end | |
| 1949 | end | |
| 1950 | UnCloak = function() | |
| 1951 | so("2767090", Torso, 1, 1.1)
| |
| 1952 | Face.Parent = Head | |
| 1953 | for _,v in pairs(Torso.Parent:children()) do | |
| 1954 | do | |
| 1955 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
| 1956 | coroutine.resume(coroutine.create(function() | |
| 1957 | for i = 0, 1, 0.1 do | |
| 1958 | wait() | |
| 1959 | v.Transparency = v.Transparency - 0.1 | |
| 1960 | end | |
| 1961 | v.Transparency = 0 | |
| 1962 | end)) | |
| 1963 | end | |
| 1964 | if v.className == "Hat" then | |
| 1965 | do | |
| 1966 | hatp = v.Handle | |
| 1967 | coroutine.resume(coroutine.create(function(derp) | |
| 1968 | for i = 0, 1, 0.1 do | |
| 1969 | wait() | |
| 1970 | derp.Transparency = derp.Transparency - 0.1 | |
| 1971 | end | |
| 1972 | derp.Transparency = 1 | |
| 1973 | end), hatp) | |
| 1974 | -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1975 | ||
| 1976 | -- DECOMPILER ERROR at PC43: LeaveBlock: unexpected jumping out IF_STMT | |
| 1977 | ||
| 1978 | end | |
| 1979 | end | |
| 1980 | end | |
| 1981 | end | |
| 1982 | for _,v in pairs(modelzorz:children()) do | |
| 1983 | if v.className == "Part" and v.Name ~= "Hitbox" and v.Name ~= "Hitbox2" then | |
| 1984 | coroutine.resume(coroutine.create(function() | |
| 1985 | for i = 0, 1, 0.1 do | |
| 1986 | wait() | |
| 1987 | v.Transparency = v.Transparency - 0.1 | |
| 1988 | end | |
| 1989 | for i = 0, 1, 0.3 do | |
| 1990 | wait() | |
| 1991 | v.Transparency = 0 | |
| 1992 | end | |
| 1993 | end)) | |
| 1994 | end | |
| 1995 | end | |
| 1996 | end | |
| 1997 | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staghit, ranged, DecreaseState, DecreaseAmount, Duration) | |
| 1998 | if hit.Parent == nil then | |
| 1999 | return | |
| 2000 | end | |
| 2001 | if hit.Name == "Hitbox" and hit.Parent ~= modelzorz and ranged ~= true then | |
| 2002 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
| |
| 2003 | ref.Anchored = true | |
| 2004 | ref.CFrame = cf(hit.Position) | |
| 2005 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 2006 | hitnum = math.random(1, 5) | |
| 2007 | if hitnum == 1 then | |
| 2008 | so("199148971", ref, 1, 1)
| |
| 2009 | else | |
| 2010 | if hitnum == 2 then | |
| 2011 | so("199149025", ref, 1, 1)
| |
| 2012 | else | |
| 2013 | if hitnum == 3 then | |
| 2014 | so("199149072", ref, 1, 1)
| |
| 2015 | else | |
| 2016 | if hitnum == 4 then | |
| 2017 | so("199149109", ref, 1, 1)
| |
| 2018 | else | |
| 2019 | if hitnum == 5 then | |
| 2020 | so("199149119", ref, 1, 1)
| |
| 2021 | end | |
| 2022 | end | |
| 2023 | end | |
| 2024 | end | |
| 2025 | end | |
| 2026 | StaggerHit.Value = true | |
| 2027 | end | |
| 2028 | h = hit.Parent:FindFirstChild("Humanoid")
| |
| 2029 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 2030 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 2031 | return | |
| 2032 | end | |
| 2033 | if Player.Neutral == false then | |
| 2034 | if hit.Parent:findFirstChild("Alignment") ~= nil and hit.Parent.Alignment.Value == Player.TeamColor.Color then
| |
| 2035 | return | |
| 2036 | end | |
| 2037 | if game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then | |
| 2038 | return | |
| 2039 | end | |
| 2040 | end | |
| 2041 | c = Instance.new("ObjectValue")
| |
| 2042 | c.Name = "creator" | |
| 2043 | c.Value = game:service("Players").LocalPlayer
| |
| 2044 | c.Parent = h | |
| 2045 | RecentEnemy.Value = hit.Parent | |
| 2046 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 2047 | if doing4 == false then | |
| 2048 | minim = minim * Atk.Value | |
| 2049 | maxim = maxim * Atk.Value | |
| 2050 | end | |
| 2051 | Damage = 0 | |
| 2052 | if minim == maxim then | |
| 2053 | Damage = maxim | |
| 2054 | else | |
| 2055 | Damage = math.random(minim, maxim) | |
| 2056 | end | |
| 2057 | blocked = false | |
| 2058 | enblock = nil | |
| 2059 | Stats = hit.Parent:findFirstChild("Stats")
| |
| 2060 | if Stats == nil then | |
| 2061 | Character.Stats:Clone().Parent=hit.Parent | |
| 2062 | end | |
| 2063 | if Stats ~= nil then | |
| 2064 | Stats.Defense.Value=1 | |
| 2065 | invis = Stats:findFirstChild("Invisibility")
| |
| 2066 | if (ranged == false or ranged == nil) and invis ~= nil then | |
| 2067 | invis.Value = 0 | |
| 2068 | end | |
| 2069 | enblock = Stats:findFirstChild("Block")
| |
| 2070 | if enblock ~= nil and enblock.Value == true then | |
| 2071 | blocked = true | |
| 2072 | end | |
| 2073 | if Stats:findFirstChild("Defense") ~= nil then
| |
| 2074 | if doing2 ~= true and doing4 ~= true then | |
| 2075 | local divide = Stats.Defense.Value | |
| 2076 | Damage = Damage / divide | |
| 2077 | end | |
| 2078 | do | |
| 2079 | Damage = Damage | |
| 2080 | if Damage <= 3 and (ranged == false or ranged == nil) and blocked ~= true then | |
| 2081 | hitnum = math.random(1, 5) | |
| 2082 | if hitnum == 1 then | |
| 2083 | so("199149321", hit, 1, 1)
| |
| 2084 | else | |
| 2085 | if hitnum == 2 then | |
| 2086 | so("199149338", hit, 1, 1)
| |
| 2087 | else | |
| 2088 | if hitnum == 3 then | |
| 2089 | so("199149367", hit, 1, 1)
| |
| 2090 | else | |
| 2091 | if hitnum == 4 then | |
| 2092 | so("199149409", hit, 1, 1)
| |
| 2093 | else | |
| 2094 | if hitnum == 5 then | |
| 2095 | so("199149452", hit, 1, 1)
| |
| 2096 | end | |
| 2097 | end | |
| 2098 | end | |
| 2099 | end | |
| 2100 | end | |
| 2101 | else | |
| 2102 | if ranged == false or ranged == nil and blocked ~= true then | |
| 2103 | hitnum = math.random(1, 6) | |
| 2104 | if hitnum == 1 then | |
| 2105 | so("199149137", hit, 1, 1)
| |
| 2106 | else | |
| 2107 | if hitnum == 2 then | |
| 2108 | so("199149186", hit, 1, 1)
| |
| 2109 | else | |
| 2110 | if hitnum == 3 then | |
| 2111 | so("199149221", hit, 1, 1)
| |
| 2112 | else | |
| 2113 | if hitnum == 4 then | |
| 2114 | so("199149235", hit, 1, 1)
| |
| 2115 | else | |
| 2116 | if hitnum == 5 then | |
| 2117 | so("199149269", hit, 1, 1)
| |
| 2118 | else | |
| 2119 | if hitnum == 6 then | |
| 2120 | so("199149297", hit, 1, 1)
| |
| 2121 | end | |
| 2122 | end | |
| 2123 | end | |
| 2124 | end | |
| 2125 | end | |
| 2126 | end | |
| 2127 | end | |
| 2128 | end | |
| 2129 | if Damage <= 3 and staghit == true and ranged ~= true then | |
| 2130 | StaggerHit.Value = true | |
| 2131 | end | |
| 2132 | if Stats:findFirstChild("Stun") ~= nil then
| |
| 2133 | if blocked == true then | |
| 2134 | incstun = incstun / 2 | |
| 2135 | end | |
| 2136 | if Stats.Stun.Value < Stats.StunThreshold.Value then | |
| 2137 | Stats.Stun.Value = Stats.Stun.Value + incstun | |
| 2138 | end | |
| 2139 | end | |
| 2140 | if Stats:findFirstChild("Stagger") ~= nil and stagger == true then
| |
| 2141 | Stats.Stagger.Value = true | |
| 2142 | end | |
| 2143 | if blocked == true then | |
| 2144 | showDamage(hit.Parent, "Block", "Damage") | |
| 2145 | if ranged ~= true then | |
| 2146 | enblock.Value = false | |
| 2147 | Stagger.Value = true | |
| 2148 | hitnum = math.random(1, 2) | |
| 2149 | if hitnum == 1 then | |
| 2150 | so("199148933", hit, 1, 1)
| |
| 2151 | else | |
| 2152 | if hitnum == 2 then | |
| 2153 | so("199148947", hit, 1, 1)
| |
| 2154 | end | |
| 2155 | end | |
| 2156 | end | |
| 2157 | else | |
| 2158 | Damage = math.floor(Damage) | |
| 2159 | if hit.Parent:findFirstChild("Mark") == nil then
| |
| 2160 | d = it("BoolValue", hit.Parent)
| |
| 2161 | d.Name = "Mark" | |
| 2162 | b = it("NumberValue", d)
| |
| 2163 | b.Name = "MarkTime" | |
| 2164 | b.Value = 200 | |
| 2165 | v = it("NumberValue", d)
| |
| 2166 | v.Name = "MarkValue" | |
| 2167 | v.Value = 0 | |
| 2168 | if doing4 == true then | |
| 2169 | v.Value = 10 | |
| 2170 | end | |
| 2171 | sz = it("NumberValue", d)
| |
| 2172 | sz.Name = "MarkSize" | |
| 2173 | sz.Value = 5 | |
| 2174 | st = it("StringValue", d)
| |
| 2175 | st.Name = "MarkType" | |
| 2176 | st.Value = "Adjudicator" | |
| 2177 | local tehpart = hit.Parent:findFirstChild("HumanoidRootPart")
| |
| 2178 | if tehpart == nil then | |
| 2179 | tehpart = hit.Parent:findFirstChild("Torso")
| |
| 2180 | end | |
| 2181 | if hit.Parent.Name == "Neflhelm" then | |
| 2182 | tehpart = hit | |
| 2183 | end | |
| 2184 | if tehpart ~= nil then | |
| 2185 | markgui = it("BillboardGui", tehpart)
| |
| 2186 | markgui.Name = "Mark Gui" | |
| 2187 | markgui.Size = UDim2.new(7, 0, 7, 0) | |
| 2188 | markgui.StudsOffset = vt(0, 10, 0) | |
| 2189 | markgui.AlwaysOnTop = true | |
| 2190 | markscy = it("ImageLabel", markgui)
| |
| 2191 | markscy.Name = "Scythe" | |
| 2192 | markscy.BackgroundTransparency = 1 | |
| 2193 | markscy.Image = "rbxassetid://278007861" | |
| 2194 | markscy.ImageColor3 = Color3.new(1, 0, 0) | |
| 2195 | markscy.Size = UDim2.new(1, 0, 1, 0) | |
| 2196 | table.insert(MarkedGUI, {markgui, markscy})
| |
| 2197 | end | |
| 2198 | table.insert(Marked, {d, b, v, sz})
| |
| 2199 | else | |
| 2200 | mark = hit.Parent:findFirstChild("Mark")
| |
| 2201 | if mark:findFirstChild("MarkTime") ~= nil then
| |
| 2202 | mark.MarkTime.Value = 700 | |
| 2203 | end | |
| 2204 | if mark:findFirstChild("MarkValue") ~= nil then
| |
| 2205 | if mark.MarkValue.Value >= 10 then | |
| 2206 | if mark:findFirstChild("MarkTime") ~= nil then
| |
| 2207 | mark.MarkTime.Value = 400 | |
| 2208 | end | |
| 2209 | if mark.MarkType.Value == "Classic" then | |
| 2210 | mark.Parent = nil | |
| 2211 | Damage = Damage * 2 | |
| 2212 | print("double damage")
| |
| 2213 | if hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
| |
| 2214 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
| |
| 2215 | ref.Anchored = true | |
| 2216 | ref.CFrame = hit.Parent.HumanoidRootPart.CFrame | |
| 2217 | game:GetService("Debris"):AddItem(ref, 5)
| |
| 2218 | local nr = NumberRange.new | |
| 2219 | local ns = NumberSequence.new | |
| 2220 | local cs = ColorSequence.new | |
| 2221 | local parti = it("ParticleEmitter")
| |
| 2222 | parti.Color = cs(NewCol, Color3.new(0, 0, 0)) | |
| 2223 | parti.LightEmission = 0 | |
| 2224 | parti.Size = ns(10) | |
| 2225 | parti.Texture = "http://www.roblox.com/asset/?id=243660364" | |
| 2226 | transseq = ns({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
| |
| 2227 | parti.Transparency = transseq | |
| 2228 | parti.ZOffset = 1 | |
| 2229 | parti.Acceleration = vt(0, 0, 0) | |
| 2230 | parti.Lifetime = nr(1) | |
| 2231 | parti.Rate = 20 | |
| 2232 | parti.Rotation = nr(0, 360) | |
| 2233 | parti.Speed = nr(0) | |
| 2234 | parti.VelocitySpread = 0 | |
| 2235 | parti.Parent = ref | |
| 2236 | parti.Enabled = true | |
| 2237 | table.insert(Effects, {parti, "PartiEmi", 20})
| |
| 2238 | markscy = it("ImageLabel", markgui)
| |
| 2239 | markscy.Name = "Scythe" | |
| 2240 | markscy.BackgroundTransparency = 1 | |
| 2241 | markscy.Image = "rbxassetid://258927926" | |
| 2242 | markscy.ImageColor3 = Color3.new(1, 0, 0) | |
| 2243 | markscy.Size = UDim2.new(1, 0, 1, 0) | |
| 2244 | table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
| |
| 2245 | end | |
| 2246 | elseif mark.MarkType.Value == "Adjudicator" and hit.Parent:findFirstChild("HumanoidRootPart") ~= nil then
| |
| 2247 | da = math.random(1, 4) | |
| 2248 | inc = 1 | |
| 2249 | if doing2 == true then | |
| 2250 | inc = 2 | |
| 2251 | end | |
| 2252 | if da == 1 then | |
| 2253 | DecreaseStat(Character, "Damage", -math.random(6, 10) / 100 * inc, 150, true) | |
| 2254 | DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true) | |
| 2255 | else | |
| 2256 | if da == 2 then | |
| 2257 | DecreaseStat(Character, "Defense", -math.random(2, 6) / 100 * inc, 150, true) | |
| 2258 | DecreaseStat(Character, "Movement", -math.random(2, 6) / 100 * inc, 200, true) | |
| 2259 | else | |
| 2260 | if da == 3 then | |
| 2261 | DecreaseStat(hit.Parent, "Damage", math.random(6, 10) / 100 * inc, 150, true) | |
| 2262 | DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true) | |
| 2263 | else | |
| 2264 | if da == 4 then | |
| 2265 | DecreaseStat(hit.Parent, "Defense", math.random(2, 6) / 100 * inc, 150, true) | |
| 2266 | DecreaseStat(hit.Parent, "Movement", math.random(1, 3) / 100 * inc, 200, true) | |
| 2267 | end | |
| 2268 | end | |
| 2269 | end | |
| 2270 | end | |
| 2271 | ref = part(3, workspace, 0, 1, BrickColor.new("Black"), "Reference", vt())
| |
| 2272 | ref.Anchored = true | |
| 2273 | ref.CFrame = hit.Parent.HumanoidRootPart.CFrame | |
| 2274 | game:GetService("Debris"):AddItem(ref, 5)
| |
| 2275 | markgui = it("BillboardGui", ref)
| |
| 2276 | markgui.Name = "Mark Gui" | |
| 2277 | markgui.Size = UDim2.new(7, 0, 7, 0) | |
| 2278 | markgui.StudsOffset = vt(0, 10, 0) | |
| 2279 | markgui.AlwaysOnTop = true | |
| 2280 | markscy = it("ImageLabel", markgui)
| |
| 2281 | markscy.Name = "Scythe" | |
| 2282 | markscy.BackgroundTransparency = 1 | |
| 2283 | markscy.Image = "rbxassetid://278007453" | |
| 2284 | markscy.ImageColor3 = Color3.new(1, 0, 0) | |
| 2285 | markscy.Size = UDim2.new(1, 0, 1, 0) | |
| 2286 | table.insert(Effects, {markgui, "AdjuEff", 10, markscy})
| |
| 2287 | end | |
| 2288 | elseif --[[mark.MarkType.Value ~= "Thanatos" or --]]doing4 == true then | |
| 2289 | mark.MarkValue.Value = 10 | |
| 2290 | else | |
| 2291 | mark.MarkValue.Value = mark.MarkValue.Value + 1 | |
| 2292 | end | |
| 2293 | end | |
| 2294 | if mark:findFirstChild("MarkSize") ~= nil then
| |
| 2295 | mark.MarkSize.Value = 5 | |
| 2296 | end | |
| 2297 | coroutine.resume(coroutine.create(function(Hum, Dam) | |
| 2298 | hit.Parent.Humanoid:TakeDamage(Damage) | |
| 2299 | end), h, Damage) | |
| 2300 | pursuitnum = 0 | |
| 2301 | if isinvis.Value == false then | |
| 2302 | invisnum.Value = math.floor(invisnum.Value + math.random(4, 8) + Damage / 5) | |
| 2303 | end | |
| 2304 | showDamage(hit.Parent, Damage, "Damage") | |
| 2305 | if DecreaseState ~= nil then | |
| 2306 | DecreaseStat(hit.Parent, DecreaseState, DecreaseAmount, Duration) | |
| 2307 | end | |
| 2308 | if Type == "NormalDecreaseMvmt1" then | |
| 2309 | DecreaseStat(hit.Parent, "Movement", 0.1, 200) | |
| 2310 | end | |
| 2311 | if Type == "Knockdown" then | |
| 2312 | hum = hit.Parent.Humanoid | |
| 2313 | hum.PlatformStand = true | |
| 2314 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 2315 | swait(1) | |
| 2316 | HHumanoid.PlatformStand = false | |
| 2317 | end), hum) | |
| 2318 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 2319 | local bodvol = Instance.new("BodyVelocity")
| |
| 2320 | bodvol.velocity = angle * knockback | |
| 2321 | bodvol.P = 500 | |
| 2322 | bodvol.maxForce = Vector3.new(2000, 2000, 2000) | |
| 2323 | bodvol.Parent = hit | |
| 2324 | rl = Instance.new("BodyAngularVelocity")
| |
| 2325 | rl.P = 3000 | |
| 2326 | rl.maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000 | |
| 2327 | rl.angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)) | |
| 2328 | rl.Parent = hit | |
| 2329 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 2330 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 2331 | else | |
| 2332 | do | |
| 2333 | if Type == "Knockdown2" then | |
| 2334 | hum = hit.Parent.Humanoid | |
| 2335 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 2336 | local bodvol = Instance.new("BodyVelocity")
| |
| 2337 | bodvol.velocity = angle * knockback | |
| 2338 | bodvol.P = 500 | |
| 2339 | bodvol.maxForce = Vector3.new(2000, 2000, 2000) | |
| 2340 | bodvol.Parent = hit | |
| 2341 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 2342 | else | |
| 2343 | do | |
| 2344 | if Type == "Normal" or Type == "NormalDecreaseMvmt1" then | |
| 2345 | vp = Instance.new("BodyVelocity")
| |
| 2346 | vp.P = 500 | |
| 2347 | vp.maxForce = Vector3.new(math.huge, 0, math.huge) | |
| 2348 | if KnockbackType == 1 then | |
| 2349 | vp.velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 2350 | else | |
| 2351 | if KnockbackType == 2 then | |
| 2352 | vp.velocity = Property.CFrame.lookVector * knockback | |
| 2353 | end | |
| 2354 | end | |
| 2355 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 2356 | if knockback > 0 then | |
| 2357 | vp.Parent = hit.Parent.Torso | |
| 2358 | end | |
| 2359 | end | |
| 2360 | debounce = Instance.new("BoolValue")
| |
| 2361 | debounce.Name = "DebounceHit" | |
| 2362 | debounce.Parent = hit.Parent | |
| 2363 | debounce.Value = true | |
| 2364 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 2365 | c = Instance.new("ObjectValue")
| |
| 2366 | c.Name = "creator" | |
| 2367 | c.Value = Player | |
| 2368 | c.Parent = h | |
| 2369 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 2370 | CRIT = false | |
| 2371 | end | |
| 2372 | end | |
| 2373 | end | |
| 2374 | end | |
| 2375 | end | |
| 2376 | end | |
| 2377 | end | |
| 2378 | end | |
| 2379 | end | |
| 2380 | end | |
| 2381 | end | |
| 2382 | -- end | |
| 2383 | --end | |
| 2384 | --end | |
| 2385 | --end | |
| 2386 | --end | |
| 2387 | showDamage = function(Char, Dealt, Type) | |
| 2388 | m = Instance.new("Model")
| |
| 2389 | m.Name = "Effect" | |
| 2390 | c = Instance.new("Part")
| |
| 2391 | c.Transparency = 1 | |
| 2392 | c.Name = "Head" | |
| 2393 | c.TopSurface = 0 | |
| 2394 | c.BottomSurface = 0 | |
| 2395 | c.formFactor = "Plate" | |
| 2396 | c.Size = Vector3.new(1, 0.4, 1) | |
| 2397 | b = Instance.new("BillboardGui", c)
| |
| 2398 | b.Size = UDim2.new(5, 0, 5, 0) | |
| 2399 | b.AlwaysOnTop = true | |
| 2400 | damgui = gui("TextLabel", b, tostring(Dealt), 1, Color3.new(0, 0, 0), UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0))
| |
| 2401 | if Type == "Damage" then | |
| 2402 | damgui.Font = "SourceSansBold" | |
| 2403 | if Dealt == "Block" then | |
| 2404 | damgui.TextColor3 = BrickColor.new("Bright blue").Color
| |
| 2405 | else | |
| 2406 | if Dealt < 3 then | |
| 2407 | damgui.TextColor3 = BrickColor.new("White").Color
| |
| 2408 | else | |
| 2409 | if Dealt >= 3 and Dealt < 20 then | |
| 2410 | damgui.TextColor3 = BrickColor.new("Really red").Color
| |
| 2411 | else | |
| 2412 | damgui.TextColor3 = BrickColor.new("Really red").Color
| |
| 2413 | damgui.Font = "SourceSansBold" | |
| 2414 | end | |
| 2415 | end | |
| 2416 | end | |
| 2417 | else | |
| 2418 | if Type == "Debuff" then | |
| 2419 | damgui.TextColor3 = BrickColor.new("White").Color
| |
| 2420 | else | |
| 2421 | if Type == "Interrupt" then | |
| 2422 | damgui.TextColor3 = BrickColor.new("New Yeller").Color
| |
| 2423 | end | |
| 2424 | end | |
| 2425 | end | |
| 2426 | damgui.TextScaled = true | |
| 2427 | ms = Instance.new("CylinderMesh")
| |
| 2428 | ms.Scale = Vector3.new(0.8, 0.8, 0.8) | |
| 2429 | ms.Parent = c | |
| 2430 | c.Reflectance = 0 | |
| 2431 | Instance.new("BodyGyro").Parent = c
| |
| 2432 | c.Parent = m | |
| 2433 | if Char:findFirstChild("Head") ~= nil then
| |
| 2434 | c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100)) | |
| 2435 | else | |
| 2436 | if Char.Parent:findFirstChild("Head") ~= nil then
| |
| 2437 | c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100)) | |
| 2438 | end | |
| 2439 | end | |
| 2440 | f = Instance.new("BodyPosition")
| |
| 2441 | f.P = 2000 | |
| 2442 | f.D = 100 | |
| 2443 | f.maxForce = Vector3.new(545000, 545000, 545000) | |
| 2444 | if Type == "Damage" then | |
| 2445 | f.position = c.Position + Vector3.new(0, 3, 0) | |
| 2446 | else | |
| 2447 | if Type == "Debuff" or Type == "Interrupt" then | |
| 2448 | f.position = c.Position + Vector3.new(0, 5, 0) | |
| 2449 | end | |
| 2450 | end | |
| 2451 | f.Parent = c | |
| 2452 | game:GetService("Debris"):AddItem(m, 5)
| |
| 2453 | table.insert(Effects, {m, "showDamage", damgui, f, 10, 1, 15, 50, 100})
| |
| 2454 | c.CanCollide = false | |
| 2455 | m.Parent = workspace | |
| 2456 | c.CanCollide = false | |
| 2457 | end | |
| 2458 | combo = 0 | |
| 2459 | ||
| 2460 | ob1d = function(mouse) | |
| 2461 | if arcorb == true then | |
| 2462 | arcorb = false | |
| 2463 | end | |
| 2464 | if attack == true or equipped == false then | |
| 2465 | return | |
| 2466 | end | |
| 2467 | deb = 0.5 | |
| 2468 | hold = true | |
| 2469 | if combo == 0 then | |
| 2470 | combo = 1 | |
| 2471 | attackone() | |
| 2472 | else | |
| 2473 | if combo == 1 then | |
| 2474 | combo = 2 | |
| 2475 | attacktwo() | |
| 2476 | else | |
| 2477 | if combo == 2 then | |
| 2478 | combo = 3 | |
| 2479 | attackthree() | |
| 2480 | else | |
| 2481 | if combo == 3 then | |
| 2482 | combo = 0 | |
| 2483 | attackfour() | |
| 2484 | end | |
| 2485 | end | |
| 2486 | end | |
| 2487 | end | |
| 2488 | coroutine.resume(coroutine.create(function() | |
| 2489 | for i = 1, 50 do | |
| 2490 | if attack == false then | |
| 2491 | swait() | |
| 2492 | end | |
| 2493 | end | |
| 2494 | if attack == false then | |
| 2495 | combo = 0 | |
| 2496 | end | |
| 2497 | end)) | |
| 2498 | end | |
| 2499 | ob1u = function(mouse) | |
| 2500 | hold = false | |
| 2501 | end | |
| 2502 | buttonhold = false | |
| 2503 | fenbarmove1.MouseButton1Click:connect(do1) | |
| 2504 | fenbarmove2.MouseButton1Click:connect(do2) | |
| 2505 | fenbarmove3.MouseButton1Click:connect(do3) | |
| 2506 | fenbarmove4.MouseButton1Click:connect(do4) | |
| 2507 | eul = 0 | |
| 2508 | equipped = false | |
| 2509 | key = function(key) | |
| 2510 | if attack == true then | |
| 2511 | return | |
| 2512 | end | |
| 2513 | if key == "z" then | |
| 2514 | pressedf = true | |
| 2515 | fnumb = 0 | |
| 2516 | attack = true | |
| 2517 | if equipped == false then | |
| 2518 | equipped = true | |
| 2519 | RSH = ch.Torso["Right Shoulder"] | |
| 2520 | LSH = ch.Torso["Left Shoulder"] | |
| 2521 | RSH.Parent = nil | |
| 2522 | LSH.Parent = nil | |
| 2523 | RW.Name = "Right Shoulder" | |
| 2524 | RW.Part0 = ch.Torso | |
| 2525 | RW.C0 = cf(1.5, 0.5, 0) | |
| 2526 | RW.C1 = cf(0, 0.5, 0) | |
| 2527 | RW.Part1 = ch["Right Arm"] | |
| 2528 | RW.Parent = ch.Torso | |
| 2529 | LW.Name = "Left Shoulder" | |
| 2530 | LW.Part0 = ch.Torso | |
| 2531 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 2532 | LW.C1 = cf(0, 0.5, 0) | |
| 2533 | LW.Part1 = ch["Left Arm"] | |
| 2534 | LW.Parent = ch.Torso | |
| 2535 | Animate.Parent = nil | |
| 2536 | equipanim() | |
| 2537 | else | |
| 2538 | equipped = false | |
| 2539 | hideanim() | |
| 2540 | LH.C1 = LHC1 | |
| 2541 | RH.C1 = RHC1 | |
| 2542 | Animate.Parent = Humanoid | |
| 2543 | swait(0) | |
| 2544 | RW.Parent = nil | |
| 2545 | LW.Parent = nil | |
| 2546 | RSH.Parent = player.Character.Torso | |
| 2547 | LSH.Parent = player.Character.Torso | |
| 2548 | end | |
| 2549 | attack = false | |
| 2550 | end | |
| 2551 | if equipped == false then | |
| 2552 | return | |
| 2553 | end | |
| 2554 | if key == "p" and invisnum.Value > 5 then | |
| 2555 | Invisibility() | |
| 2556 | end | |
| 2557 | if key == "q" then | |
| 2558 | do1() | |
| 2559 | end | |
| 2560 | if key == "e" then | |
| 2561 | do2() | |
| 2562 | end | |
| 2563 | if key == "r" then | |
| 2564 | do3() | |
| 2565 | end | |
| 2566 | if key == "f" then | |
| 2567 | do4() | |
| 2568 | end | |
| 2569 | end | |
| 2570 | key2 = function(key) | |
| 2571 | end | |
| 2572 | s = function(mouse) | |
| 2573 | mouse.Button1Down:connect(function() | |
| 2574 | ob1d(mouse) | |
| 2575 | end) | |
| 2576 | mouse.Button1Up:connect(function() | |
| 2577 | ob1u(mouse) | |
| 2578 | end) | |
| 2579 | mouse.KeyDown:connect(key) | |
| 2580 | mouse.KeyUp:connect(key2) | |
| 2581 | player = Player | |
| 2582 | ch = Character | |
| 2583 | MMouse = mouse | |
| 2584 | end | |
| 2585 | ds = function(mouse) | |
| 2586 | end | |
| 2587 | Bin.Selected:connect(s) | |
| 2588 | Bin.Deselected:connect(ds) | |
| 2589 | print("Renegade loaded.")
| |
| 2590 | local mananum = 0 | |
| 2591 | local donum = 0 | |
| 2592 | local stunnum = 0 | |
| 2593 | local staggeranim = false | |
| 2594 | local stunanim = false | |
| 2595 | local Point, LastPoint = nil, nil | |
| 2596 | local passivenum = 100 | |
| 2597 | local pnum2 = 0 | |
| 2598 | local walk = 0 | |
| 2599 | local walkforw = true | |
| 2600 | local addpassive = 0 | |
| 2601 | local gashnum = 0 | |
| 2602 | while true do | |
| 2603 | swait() | |
| 2604 | if Humanoid.Health <= 0 then | |
| 2605 | attack = true | |
| 2606 | for i = 1, #Marked do | |
| 2607 | if MarkedGUI[i] ~= nil and MarkedGUI[i][1] ~= nil then | |
| 2608 | MarkedGUI[i][1].Parent = nil | |
| 2609 | end | |
| 2610 | table.remove(MarkedGUI, i) | |
| 2611 | table.remove(Marked, i) | |
| 2612 | end | |
| 2613 | resumeControl() | |
| 2614 | modelzorz.Parent = workspace | |
| 2615 | game:GetService("Debris"):AddItem(modelzorz, 30)
| |
| 2616 | for i = 1, #Weapon do | |
| 2617 | Weapon[i].Parent = modelzorz | |
| 2618 | Weapon[i].CanCollide = true | |
| 2619 | end | |
| 2620 | for i = 1, #Welds do | |
| 2621 | if Welds[i].Part0.Parent == Character or Welds[i].Part1.Parent == Character then | |
| 2622 | Welds[i].Parent = nil | |
| 2623 | else | |
| 2624 | Welds[i].Parent = prt1 | |
| 2625 | end | |
| 2626 | end | |
| 2627 | end | |
| 2628 | do | |
| 2629 | if fnumb < 21 then | |
| 2630 | fnumb = fnumb + 1 | |
| 2631 | if pressedf == false then | |
| 2632 | fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency - 0.025 | |
| 2633 | tellbar.TextTransparency = tellbar.TextTransparency - 0.05 | |
| 2634 | tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency - 0.05 | |
| 2635 | else | |
| 2636 | if fnumb == 20 then | |
| 2637 | fenframe5.Parent = nil | |
| 2638 | print("daigui")
| |
| 2639 | end | |
| 2640 | fenframe5.BackgroundTransparency = fenframe5.BackgroundTransparency + 0.025 | |
| 2641 | tellbar.TextTransparency = tellbar.TextTransparency + 0.05 | |
| 2642 | tellbar.TextStrokeTransparency = tellbar.TextStrokeTransparency + 0.05 | |
| 2643 | end | |
| 2644 | end | |
| 2645 | if hbwld.Parent == nil then | |
| 2646 | hitbox2.Name = "Hitbox2" | |
| 2647 | else | |
| 2648 | hitbox2.Name = "Hitbox2" | |
| 2649 | end | |
| 2650 | if hbwld.Parent == nil then | |
| 2651 | hitbox2.Name = "Hitbox" | |
| 2652 | else | |
| 2653 | hitbox2.Name = "Hitbox2" | |
| 2654 | end | |
| 2655 | if doing2 == true then | |
| 2656 | gashnum = gashnum + 1 | |
| 2657 | if (gashnum) % 10 == 0 then | |
| 2658 | if 0 < mana.Value then | |
| 2659 | mana.Value = mana.Value - -2 | |
| 2660 | else | |
| 2661 | do2() | |
| 2662 | end | |
| 2663 | end | |
| 2664 | MagicCircle(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 2, 2, 2, 0.05) | |
| 2665 | MagicBlock(BrickColor.new(NewCol), prt6.CFrame * euler(-0.3, 0, 0), 0, 0, 0, 1, 1, 1, 1, 0.025) | |
| 2666 | MagicBlock(BrickColor.new("Really black"), prt6.CFrame * euler(-0.3, 0, 0) * cf(0, 0, -2.2) * cf(0, math.random(-100, 100) / 100, math.random(-200, 200) / 100), 0, 0, 0, 1, 1, 1, 1, 1)
| |
| 2667 | end | |
| 2668 | hitbox2.Parent = hitbox.Parent | |
| 2669 | hitbox2.Size = hitbox.Size | |
| 2670 | hitbox2.CFrame = hitboxCF | |
| 2671 | hboxpos.position = hitbox2.Position + vt(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) | |
| 2672 | hitbox.Transparency = 1 | |
| 2673 | hitbox2.Transparency = 1 | |
| 2674 | for i = 1, #Marked do | |
| 2675 | if Marked[i] ~= nil then | |
| 2676 | if Marked[i][1].Parent == nil then | |
| 2677 | MarkedGUI[i][1].Parent = nil | |
| 2678 | table.remove(MarkedGUI, i) | |
| 2679 | table.remove(Marked, i) | |
| 2680 | else | |
| 2681 | if MarkedGUI[i][1].Parent ~= nil then | |
| 2682 | MarkedGUI[i][1].Size = UDim2.new(7 + Marked[i][4].Value, 0, 7 + Marked[i][4].Value, 0) | |
| 2683 | if 0 < Marked[i][4].Value then | |
| 2684 | Marked[i][4].Value = Marked[i][4].Value - 1 | |
| 2685 | end | |
| 2686 | if MarkedGUI[i][2].Parent ~= nil then | |
| 2687 | if Marked[i][3].Value == 0 then | |
| 2688 | MarkedGUI[i][2].Image = "rbxassetid://278007861" | |
| 2689 | else | |
| 2690 | if Marked[i][3].Value == 1 then | |
| 2691 | MarkedGUI[i][2].Image = "rbxassetid://278007839" | |
| 2692 | else | |
| 2693 | if Marked[i][3].Value == 2 then | |
| 2694 | MarkedGUI[i][2].Image = "rbxassetid://278007803" | |
| 2695 | else | |
| 2696 | if Marked[i][3].Value == 3 then | |
| 2697 | MarkedGUI[i][2].Image = "rbxassetid://278007757" | |
| 2698 | else | |
| 2699 | if Marked[i][3].Value == 4 then | |
| 2700 | MarkedGUI[i][2].Image = "rbxassetid://278007704" | |
| 2701 | else | |
| 2702 | if Marked[i][3].Value == 5 then | |
| 2703 | MarkedGUI[i][2].Image = "rbxassetid://278007663" | |
| 2704 | else | |
| 2705 | if Marked[i][3].Value == 6 then | |
| 2706 | MarkedGUI[i][2].Image = "rbxassetid://278007643" | |
| 2707 | else | |
| 2708 | if Marked[i][3].Value == 7 then | |
| 2709 | MarkedGUI[i][2].Image = "rbxassetid://278007606" | |
| 2710 | else | |
| 2711 | if Marked[i][3].Value == 8 then | |
| 2712 | MarkedGUI[i][2].Image = "rbxassetid://278007570" | |
| 2713 | else | |
| 2714 | if Marked[i][3].Value == 9 then | |
| 2715 | MarkedGUI[i][2].Image = "rbxassetid://278007545" | |
| 2716 | else | |
| 2717 | if Marked[i][3].Value == 10 then | |
| 2718 | MarkedGUI[i][2].Image = "rbxassetid://278007515" | |
| 2719 | end | |
| 2720 | end | |
| 2721 | end | |
| 2722 | end | |
| 2723 | end | |
| 2724 | end | |
| 2725 | end | |
| 2726 | end | |
| 2727 | end | |
| 2728 | end | |
| 2729 | end | |
| 2730 | end | |
| 2731 | end | |
| 2732 | if Marked[i][2] ~= nil then | |
| 2733 | Marked[i][2].Value = Marked[i][2].Value - 1 | |
| 2734 | if Marked[i][2].Value <= 0 then | |
| 2735 | Marked[i][1].Parent = nil | |
| 2736 | MarkedGUI[i][1].Parent = nil | |
| 2737 | table.remove(MarkedGUI, i) | |
| 2738 | table.remove(Marked, i) | |
| 2739 | end | |
| 2740 | end | |
| 2741 | end | |
| 2742 | end | |
| 2743 | end | |
| 2744 | scarfp2.CFrame = cf(RootPart.Position, testpart.Position) * cf(0, 0, 0) | |
| 2745 | scarfp2.CFrame = scarfp2.CFrame + scarfp2.CFrame.lookVector * 0.5 | |
| 2746 | scarfp2.CFrame = scarfp2.CFrame * cf(0, 0, 0) * euler(1.57, 0, 0) | |
| 2747 | testpart.CFrame = cf(RootPart.Position - RootPart.Velocity) * cf(0, 1, 0) | |
| 2748 | if invisible == true then | |
| 2749 | addpassive = addpassive + 1 | |
| 2750 | for i = 1, 1 do | |
| 2751 | MagicCircle2(BrickColor.new("Black"), scarfp2.CFrame * euler(0, 0, math.rad(180)) * cf(math.random(-300, 300) / 100, math.random(-200, 200) / 100, math.random(-300, 300) / 100), 1.5, 10, 1.5, -0.2, 1, -0.2, 0.2)
| |
| 2752 | end | |
| 2753 | if 50 <= addpassive then | |
| 2754 | addpassive = 0 | |
| 2755 | for _,c in pairs(workspace:children()) do | |
| 2756 | local hum = (c:findFirstChild("Humanoid"))
| |
| 2757 | if hum ~= nil then | |
| 2758 | local head = nil | |
| 2759 | for _,d in pairs(c:children()) do | |
| 2760 | if d.Name == "HumanoidRootPart" then | |
| 2761 | local targ = d.Position - RootPart.Position | |
| 2762 | local mag = targ.magnitude | |
| 2763 | if mag <= 60 and c.Name ~= Player.Name then | |
| 2764 | mark = d.Parent:findFirstChild("Mark")
| |
| 2765 | if mark ~= nil then | |
| 2766 | if (mark:findFirstChild("MarkTime")) ~= nil then
| |
| 2767 | mark.MarkTime.Value = 500 | |
| 2768 | end | |
| 2769 | if (mark:findFirstChild("MarkValue")) ~= nil then
| |
| 2770 | if (mark:findFirstChild("MarkSize")) ~= nil then
| |
| 2771 | mark.MarkSize.Value = 5 | |
| 2772 | end | |
| 2773 | if mark.MarkValue.Value < 10 then | |
| 2774 | mark.MarkValue.Value = mark.MarkValue.Value + 1 | |
| 2775 | end | |
| 2776 | end | |
| 2777 | end | |
| 2778 | end | |
| 2779 | end | |
| 2780 | end | |
| 2781 | end | |
| 2782 | end | |
| 2783 | end | |
| 2784 | end | |
| 2785 | do | |
| 2786 | pursuitnum = pursuitnum + 1 | |
| 2787 | if 13 <= passivenum and 150 < pursuitnum and 0 < invisnum.Value then | |
| 2788 | invisnum.Value = invisnum.Value - 1 | |
| 2789 | passivenum = 0 | |
| 2790 | end | |
| 2791 | if 8 <= passivenum and invisible == true then | |
| 2792 | invisnum.Value = invisnum.Value - 1 | |
| 2793 | pursuitnum = 0 | |
| 2794 | passivenum = 0 | |
| 2795 | end | |
| 2796 | if 100 <= invisnum.Value then | |
| 2797 | invisnum.Value = 100 | |
| 2798 | end | |
| 2799 | if invisible == true and invisnum.Value <= 0 then | |
| 2800 | Invisibility() | |
| 2801 | end | |
| 2802 | passivenum = passivenum + 1 | |
| 2803 | if Stagger.Value == true and staggeranim == false then | |
| 2804 | coroutine.resume(coroutine.create(function() | |
| 2805 | staggeranim = true | |
| 2806 | while attack == true do | |
| 2807 | swait() | |
| 2808 | end | |
| 2809 | StaggerAnim() | |
| 2810 | StaggerHit.Value = false | |
| 2811 | Stagger.Value = false | |
| 2812 | staggeranim = false | |
| 2813 | end)) | |
| 2814 | end | |
| 2815 | if StaggerHit.Value == true and staggeranim == false then | |
| 2816 | coroutine.resume(coroutine.create(function() | |
| 2817 | staggeranim = true | |
| 2818 | while attack == true do | |
| 2819 | swait() | |
| 2820 | end | |
| 2821 | StaggerHitt() | |
| 2822 | StaggerHit.Value = false | |
| 2823 | Stagger.Value = false | |
| 2824 | staggeranim = false | |
| 2825 | end)) | |
| 2826 | end | |
| 2827 | if Mvmt.Value < 0 or Stagger.Value == true or StunT.Value <= Stun.Value or StaggerHit.Value == true or Rooted.Value == true then | |
| 2828 | Humanoid.WalkSpeed = 0 | |
| 2829 | else | |
| 2830 | Humanoid.WalkSpeed = 16 * Mvmt.Value | |
| 2831 | end | |
| 2832 | if StunT.Value <= Stun.Value and stunanim == false then | |
| 2833 | coroutine.resume(coroutine.create(function() | |
| 2834 | stunanim = true | |
| 2835 | while attack == true do | |
| 2836 | swait() | |
| 2837 | end | |
| 2838 | StunAnim() | |
| 2839 | Stun.Value = 0 | |
| 2840 | stunanim = false | |
| 2841 | end)) | |
| 2842 | end | |
| 2843 | local stunnum2 = 30 | |
| 2844 | if stunnum2 <= stunnum then | |
| 2845 | if 0 < Stun.Value then | |
| 2846 | Stun.Value = Stun.Value - 1 | |
| 2847 | end | |
| 2848 | stunnum = 0 | |
| 2849 | end | |
| 2850 | stunnum = stunnum + 1 | |
| 2851 | if 0.5 <= donum then | |
| 2852 | handidle = true | |
| 2853 | else | |
| 2854 | if donum <= 0 then | |
| 2855 | handidle = false | |
| 2856 | end | |
| 2857 | end | |
| 2858 | if handidle == false then | |
| 2859 | donum = donum + 0.003 | |
| 2860 | else | |
| 2861 | donum = donum - 0.003 | |
| 2862 | end | |
| 2863 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 2864 | local velderp = RootPart.Velocity.y | |
| 2865 | hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
| 2866 | if equipped == true then | |
| 2867 | if attack == false then | |
| 2868 | idle = idle + 1 | |
| 2869 | else | |
| 2870 | idle = 0 | |
| 2871 | end | |
| 2872 | if (500 <= idle and attack ~= false) or Anim == "Walk" then | |
| 2873 | if walkforw == true then | |
| 2874 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50) | |
| 2875 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * euler(0, 0, 1), Mvmt.Value * 10 / 50) | |
| 2876 | else | |
| 2877 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50) | |
| 2878 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * euler(0, 0, -1), Mvmt.Value * 10 / 50) | |
| 2879 | end | |
| 2880 | else | |
| 2881 | RH.C1 = clerp(RH.C1, RHC1, 0.2) | |
| 2882 | LH.C1 = clerp(LH.C1, LHC1, 0.2) | |
| 2883 | end | |
| 2884 | if 1 < RootPart.Velocity.y and hitfloor == nil then | |
| 2885 | Anim = "Jump" | |
| 2886 | if attack == false then | |
| 2887 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
| 2888 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2) | |
| 2889 | Neck.C0 = clerp(Neck.C0, necko * euler(-0.2, 0, 0), 0.2) | |
| 2890 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
| 2891 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.5, 0, 0.5), 0.2) | |
| 2892 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2893 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-1, 0, -0.2), 0.2) | |
| 2894 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2895 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.3) * euler(-0.5, 1.57, 0) * euler(-0.2, 0, 0), 0.2) | |
| 2896 | LH.C0 = clerp(LH.C0, cf(-1, -1, -0.3) * euler(-0.5, -1.57, 0) * euler(-0.2, 0, 0), 0.2) | |
| 2897 | end | |
| 2898 | else | |
| 2899 | if RootPart.Velocity.y < -1 and hitfloor == nil then | |
| 2900 | Anim = "Fall" | |
| 2901 | if attack == false then | |
| 2902 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
| 2903 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.1), 0.2) | |
| 2904 | Neck.C0 = clerp(Neck.C0, necko * euler(0.4, 0, 0), 0.2) | |
| 2905 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
| 2906 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1, 0, 1), 0.2) | |
| 2907 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2908 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3, 0, -0.2), 0.2) | |
| 2909 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2910 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0.4, 1.57, 0), 0.2) | |
| 2911 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(-0.2, -1.57, 0), 0.2) | |
| 2912 | end | |
| 2913 | else | |
| 2914 | if torvel < 1 and hitfloor ~= nil then | |
| 2915 | Anim = "Idle" | |
| 2916 | if attack == false then | |
| 2917 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -0.5) * euler(0.2, 0, 0), 0.15) | |
| 2918 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0.5), 0.15) | |
| 2919 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(0.3 - (donum) / 4, 0, 0.5 - (donum) / 4), 0.15) | |
| 2920 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15) | |
| 2921 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.3 + (donum) / 4, 0, -0.5 + (donum) / 4), 0.15) | |
| 2922 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.15) | |
| 2923 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, -0.5, 0.2), 0.15) | |
| 2924 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0.2), 0.15) | |
| 2925 | end | |
| 2926 | else | |
| 2927 | if 2 < torvel and torvel < 30 and hitfloor ~= nil then | |
| 2928 | Anim = "Walk" | |
| 2929 | walk = walk + 1 | |
| 2930 | if 15 - 5 * Mvmt.Value <= walk then | |
| 2931 | walk = 0 | |
| 2932 | if walkforw == true then | |
| 2933 | walkforw = false | |
| 2934 | else | |
| 2935 | if walkforw == false then | |
| 2936 | walkforw = true | |
| 2937 | end | |
| 2938 | end | |
| 2939 | end | |
| 2940 | if attack == false then | |
| 2941 | swait() | |
| 2942 | Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, 0), 0.2) | |
| 2943 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
| 2944 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(-0.4 - (donum) / 3, 0, 0.4 + (donum) / 4), 0.2) | |
| 2945 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2946 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.4 - (donum) / 3, 0, -0.4 - (donum) / 4), 0.2) | |
| 2947 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2948 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0) * euler(0, 0, 0), 0.2) | |
| 2949 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0) * euler(0, 0, 0), 0.2) | |
| 2950 | end | |
| 2951 | else | |
| 2952 | if 30 <= torvel and hitfloor ~= nil then | |
| 2953 | Anim = "Walk" | |
| 2954 | walk = walk + 1 | |
| 2955 | if 15 - 5 * Mvmt.Value <= walk then | |
| 2956 | walk = 0 | |
| 2957 | if walkforw == true then | |
| 2958 | walkforw = false | |
| 2959 | else | |
| 2960 | if walkforw == false then | |
| 2961 | walkforw = true | |
| 2962 | end | |
| 2963 | end | |
| 2964 | end | |
| 2965 | if attack == false then | |
| 2966 | handlewld.C0 = clerp(handlewld.C0, euler(0, 0, 0) * cf(0, 1, 0), 0.2) | |
| 2967 | wld1.C0 = clerp(wld1.C0, cf(0, -2, 0) * euler(0.3, 0, -0.3), 0.2) | |
| 2968 | Neck.C0 = clerp(Neck.C0, necko * euler(0.2 - (donum) / 5, 0, 0), 0.2) | |
| 2969 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * euler(0, 0, 0), 0.2) | |
| 2970 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * euler(1.3 + (donum) / 3, 0, 0.5 - (donum) / 3), 0.2) | |
| 2971 | RW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2972 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * euler(-0.2 + (donum) / 3, 0, -0.4 + (donum) / 3), 0.2) | |
| 2973 | LW.C1 = clerp(LW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), 0.2) | |
| 2974 | RH.C0 = clerp(RH.C0, cf(1, -1, 0) * euler(0, 1.57, 0), 0.2) | |
| 2975 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * euler(0, -1.57, 0), 0.2) | |
| 2976 | end | |
| 2977 | end | |
| 2978 | end | |
| 2979 | end | |
| 2980 | end | |
| 2981 | end | |
| 2982 | end | |
| 2983 | if 0 < #Effects then | |
| 2984 | for e = 1, #Effects do | |
| 2985 | if Effects[e] ~= nil then | |
| 2986 | local Thing = Effects[e] | |
| 2987 | if Thing ~= nil then | |
| 2988 | local Part = Thing[1] | |
| 2989 | local Mode = Thing[2] | |
| 2990 | local Delay = Thing[3] | |
| 2991 | local IncX = Thing[4] | |
| 2992 | local IncY = Thing[5] | |
| 2993 | local IncZ = Thing[6] | |
| 2994 | if Thing[2] == "CylinderClang" then | |
| 2995 | if Thing[3] <= 1 then | |
| 2996 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 2997 | Thing[7] = Thing[1].CFrame | |
| 2998 | effect("New Yeller", 0, Thing[8], Thing[7])
| |
| 2999 | Thing[8] = Thing[7] | |
| 3000 | Thing[3] = Thing[3] + Thing[4] | |
| 3001 | else | |
| 3002 | Part.Parent = nil | |
| 3003 | table.remove(Effects, e) | |
| 3004 | end | |
| 3005 | end | |
| 3006 | if Thing[2] == "showDamage" then | |
| 3007 | if Thing[6] < Thing[5] then | |
| 3008 | Thing[6] = Thing[6] + 1 | |
| 3009 | else | |
| 3010 | if Thing[6] < Thing[7] then | |
| 3011 | Thing[4].position = Thing[4].position + vt(0, -0.2, 0) | |
| 3012 | Thing[6] = Thing[6] + 1 | |
| 3013 | else | |
| 3014 | if Thing[6] < Thing[8] then | |
| 3015 | Thing[6] = Thing[6] + 1 | |
| 3016 | else | |
| 3017 | if Thing[6] < Thing[9] then | |
| 3018 | Thing[6] = Thing[6] + 1 | |
| 3019 | Thing[4].position = Thing[4].position + vt(0, 0.2, 0) | |
| 3020 | Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1 | |
| 3021 | Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1 | |
| 3022 | else | |
| 3023 | Thing[1].Parent = nil | |
| 3024 | table.remove(Effects, e) | |
| 3025 | end | |
| 3026 | end | |
| 3027 | end | |
| 3028 | end | |
| 3029 | end | |
| 3030 | if Thing[2] == "PartiEmi" then | |
| 3031 | Thing[3] = Thing[3] - 1 | |
| 3032 | if Thing[3] <= 0 then | |
| 3033 | Thing[1].Enabled = false | |
| 3034 | table.remove(Effects, e) | |
| 3035 | end | |
| 3036 | end | |
| 3037 | if Thing[2] == "AdjuEff" then | |
| 3038 | if 0 < Thing[3] then | |
| 3039 | Thing[3] = Thing[3] - 1 | |
| 3040 | Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0) | |
| 3041 | Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0) | |
| 3042 | Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1 | |
| 3043 | else | |
| 3044 | Thing[1].Parent = nil | |
| 3045 | table.remove(Effects, e) | |
| 3046 | end | |
| 3047 | end | |
| 3048 | if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then | |
| 3049 | if Thing[1].Transparency <= 1 then | |
| 3050 | if Thing[2] == "Block1" then | |
| 3051 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3052 | Mesh = Thing[7] | |
| 3053 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3054 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3055 | else | |
| 3056 | if Thing[2] == "Block2" then | |
| 3057 | Thing[1].CFrame = Thing[1].CFrame | |
| 3058 | Mesh = Thing[7] | |
| 3059 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3060 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3061 | else | |
| 3062 | if Thing[2] == "Block3" then | |
| 3063 | Thing[9] = Thing[9] + 0.5 | |
| 3064 | Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0) | |
| 3065 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 3066 | Mesh = Thing[7] | |
| 3067 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3068 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3069 | else | |
| 3070 | if Thing[2] == "Skull" then | |
| 3071 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8]) | |
| 3072 | Mesh = Thing[7] | |
| 3073 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3074 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3075 | else | |
| 3076 | if Thing[2] == "Cylinder" then | |
| 3077 | Mesh = Thing[7] | |
| 3078 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3079 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3080 | else | |
| 3081 | if Thing[2] == "Cylinder2" then | |
| 3082 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0) | |
| 3083 | Mesh = Thing[7] | |
| 3084 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3085 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3086 | else | |
| 3087 | if Thing[2] == "Blood" then | |
| 3088 | Mesh = Thing[7] | |
| 3089 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
| 3090 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 3091 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3092 | else | |
| 3093 | if Thing[2] == "Elec" then | |
| 3094 | Mesh = Thing[10] | |
| 3095 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
| 3096 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3097 | else | |
| 3098 | if Thing[2] == "Disappear" then | |
| 3099 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 3100 | end | |
| 3101 | end | |
| 3102 | end | |
| 3103 | end | |
| 3104 | end | |
| 3105 | end | |
| 3106 | end | |
| 3107 | end | |
| 3108 | end | |
| 3109 | else | |
| 3110 | Part.Parent = nil | |
| 3111 | table.remove(Effects, e) | |
| 3112 | end | |
| 3113 | end | |
| 3114 | end | |
| 3115 | end | |
| 3116 | end | |
| 3117 | end | |
| 3118 | do | |
| 3119 | fenbarmana2:TweenSize((UDim2.new(0.4, 0, -4 * mana.Value / 100, 0)), nil, 1, 0.4, true) | |
| 3120 | fenbarmana4.Text = "Mana(" .. mana.Value .. ")"
| |
| 3121 | fenbarhp2.BackgroundColor3 = Color3.new(Humanoid.Health / Humanoid.MaxHealth, 0, 0) | |
| 3122 | fenbarhp2:TweenSize((UDim2.new(Humanoid.Health / Humanoid.MaxHealth, 0, 1, 0)), nil, 1, 0.4, true) | |
| 3123 | fenbarhp3.Text = "(" .. math.floor(Humanoid.Health) .. ")"
| |
| 3124 | fenbarblock2:TweenSize((UDim2.new(0.4, 0, -4 * invisnum.Value / 100, 0)), nil, 1, 0.4, true) | |
| 3125 | fenbarblock3.Text = "Power(" .. invisnum.Value .. ")"
| |
| 3126 | fenbarmove1b:TweenSize((UDim2.new(1 * cooldowns[1] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
| 3127 | fenbarmove2b:TweenSize((UDim2.new(1 * cooldowns[2] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
| 3128 | fenbarmove3b:TweenSize((UDim2.new(1 * cooldowns[3] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
| 3129 | fenbarmove4b:TweenSize((UDim2.new(1 * cooldowns[4] / cooldownmax, 0, 1, 0)), nil, 1, 0.4, true) | |
| 3130 | for _,c in pairs(Decrease:children()) do | |
| 3131 | if (c:findFirstChild("Duration")) ~= nil then
| |
| 3132 | c.Duration.Value = c.Duration.Value - 1 | |
| 3133 | if c.Duration.Value <= 0 then | |
| 3134 | c.Parent = nil | |
| 3135 | end | |
| 3136 | end | |
| 3137 | if c.Name == "DecreaseAtk" then | |
| 3138 | decreaseatk = decreaseatk + c.Value | |
| 3139 | else | |
| 3140 | if c.Name == "DecreaseDef" then | |
| 3141 | decreasedef = decreasedef + c.Value | |
| 3142 | else | |
| 3143 | if c.Name == "DecreaseMvmt" then | |
| 3144 | decreasemvmt = decreasemvmt + c.Value | |
| 3145 | end | |
| 3146 | end | |
| 3147 | end | |
| 3148 | end | |
| 3149 | Atk.Value = 1 - (decreaseatk) | |
| 3150 | if Atk.Value <= 0 then | |
| 3151 | Atk.Value = 0 | |
| 3152 | end | |
| 3153 | Def.Value = 1 - (decreasedef) | |
| 3154 | if Def.Value <= 0 then | |
| 3155 | Def.Value = 0.01 | |
| 3156 | end | |
| 3157 | Mvmt.Value = 1 - (decreasemvmt) | |
| 3158 | if Mvmt.Value <= 0 then | |
| 3159 | Mvmt.Value = 0 | |
| 3160 | end | |
| 3161 | decreaseatk = 0 | |
| 3162 | decreasedef = 0 | |
| 3163 | decreasemvmt = 0 | |
| 3164 | AtkVal = Atk.Value * 100 | |
| 3165 | AtkVal = math.floor(AtkVal) | |
| 3166 | AtkVal = AtkVal / 100 | |
| 3167 | fenbardamage.Text = "Damage\n(" .. AtkVal .. ")"
| |
| 3168 | DefVal = Def.Value * 100 | |
| 3169 | DefVal = math.floor(DefVal) | |
| 3170 | DefVal = DefVal / 100 | |
| 3171 | fenbardef.Text = "Defense\n(" .. DefVal .. ")"
| |
| 3172 | MvmtVal = Mvmt.Value * 100 | |
| 3173 | MvmtVal = math.floor(MvmtVal) | |
| 3174 | MvmtVal = MvmtVal / 100 | |
| 3175 | if Rooted.Value == true then | |
| 3176 | MvmtVal = 0 | |
| 3177 | end | |
| 3178 | fenbarmove.Text = "Walkspeed\n(" .. MvmtVal .. ")"
| |
| 3179 | if StunT.Value <= Stun.Value then | |
| 3180 | fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4, 0)), nil, 1, 0.4, true) | |
| 3181 | else | |
| 3182 | fenbarstun2:TweenSize((UDim2.new(0.4, 0, -4 * Stun.Value / StunT.Value, 0)), nil, 1, 0.4, true) | |
| 3183 | end | |
| 3184 | fenbarstun3.Text = "Stun(" .. Stun.Value .. ")"
| |
| 3185 | if 100 <= mana.Value then | |
| 3186 | mana.Value = 100 | |
| 3187 | else | |
| 3188 | if mananum <= 12 then | |
| 3189 | mananum = mananum + 1 | |
| 3190 | else | |
| 3191 | mananum = 0 | |
| 3192 | mana.Value = mana.Value + 100 | |
| 3193 | end | |
| 3194 | end | |
| 3195 | for i = 1, #cooldowns do | |
| 3196 | if cooldownmax <= cooldowns[i] then | |
| 3197 | cooldowns[i] = cooldownmax | |
| 3198 | else | |
| 3199 | cooldowns[i] = cooldowns[i] + cooldownsadd[i] | |
| 3200 | end | |
| 3201 | end | |
| 3202 | -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT | |
| 3203 | ||
| 3204 | -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT | |
| 3205 | ||
| 3206 | -- DECOMPILER ERROR at PC6064: LeaveBlock: unexpected jumping out DO_STMT | |
| 3207 | ||
| 3208 | end | |
| 3209 | end | |
| 3210 | end | |
| 3211 | end |