SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by gay | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Ipixter | Translated to FE by IPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | Player = owner | |
| 88 | Character = Player.Character | |
| 89 | PlayerGui = Player.PlayerGui | |
| 90 | Backpack = Player.Backpack | |
| 91 | Torso = Character.Torso | |
| 92 | Head = Character.Head | |
| 93 | Humanoid = Character.Humanoid | |
| 94 | RootPart = Character.HumanoidRootPart | |
| 95 | RootJoint = RootPart.RootJoint | |
| 96 | LeftArm = Character["Left Arm"] | |
| 97 | LeftLeg = Character["Left Leg"] | |
| 98 | RightArm = Character["Right Arm"] | |
| 99 | RightLeg = Character["Right Leg"] | |
| 100 | LS = Torso["Left Shoulder"] | |
| 101 | LH = Torso["Left Hip"] | |
| 102 | RS = Torso["Right Shoulder"] | |
| 103 | RH = Torso["Right Hip"] | |
| 104 | Humanoid.MaxHealth = math.huge | |
| 105 | wait() | |
| 106 | Humanoid.Health = Humanoid.MaxHealth | |
| 107 | local BC = Character["Body Colors"] | |
| 108 | BC.HeadColor = BrickColor.new("Pastel brown")
| |
| 109 | BC.LeftArmColor = BrickColor.new("Pastel brown")
| |
| 110 | BC.LeftLegColor = BrickColor.new("Pastel brown")
| |
| 111 | BC.RightArmColor = BrickColor.new("Pastel brown")
| |
| 112 | BC.RightLegColor = BrickColor.new("Pastel brown")
| |
| 113 | BC.TorsoColor = BrickColor.new("Pastel brown")
| |
| 114 | for i,v in pairs(Character:children()) do | |
| 115 | - | if v:IsA("Shirt") then
|
| 115 | + | |
| 116 | end | |
| 117 | for i,v in pairs(Character:children()) do | |
| 118 | if v:IsA("Pants") then
| |
| 119 | v:Destroy() | |
| 120 | end | |
| 121 | end | |
| 122 | ------Face---------- | |
| 123 | Character.Head.face.Texture = "rbxassetid://0" | |
| 124 | ------Remover------- | |
| 125 | ||
| 126 | for i,v in pairs(Character:children()) do | |
| 127 | end | |
| 128 | end | |
| 129 | - | if v:IsA("Hat") then
|
| 129 | + | |
| 130 | end | |
| 131 | end | |
| 132 | for i,v in pairs(Character:children()) do | |
| 133 | end | |
| 134 | - | if v:IsA("Accessory") then
|
| 134 | + | |
| 135 | ------Heavy--------- | |
| 136 | CV="Maroon" | |
| 137 | Player = owner | |
| 138 | char = Player.Character | |
| 139 | - | if v:IsA("Hair") then
|
| 139 | + | |
| 140 | txt.Adornee = Character .Head | |
| 141 | txt.Name = "_status" | |
| 142 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 143 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 144 | local text = Instance.new("TextLabel", txt)
| |
| 145 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 146 | text.FontSize = "Size24" | |
| 147 | text.TextScaled = true | |
| 148 | text.TextTransparency = 0 | |
| 149 | text.BackgroundTransparency = 1 | |
| 150 | text.TextTransparency = 0 | |
| 151 | text.TextStrokeTransparency = 0 | |
| 152 | text.Font = "Bodoni" | |
| 153 | text.TextStrokeColor3 = Color3.new(255,176,0) | |
| 154 | ||
| 155 | v=Instance.new("Part")
| |
| 156 | v.Name = "ColorBrick" | |
| 157 | v.Parent=Player.Character | |
| 158 | v.FormFactor="Symmetric" | |
| 159 | v.Anchored=true | |
| 160 | v.CanCollide=false | |
| 161 | v.BottomSurface="Smooth" | |
| 162 | v.TopSurface="Smooth" | |
| 163 | v.Size=Vector3.new(10,5,3) | |
| 164 | v.Transparency=1 | |
| 165 | v.CFrame=Character.Torso.CFrame | |
| 166 | v.BrickColor=BrickColor.new(CV) | |
| 167 | v.Transparency=1 | |
| 168 | text.TextColor3 = Color3.new(255,204,153) | |
| 169 | v.Shape="Block" | |
| 170 | text.Text = "" | |
| 171 | -------------------- | |
| 172 | local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
| |
| 173 | Hat.AttachmentPos = Vector3.new(0, 0.46, 0.22) | |
| 174 | Hat.Name = "Hat_F" | |
| 175 | local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
| |
| 176 | if Handle.Name ~= "Handle" then | |
| 177 | Handle.Size = Vector3.new(1, 1, 1) | |
| 178 | end | |
| 179 | Handle.BottomSurface = 0 | |
| 180 | Handle.Name = "Handle" | |
| 181 | Handle.TopSurface = 0 | |
| 182 | Handle.Locked = 1 | |
| 183 | local Mesh = Hat:FindFirstChild("Mesh") or Instance.new("SpecialMesh", Handle)
| |
| 184 | Mesh.TextureId = "http://www.roblox.com/asset/?id=3810264130" | |
| 185 | Mesh.MeshId = "http://www.roblox.com/asset/?id=3810264102" | |
| 186 | Mesh.Scale = Vector3.new(1.1, 1.1, 1.1) | |
| 187 | Hat.Parent = char | |
| 188 | sound = Instance.new("Sound", Character)
| |
| 189 | sound.SoundId = "rbxassetid://3314604270" | |
| 190 | sound.Volume = 100000000 | |
| 191 | sound.EmitterSize = 25 | |
| 192 | sound:Play() | |
| 193 | sound.Looped = true | |
| 194 | Face = Head.face | |
| 195 | Neck = Torso.Neck | |
| 196 | it = Instance.new | |
| 197 | vt = Vector3.new | |
| 198 | cf = CFrame.new | |
| 199 | rad = math.rad | |
| 200 | euler = CFrame.fromEulerAnglesXYZ | |
| 201 | angles = CFrame.Angles | |
| 202 | coroutine.resume(coroutine.create(function() | |
| 203 | game.StarterGui:SetCore("ChatMakeSystemMessage", {
| |
| 204 | Text = "By deivis97 / leaked mah frend :P"; | |
| 205 | Color = Color3.new(0, 1, 1); | |
| 206 | Font = Enum.Font.Code; | |
| 207 | FontSize = Enum.FontSize.Size24; | |
| 208 | }) | |
| 209 | end)) | |
| 210 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 211 | ArtificialHB.Name = "ArtificialHB" | |
| 212 | script:WaitForChild("ArtificialHB")
| |
| 213 | frame = 0.016666666666667 | |
| 214 | tf = 0 | |
| 215 | allowframeloss = false | |
| 216 | tossremainder = false | |
| 217 | lastframe = tick() | |
| 218 | script.ArtificialHB:Fire() | |
| 219 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 220 | ||
| 221 | tf = tf + s | |
| 222 | if frame <= tf then | |
| 223 | if allowframeloss then | |
| 224 | script.ArtificialHB:Fire() | |
| 225 | lastframe = tick() | |
| 226 | else | |
| 227 | for i = 1, math.floor(tf / frame) do | |
| 228 | script.ArtificialHB:Fire() | |
| 229 | end | |
| 230 | lastframe = tick() | |
| 231 | end | |
| 232 | if tossremainder then | |
| 233 | tf = 0 | |
| 234 | else | |
| 235 | tf = tf - frame * math.floor(tf / frame) | |
| 236 | end | |
| 237 | end | |
| 238 | end | |
| 239 | ) | |
| 240 | local animationspeed = 2 | |
| 241 | hbwait = function(number) | |
| 242 | ||
| 243 | if number == 0 or number == nil then | |
| 244 | ArtificialHB.Event:wait() | |
| 245 | else | |
| 246 | for i = 0, number do | |
| 247 | ArtificialHB.Event:wait() | |
| 248 | end | |
| 249 | end | |
| 250 | end | |
| 251 | ||
| 252 | local Stats = Instance.new("Folder", Character)
| |
| 253 | Stats.Name = "Stats" | |
| 254 | local Defense = Instance.new("NumberValue", Stats)
| |
| 255 | Defense.Name = "Defense" | |
| 256 | Defense.Value = 0.1 | |
| 257 | local Movement = Instance.new("NumberValue", Stats)
| |
| 258 | Movement.Name = "Movement" | |
| 259 | Movement.Value = 0.35 | |
| 260 | local Damage = Instance.new("NumberValue", Stats)
| |
| 261 | Damage.Name = "Damage" | |
| 262 | Damage.Value = 0 | |
| 263 | local Mana = Instance.new("NumberValue", Stats)
| |
| 264 | Mana.Name = "Mana" | |
| 265 | Mana.Value = 0 | |
| 266 | local Rooted = Instance.new("BoolValue", Stats)
| |
| 267 | Rooted.Name = "Rooted" | |
| 268 | Rooted.Value = false | |
| 269 | local BlockValue = Instance.new("BoolValue", Stats)
| |
| 270 | BlockValue.Name = "BlockValue" | |
| 271 | BlockValue.Value = false | |
| 272 | local StaggerHitAnim = Instance.new("BoolValue", Stats)
| |
| 273 | StaggerHitAnim.Name = "StaggerHitAnim" | |
| 274 | StaggerHitAnim.Value = false | |
| 275 | local StaggerAnim = Instance.new("BoolValue", Stats)
| |
| 276 | StaggerAnim.Name = "StaggerAnim" | |
| 277 | StaggerAnim.Value = false | |
| 278 | local StunAnim = Instance.new("BoolValue", Stats)
| |
| 279 | StunAnim.Name = "StunAnim" | |
| 280 | StunAnim.Value = false | |
| 281 | local StunValue = Instance.new("NumberValue", Stats)
| |
| 282 | StunValue.Name = "StunValue" | |
| 283 | StunValue.Value = 0 | |
| 284 | local CanCrit = Instance.new("BoolValue", Stats)
| |
| 285 | CanCrit.Name = "CanCrit" | |
| 286 | CanCrit.Value = false | |
| 287 | local CritChance = Instance.new("NumberValue", Stats)
| |
| 288 | CritChance.Name = "CritChance" | |
| 289 | CritChance.Value = 20 | |
| 290 | local CanPenetrateArmor = Instance.new("BoolValue", Stats)
| |
| 291 | CanPenetrateArmor.Name = "CanPenetrateArmor" | |
| 292 | CanPenetrateArmor.Value = false | |
| 293 | local AntiTeamKill = Instance.new("BoolValue", Stats)
| |
| 294 | AntiTeamKill.Name = "AntiTeamKill" | |
| 295 | AntiTeamKill.Value = false | |
| 296 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
| 297 | RootCF = angles(rad(-90), 0, rad(180)) | |
| 298 | local idle = 0 | |
| 299 | local Anim = "Idle" | |
| 300 | local animtype = math.floor(math.random(1, 3)) | |
| 301 | local attacktype = 1 | |
| 302 | local attack = false | |
| 303 | local equipped = false | |
| 304 | local LastPoint = nil | |
| 305 | local staggerhitanim = false | |
| 306 | local staggeranim = false | |
| 307 | local stunanim = false | |
| 308 | local CritChanceNumber = 0 | |
| 309 | local idlen = 0 | |
| 310 | local donum = 0 | |
| 311 | local sine = 0 | |
| 312 | local change = 2 / animationspeed | |
| 313 | local walkinganim = false | |
| 314 | local handidle = false | |
| 315 | local walk = 0 | |
| 316 | local stundelay = 0 | |
| 317 | local manadelay = 0 | |
| 318 | local robloxidleanimation = Instance.new("Animation", Torso)
| |
| 319 | robloxidleanimation.Name = "robloxidleanimation" | |
| 320 | robloxidleanimation.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
| 321 | local Animator = Humanoid:FindFirstChild("Animator")
| |
| 322 | local Animate = Character:FindFirstChild("Animate")
| |
| 323 | local HitPlayerSounds = {199149137, 199149186, 199149221, 199149235, 199149269, 199149297}
| |
| 324 | local HitArmorSounds = {199149321, 199149338, 199149367, 199149409, 199149452}
| |
| 325 | local HitWeaponSounds = {199148971, 199149025, 199149072, 199149109, 199149119}
| |
| 326 | local HitBlockSounds = {199148933, 199148947}
| |
| 327 | local cooldown1 = 0 | |
| 328 | local cooldown2 = 0 | |
| 329 | local cooldown3 = 0 | |
| 330 | local cooldown4 = 0 | |
| 331 | local scrn = Instance.new("ScreenGui", PlayerGui)
| |
| 332 | local ud = UDim2.new | |
| 333 | local c3 = Color3.new | |
| 334 | local skillcolorscheme = c3(1, 1, 1) | |
| 335 | subtractmana = function(k) | |
| 336 | ||
| 337 | if k <= Mana.Value then | |
| 338 | Mana.Value = Mana.Value - k | |
| 339 | end | |
| 340 | end | |
| 341 | ||
| 342 | local co1 = 0 | |
| 343 | local co2 = 0 | |
| 344 | local co3 = 0 | |
| 345 | local co4 = 0 | |
| 346 | local maxmana = 0 | |
| 347 | local maxstun = 1 | |
| 348 | local recovermana = 0 | |
| 349 | local losestun = 0 | |
| 350 | local stunwait = 0 | |
| 351 | local manawait = 0 | |
| 352 | local skill1mana = 0 | |
| 353 | local skill2mana = 0 | |
| 354 | local skill3mana = 0 | |
| 355 | local skill4mana = 0 | |
| 356 | local menuupdatespeed = 0 | |
| 357 | local constantupdate = false | |
| 358 | local showstats = false | |
| 359 | local allowstunbar = false | |
| 360 | local CustomColor = Torso.BrickColor | |
| 361 | local Colorpart1 = CustomColor.r | |
| 362 | local Colorpart2 = CustomColor.g | |
| 363 | local Colorpart3 = CustomColor.b | |
| 364 | local InverseColor = BrickColor.new(Color3.new(1 - Colorpart1, 1 - Colorpart2, 1 - Colorpart3)) | |
| 365 | makeframe = function(par, trans, pos, size, color, name) | |
| 366 | ||
| 367 | local frame = Instance.new("Frame")
| |
| 368 | frame.Parent = par | |
| 369 | frame.BackgroundTransparency = trans | |
| 370 | frame.BorderSizePixel = 2 | |
| 371 | frame.Position = pos | |
| 372 | frame.Size = size | |
| 373 | frame.BackgroundColor3 = color | |
| 374 | frame.Name = name | |
| 375 | return frame | |
| 376 | end | |
| 377 | ||
| 378 | makelabel = function(par, text, trans, stroketrans, name) | |
| 379 | ||
| 380 | local label = Instance.new("TextLabel")
| |
| 381 | label.Parent = par | |
| 382 | label.BackgroundTransparency = 1 | |
| 383 | label.Size = ud(1, 0, 1, 0) | |
| 384 | label.Position = ud(0, 0, 0, 0) | |
| 385 | label.TextColor3 = c3(255, 255, 255) | |
| 386 | label.TextStrokeTransparency = stroketrans | |
| 387 | label.TextTransparency = trans | |
| 388 | label.FontSize = Enum.FontSize.Size32 | |
| 389 | label.Font = Enum.Font.Legacy | |
| 390 | label.BorderSizePixel = 0 | |
| 391 | label.TextScaled = true | |
| 392 | label.Text = text | |
| 393 | label.Name = name | |
| 394 | return label | |
| 395 | end | |
| 396 | ||
| 397 | framesk1 = makeframe(scrn, 0.5, ud(0.23, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 1") | |
| 398 | framesk2 = makeframe(scrn, 0.5, ud(0.5, 0, 0.93, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 2") | |
| 399 | framesk3 = makeframe(scrn, 0.5, ud(0.5, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 3") | |
| 400 | framesk4 = makeframe(scrn, 0.5, ud(0.23, 0, 0.86, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Frame 4") | |
| 401 | bar1 = makeframe(framesk1, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 1") | |
| 402 | bar2 = makeframe(framesk2, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 2") | |
| 403 | bar3 = makeframe(framesk3, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 3") | |
| 404 | bar4 = makeframe(framesk4, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Bar 4") | |
| 405 | text1 = makelabel(framesk1, "[C] Ability 3", 1, 1, "Text 1") | |
| 406 | text2 = makelabel(framesk2, "[V] Ability 4", 1, 1, "Text 2") | |
| 407 | text3 = makelabel(framesk3, "[X] Ability 2", 1, 1, "Text 3") | |
| 408 | text4 = makelabel(framesk4, "[Z] Ability 1", 1, 1, "Text 4") | |
| 409 | manabar = makeframe(scrn, 0.5, ud(0.23, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Bar") | |
| 410 | manacover = makeframe(manabar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(Colorpart1, Colorpart2, Colorpart3), "Mana Cover") | |
| 411 | manatext = makelabel(manabar, "Mana", 1, 1, "Mana Text") | |
| 412 | healthbar = makeframe(scrn, 0.5, ud(0.5, 0, 0.82, 0), ud(0.26, 0, 0, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Bar") | |
| 413 | healthcover = makeframe(healthbar, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 0.19607843137255, 0.19607843137255), "Health Cover") | |
| 414 | healthtext = makelabel(healthbar, "Health", 1, 1, "Health Text") | |
| 415 | if allowstunbar == true then | |
| 416 | stunframe = makeframe(scrn, 0.5, ud(0.5, 0, 0.78, 0), ud(0.26, 0, 0, 0), c3(1, 1, 0.19607843137255), "Stun Frame") | |
| 417 | stunbar = makeframe(stunframe, 0, ud(0, 0, 0, 0), ud(0, 0, 1, 0), c3(1, 1, 0.19607843137255), "Stun Bar") | |
| 418 | stuntext = makelabel(stunframe, "Stun", 1, 1, "Stun Text") | |
| 419 | end | |
| 420 | if showstats == true then | |
| 421 | defenseframe = makeframe(scrn, 0.5, ud(0.23, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 0.3921568627451, 1), "Defense Frame") | |
| 422 | damageframe = makeframe(scrn, 0.5, ud(0.3225, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(1, 0.3921568627451, 0.3921568627451), "Damage Frame") | |
| 423 | movementframe = makeframe(scrn, 0.5, ud(0.415, 0, 0.78, 0), ud(0.075, 0, 0, 0), c3(0.3921568627451, 1, 0.3921568627451), "Movement Frame") | |
| 424 | defensetext = makelabel(defenseframe, "Defense: " .. Defense.Value, 1, 1, "Defense Text") | |
| 425 | damagetext = makelabel(damageframe, "Damage: " .. Damage.Value, 1, 1, "Damage Text") | |
| 426 | movementtext = makelabel(movementframe, "Movement: " .. Movement.Value, 1, 1, "Movement Text") | |
| 427 | end | |
| 428 | NoOutline = function(Part) | |
| 429 | ||
| 430 | Part.TopSurface = 10 | |
| 431 | end | |
| 432 | ||
| 433 | local weldBetween = function(a, b) | |
| 434 | ||
| 435 | local weldd = Instance.new("ManualWeld")
| |
| 436 | weldd.Part0 = a | |
| 437 | weldd.Part1 = b | |
| 438 | weldd.C0 = CFrame.new() | |
| 439 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
| 440 | weldd.Parent = a | |
| 441 | return weldd | |
| 442 | end | |
| 443 | ||
| 444 | nooutline = function(part) | |
| 445 | ||
| 446 | part.TopSurface = 10 | |
| 447 | end | |
| 448 | ||
| 449 | part = function(formfactor, parent, material, reflectance, transparency, brickcolor, name, size) | |
| 450 | ||
| 451 | local fp = it("Part")
| |
| 452 | fp.formFactor = formfactor | |
| 453 | fp.Parent = parent | |
| 454 | fp.Reflectance = reflectance | |
| 455 | fp.Transparency = transparency | |
| 456 | fp.CanCollide = false | |
| 457 | fp.Locked = true | |
| 458 | fp.BrickColor = BrickColor.new(tostring(brickcolor)) | |
| 459 | fp.Name = name | |
| 460 | fp.Size = size | |
| 461 | fp.Position = Character.Torso.Position | |
| 462 | nooutline(fp) | |
| 463 | fp.Material = material | |
| 464 | fp:BreakJoints() | |
| 465 | return fp | |
| 466 | end | |
| 467 | ||
| 468 | mesh = function(Mesh, part, meshtype, meshid, offset, scale) | |
| 469 | ||
| 470 | local mesh = it(Mesh) | |
| 471 | mesh.Parent = part | |
| 472 | if Mesh == "SpecialMesh" then | |
| 473 | mesh.MeshType = meshtype | |
| 474 | mesh.MeshId = meshid | |
| 475 | end | |
| 476 | mesh.Offset = offset | |
| 477 | mesh.Scale = scale | |
| 478 | return mesh | |
| 479 | end | |
| 480 | ||
| 481 | weld = function(parent, part0, part1, c0, c1) | |
| 482 | ||
| 483 | local weld = it("Motor")
| |
| 484 | weld.Parent = parent | |
| 485 | weld.Part0 = part0 | |
| 486 | weld.Part1 = part1 | |
| 487 | weld.C0 = c0 | |
| 488 | weld.C1 = c1 | |
| 489 | return weld | |
| 490 | end | |
| 491 | ||
| 492 | local WeaponName = "Russian Kick" | |
| 493 | local ClassName = "Russian Kick" | |
| 494 | local PlayerSize = 1 | |
| 495 | local RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
| 496 | local LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
| 497 | if PlayerSize ~= 1 then | |
| 498 | RootPart.Size = RootPart.Size * PlayerSize | |
| 499 | Torso.Size = Torso.Size * PlayerSize | |
| 500 | Head.Size = Head.Size * PlayerSize | |
| 501 | RightArm.Size = RightArm.Size * PlayerSize | |
| 502 | LeftArm.Size = LeftArm.Size * PlayerSize | |
| 503 | RightLeg.Size = RightLeg.Size * PlayerSize | |
| 504 | LeftLeg.Size = LeftLeg.Size * PlayerSize | |
| 505 | RootJoint.Parent = RootPart | |
| 506 | Neck.Parent = Torso | |
| 507 | LS.Parent = Torso | |
| 508 | RS.Parent = Torso | |
| 509 | LH.Parent = Torso | |
| 510 | RH.Parent = Torso | |
| 511 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
| 512 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
| 513 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
| 514 | RS.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
| 515 | LS.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
| 516 | RS.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 517 | LS.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 518 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 519 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 520 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 521 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 522 | for _,v in pairs(Character:GetChildren()) do | |
| 523 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 524 | v.Parent = nil | |
| 525 | v.Parent = Character | |
| 526 | v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * PlayerSize | |
| 527 | for _,b in pairs(v.Handle:GetChildren()) do | |
| 528 | if b.ClassName == "Weld" or b.ClassName == "Motor" then | |
| 529 | local p1 = b.Part1 | |
| 530 | b.Part1 = nil | |
| 531 | local c01, c02, c03, c04, c05, c06, c07, c08, c09, c010, c011, c012 = b.C0:components() | |
| 532 | local c11, c12, c13, c14, c15, c16, c17, c18, c19, c110, c111, c112 = b.C1:components() | |
| 533 | b.C0 = cf(c01 * PlayerSize, c02 * PlayerSize, c03 * PlayerSize, c04, c05, c06, c07, c08, c09, c010, c011, c012) | |
| 534 | b.C1 = cf(c11 * PlayerSize, c12 * PlayerSize, c13 * PlayerSize, c14, c15, c16, c17, c18, c19, c110, c111, c112) | |
| 535 | b.Part1 = p1 | |
| 536 | end | |
| 537 | end | |
| 538 | end | |
| 539 | end | |
| 540 | end | |
| 541 | m = Instance.new("Model", Character)
| |
| 542 | m.Name = WeaponName | |
| 543 | Effects = Instance.new("Folder", m)
| |
| 544 | Effects.Name = "Effects" | |
| 545 | Humanoid.Died:connect(function() | |
| 546 | ||
| 547 | attack = true | |
| 548 | for _,v in pairs(Character:GetChildren()) do | |
| 549 | if v.ClassName == "Model" then | |
| 550 | v:Destroy() | |
| 551 | end | |
| 552 | end | |
| 553 | end | |
| 554 | ) | |
| 555 | for i,v in pairs(Character:GetChildren()) do | |
| 556 | if v.ClassName == "Model" then | |
| 557 | for _,c in pairs(v:GetChildren()) do | |
| 558 | if c.ClassName == "Part" then | |
| 559 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 560 | end | |
| 561 | end | |
| 562 | end | |
| 563 | end | |
| 564 | print(ClassName .. " loaded.") | |
| 565 | clerp = function(a, b, t) | |
| 566 | return a:lerp(b, t) | |
| 567 | end | |
| 568 | ||
| 569 | positiveangle = function(number) | |
| 570 | ||
| 571 | if number > 0 then | |
| 572 | number = 0 | |
| 573 | end | |
| 574 | return number | |
| 575 | end | |
| 576 | ||
| 577 | negativeangle = function(number) | |
| 578 | ||
| 579 | if number < 0 then | |
| 580 | number = 0 | |
| 581 | end | |
| 582 | return number | |
| 583 | end | |
| 584 | ||
| 585 | so = function(id, par, vol, pit) | |
| 586 | ||
| 587 | coroutine.resume(coroutine.create(function() | |
| 588 | ||
| 589 | local sou = Instance.new("Sound", par or workspace)
| |
| 590 | sou.Volume = vol | |
| 591 | sou.Pitch = pit or 1 | |
| 592 | sou.SoundId = "http://roblox.com/asset/?id=" .. id | |
| 593 | hbwait() | |
| 594 | sou:play() | |
| 595 | game:GetService("Debris"):AddItem(sou, 10)
| |
| 596 | end | |
| 597 | )) | |
| 598 | end | |
| 599 | ||
| 600 | GetDistance = function(Part1, Part2, magnitude) | |
| 601 | ||
| 602 | local target = Part1.Position - Part2.Position | |
| 603 | local mag = target.magnitude | |
| 604 | if mag <= magnitude then | |
| 605 | return true | |
| 606 | else | |
| 607 | return false | |
| 608 | end | |
| 609 | end | |
| 610 | ||
| 611 | rayCast = function(Pos, Dir, Max, Ignore) | |
| 612 | ||
| 613 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 614 | end | |
| 615 | ||
| 616 | DamageStatLabel = function(labeltype, cframe, text, color) | |
| 617 | ||
| 618 | local c = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt(0, 0, 0)) | |
| 619 | c.CFrame = cf(cframe.p + vt(0, 1.5, 0)) | |
| 620 | game:GetService("Debris"):AddItem(c, 5)
| |
| 621 | Instance.new("BodyGyro", c)
| |
| 622 | local f = Instance.new("BodyPosition", c)
| |
| 623 | f.P = 2000 | |
| 624 | f.D = 100 | |
| 625 | f.maxForce = vt(math.huge, math.huge, math.huge) | |
| 626 | if labeltype == "Normal" then | |
| 627 | f.position = c.Position + vt(math.random(-2, 2), 6, math.random(-2, 2)) | |
| 628 | else | |
| 629 | if labeltype == "Debuff" then | |
| 630 | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) | |
| 631 | else | |
| 632 | if labeltype == "Interruption" then | |
| 633 | f.position = c.Position + vt(math.random(-2, 2), 8, math.random(-2, 2)) | |
| 634 | end | |
| 635 | end | |
| 636 | end | |
| 637 | game:GetService("Debris"):AddItem(c, 5)
| |
| 638 | local bg = Instance.new("BillboardGui", c)
| |
| 639 | bg.Adornee = c | |
| 640 | bg.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 641 | bg.StudsOffset = vt(-2, 2, 0) | |
| 642 | bg.AlwaysOnTop = false | |
| 643 | local tl = Instance.new("TextLabel", bg)
| |
| 644 | tl.BackgroundTransparency = 1 | |
| 645 | tl.Size = UDim2.new(2.5, 0, 2.5, 0) | |
| 646 | tl.Text = text | |
| 647 | tl.Font = Enum.Font.SourceSans | |
| 648 | tl.FontSize = Enum.FontSize.Size42 | |
| 649 | tl.TextColor3 = color | |
| 650 | tl.TextScaled = false | |
| 651 | tl.TextStrokeTransparency = 0 | |
| 652 | tl.TextScaled = true | |
| 653 | tl.TextWrapped = true | |
| 654 | f.Parent = c | |
| 655 | coroutine.resume(coroutine.create(function(Part, BodyPosition, TextLabel) | |
| 656 | ||
| 657 | wait(0.25) | |
| 658 | for i = 1, 5 do | |
| 659 | wait() | |
| 660 | BodyPosition.position = Part.Position - vt(0, 0.5, 0) | |
| 661 | end | |
| 662 | wait(1.25) | |
| 663 | for i = 1, 5 do | |
| 664 | wait() | |
| 665 | TextLabel.TextTransparency = TextLabel.TextTransparency + 0.2 | |
| 666 | TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.2 | |
| 667 | BodyPosition.position = Part.Position + vt(0, 0.5, 0) | |
| 668 | end | |
| 669 | Part.Parent = nil | |
| 670 | end | |
| 671 | ), c, f, tl) | |
| 672 | end | |
| 673 | ||
| 674 | IncreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) | |
| 675 | ||
| 676 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 677 | ||
| 678 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 679 | ||
| 680 | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
| |
| 681 | Location.Stats[Stat].Value = Location.Stats[Stat].Value + Amount | |
| 682 | if ShowTheStat == true then | |
| 683 | if Stat == "Defense" then | |
| 684 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Defense", c3(1, 1, 1))
| |
| 685 | else | |
| 686 | if Stat == "Damage" then | |
| 687 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Damage", c3(1, 1, 1))
| |
| 688 | else | |
| 689 | if Stat == "Movement" then | |
| 690 | DamageStatLabel("Debuff", Location.Head.CFrame, "+Movement", c3(1, 1, 1))
| |
| 691 | end | |
| 692 | end | |
| 693 | end | |
| 694 | end | |
| 695 | coroutine.resume(coroutine.create(function(CurrentDecrease) | |
| 696 | ||
| 697 | wait(Duration) | |
| 698 | CurrentDecrease.Value = CurrentDecrease.Value - Amount | |
| 699 | end | |
| 700 | ), Location.Stats[Stat]) | |
| 701 | end | |
| 702 | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
| |
| 703 | end | |
| 704 | ||
| 705 | DecreaseStat = function(Location, Stat, Amount, Duration, ShowTheStat) | |
| 706 | ||
| 707 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 708 | ||
| 709 | -- DECOMPILER ERROR at PC28: Unhandled construct in 'MakeBoolean' P1 | |
| 710 | ||
| 711 | if Location:FindFirstChild("Stats") ~= nil and Location.Stats:FindFirstChild("BlockValue") ~= nil and Location.Stats:FindFirstChild("BlockValue").Value ~= true and Location.Stats[Stat] ~= nil then
| |
| 712 | Location.Stats[Stat].Value = Location.Stats[Stat].Value - Amount | |
| 713 | if ShowTheStat == true then | |
| 714 | if Stat == "Defense" then | |
| 715 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Defense", c3(1, 1, 1))
| |
| 716 | else | |
| 717 | if Stat == "Damage" then | |
| 718 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Damage", c3(1, 1, 1))
| |
| 719 | else | |
| 720 | if Stat == "Movement" then | |
| 721 | DamageStatLabel("Debuff", Location.Head.CFrame, "-Movement", c3(1, 1, 1))
| |
| 722 | end | |
| 723 | end | |
| 724 | end | |
| 725 | end | |
| 726 | coroutine.resume(coroutine.create(function(CurrentDecrease) | |
| 727 | ||
| 728 | wait(Duration) | |
| 729 | CurrentDecrease.Value = CurrentDecrease.Value + Amount | |
| 730 | end | |
| 731 | ), Location.Stats[Stat]) | |
| 732 | end | |
| 733 | DamageStatLabel("Interruption", Location.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
| |
| 734 | end | |
| 735 | ||
| 736 | Damagefunc = function(hit, minim, maxim, knockback, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, DecreaseTheStat, DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 737 | ||
| 738 | if hit.Parent == nil then | |
| 739 | return | |
| 740 | end | |
| 741 | h = hit.Parent:FindFirstChild("Humanoid")
| |
| 742 | for _,v in pairs(hit.Parent:GetChildren()) do | |
| 743 | if v:IsA("Humanoid") then
| |
| 744 | h = v | |
| 745 | end | |
| 746 | end | |
| 747 | if hit.Name == "Hitbox" and ranged ~= true and hit.Parent ~= m then | |
| 748 | StaggerHitAnim.Value = true | |
| 749 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hit, 1, 1) | |
| 750 | return | |
| 751 | end | |
| 752 | if hit.Parent.Parent:FindFirstChild("Torso") ~= nil then
| |
| 753 | h = hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 754 | end | |
| 755 | if hit.Parent.className == "Hat" then | |
| 756 | hit = hit.Parent.Parent:FindFirstChild("Head")
| |
| 757 | end | |
| 758 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
| |
| 759 | if hit.Parent:FindFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 760 | return | |
| 761 | end | |
| 762 | if AntiTeamKill.Value == true and Player.Neutral == false and game.Players:GetPlayerFromCharacter(hit.Parent) ~= nil and game.Players:GetPlayerFromCharacter(hit.Parent).TeamColor == Player.TeamColor then | |
| 763 | return | |
| 764 | end | |
| 765 | if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent:FindFirstChild("Humanoid").Health <= 0 then
| |
| 766 | return | |
| 767 | end | |
| 768 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StunValue") ~= nil then
| |
| 769 | hit.Parent.Stats:FindFirstChild("StunValue").Value = hit.Parent.Stats:FindFirstChild("StunValue").Value + incstun
| |
| 770 | end | |
| 771 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("StaggerAnim") ~= nil and stagger == true then
| |
| 772 | hit.Parent.Stats:FindFirstChild("StaggerAnim").Value = true
| |
| 773 | end | |
| 774 | if hit.Parent:FindFirstChild("Stats") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue") ~= nil and hit.Parent.Stats:FindFirstChild("BlockValue").Value == true then
| |
| 775 | if hit.Parent.Stats:FindFirstChild("BlockDebounce") == nil then
| |
| 776 | DamageStatLabel("Interruption", hit.Parent.Head.CFrame, "Blocked!", Color3.new(0, 0.3921568627451, 1))
| |
| 777 | local BlockDebounce = Instance.new("BoolValue", hit.Parent.Stats)
| |
| 778 | BlockDebounce.Name = "BlockDebounce" | |
| 779 | BlockDebounce.Value = true | |
| 780 | game:GetService("Debris"):AddItem(BlockDebounce, 0.1)
| |
| 781 | end | |
| 782 | do | |
| 783 | if ranged ~= true then | |
| 784 | do | |
| 785 | if hit.Parent.Stats:FindFirstChild("BlockDebounce2") == nil then
| |
| 786 | local BlockDebounce2 = Instance.new("BoolValue", hit.Parent.Stats)
| |
| 787 | BlockDebounce2.Name = "BlockDebounce2" | |
| 788 | BlockDebounce2.Value = true | |
| 789 | game:GetService("Debris"):AddItem(BlockDebounce2, 0.1)
| |
| 790 | so(HitBlockSounds[math.random(1, #HitBlockSounds)], hit, 1, 1) | |
| 791 | end | |
| 792 | hit.Parent.Stats:FindFirstChild("BlockValue").Value = false
| |
| 793 | StaggerAnim.Value = true | |
| 794 | do return end | |
| 795 | if DecreaseTheStat ~= nil and hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 796 | if DecreaseTheStat == "Defense" then | |
| 797 | DecreaseStat(hit.Parent, "Defense", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 798 | else | |
| 799 | if DecreaseTheStat == "Damage" then | |
| 800 | DecreaseStat(hit.Parent, "Damage", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 801 | else | |
| 802 | if DecreaseTheStat == "Movement" then | |
| 803 | DecreaseStat(hit.Parent, "Movement", DecreaseAmount, DecreaseDuration, ShowDecreasedStat) | |
| 804 | end | |
| 805 | end | |
| 806 | end | |
| 807 | end | |
| 808 | local D = math.random(minim, maxim) * Damage.Value | |
| 809 | if hit.Parent:FindFirstChild("Stats") ~= nil then
| |
| 810 | if hit.Parent.Stats:FindFirstChild("Defense") then
| |
| 811 | if CanPenetrateArmor.Value == true then | |
| 812 | D = D / hit.Parent.Stats:FindFirstChild("Defense").Value
| |
| 813 | -- DECOMPILER ERROR at PC377: Unhandled construct in 'MakeBoolean' P1 | |
| 814 | ||
| 815 | if hit.Parent.Stats:FindFirstChild("Defense") ~= nil or CanCrit.Value == true then
| |
| 816 | CritChanceNumber = math.random(1, CritChance.Value) | |
| 817 | if CritChanceNumber == CritChance.Value then | |
| 818 | D = D * 2 | |
| 819 | end | |
| 820 | end | |
| 821 | D = math.floor(D) | |
| 822 | h.Health = h.Health - D | |
| 823 | if D <= 3 and staggerhit == true then | |
| 824 | if ranged ~= true then | |
| 825 | StaggerHitAnim.Value = true | |
| 826 | end | |
| 827 | if ranged ~= true then | |
| 828 | so(HitArmorSounds[math.random(1, #HitArmorSounds)], hit, 1, 1) | |
| 829 | end | |
| 830 | else | |
| 831 | if D > 3 and ranged ~= true then | |
| 832 | so(HitPlayerSounds[math.random(1, #HitPlayerSounds)], hit, 1, 1) | |
| 833 | end | |
| 834 | end | |
| 835 | if D > 3 and D < 20 then | |
| 836 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 837 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 838 | so("296102734", hit, 1, 1)
| |
| 839 | else | |
| 840 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0.86274509803922, 0))
| |
| 841 | end | |
| 842 | else | |
| 843 | if D >= 20 then | |
| 844 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 845 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 846 | so("296102734", hit, 1, 1)
| |
| 847 | else | |
| 848 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(1, 0, 0))
| |
| 849 | end | |
| 850 | else | |
| 851 | if D <= 3 then | |
| 852 | if CanCrit.Value == true and CritChanceNumber == CritChance.Value then | |
| 853 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, "Crit! " .. D, Color3.new(0.7843137254902, 0, 0))
| |
| 854 | so("296102734", hit, 1, 1)
| |
| 855 | else | |
| 856 | DamageStatLabel("Normal", hit.Parent.Head.CFrame, D, Color3.new(0.88235294117647, 0.88235294117647, 0.88235294117647))
| |
| 857 | end | |
| 858 | end | |
| 859 | end | |
| 860 | end | |
| 861 | do | |
| 862 | if Type == "Normal" then | |
| 863 | local vp = Instance.new("BodyVelocity")
| |
| 864 | vp.P = 500 | |
| 865 | vp.maxForce = vt(math.huge, 0, math.huge) | |
| 866 | if KnockbackType == 1 then | |
| 867 | vp.Velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 868 | else | |
| 869 | if KnockbackType == 2 then | |
| 870 | vp.Velocity = Property.CFrame.lookVector * knockback | |
| 871 | end | |
| 872 | end | |
| 873 | if knockback > 0 then | |
| 874 | vp.Parent = hit.Parent.Torso | |
| 875 | end | |
| 876 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 877 | end | |
| 878 | local DebounceHit = Instance.new("BoolValue", hit.Parent)
| |
| 879 | DebounceHit.Name = "DebounceHit" | |
| 880 | DebounceHit.Value = true | |
| 881 | game:GetService("Debris"):AddItem(DebounceHit, Delay)
| |
| 882 | end | |
| 883 | end | |
| 884 | end | |
| 885 | end | |
| 886 | end | |
| 887 | end | |
| 888 | end | |
| 889 | end | |
| 890 | end | |
| 891 | end | |
| 892 | ||
| 893 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 894 | ||
| 895 | for _,c in pairs(workspace:GetChildren()) do | |
| 896 | local hum = (c:FindFirstChild("Humanoid"))
| |
| 897 | local head = nil | |
| 898 | if hum ~= nil then | |
| 899 | head = c:FindFirstChild("Torso")
| |
| 900 | if head ~= nil then | |
| 901 | local targ = head.Position - Part.Position | |
| 902 | local mag = targ.magnitude | |
| 903 | if mag <= magni and c.Name ~= Player.Name then | |
| 904 | Damagefunc(head, mindam, maxdam, knock, Type, Property, Delay, KnockbackType, incstun, stagger, staggerhit, ranged, MagicDecreaseTheStat, MagicDecreaseAmount, MagicDecreaseDuration, MagicShowDecreasedStat) | |
| 905 | end | |
| 906 | end | |
| 907 | do | |
| 908 | for _,d in pairs(c:GetChildren()) do | |
| 909 | if d.ClassName == "Model" and ranged ~= true then | |
| 910 | head = d:FindFirstChild("Hitbox")
| |
| 911 | if head ~= nil then | |
| 912 | local targ = head.Position - Part.Position | |
| 913 | local mag = targ.magnitude | |
| 914 | if mag <= magni and c.Name ~= Player.Name then | |
| 915 | local hitrefpart = part(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", vt()) | |
| 916 | hitrefpart.Anchored = true | |
| 917 | hitrefpart.CFrame = cf(head.Position) | |
| 918 | so(HitWeaponSounds[math.random(1, #HitWeaponSounds)], hitrefpart, 1, 1) | |
| 919 | StaggerHitAnim.Value = true | |
| 920 | end | |
| 921 | end | |
| 922 | end | |
| 923 | end | |
| 924 | do | |
| 925 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out DO_STMT | |
| 926 | ||
| 927 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 928 | ||
| 929 | -- DECOMPILER ERROR at PC107: LeaveBlock: unexpected jumping out IF_STMT | |
| 930 | ||
| 931 | end | |
| 932 | end | |
| 933 | end | |
| 934 | end | |
| 935 | end | |
| 936 | ||
| 937 | MagniBufforDebuff = function(Part, Magni, Type, Stat, Amount, Duration, ShowTheBufforDebuff, ApplyToOthersInstead) | |
| 938 | ||
| 939 | if Player.Neutral == true then | |
| 940 | if Type == "Buff" then | |
| 941 | IncreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 942 | else | |
| 943 | if Type == "Debuff" then | |
| 944 | DecreaseStat(Character, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 945 | end | |
| 946 | end | |
| 947 | end | |
| 948 | for _,c in pairs(workspace:GetChildren()) do | |
| 949 | local hum = (c:FindFirstChild("Humanoid"))
| |
| 950 | local head = nil | |
| 951 | if hum ~= nil then | |
| 952 | head = c:FindFirstChild("Torso")
| |
| 953 | if head ~= nil then | |
| 954 | local targ = head.Position - Part.Position | |
| 955 | local mag = targ.magnitude | |
| 956 | -- DECOMPILER ERROR at PC83: Unhandled construct in 'MakeBoolean' P1 | |
| 957 | ||
| 958 | if ApplyToOthersInstead == true and mag <= Magni and c.Name ~= Player.Name and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
| 959 | if Type == "Buff" then | |
| 960 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 961 | else | |
| 962 | if Type == "Debuff" then | |
| 963 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 964 | end | |
| 965 | end | |
| 966 | end | |
| 967 | end | |
| 968 | end | |
| 969 | if ApplyToOthersInstead == false and mag <= Magni and Player.Neutral == false and game.Players:GetPlayerFromCharacter(head.Parent) ~= nil and game.Players:GetPlayerFromCharacter(head.Parent).TeamColor == Player.TeamColor then | |
| 970 | if Type == "Buff" then | |
| 971 | IncreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 972 | else | |
| 973 | if Type == "Debuff" then | |
| 974 | DecreaseStat(head.Parent, Stat, Amount, Duration, ShowTheBufforDebuff) | |
| 975 | end | |
| 976 | end | |
| 977 | end | |
| 978 | end | |
| 979 | end | |
| 980 | ||
| 981 | Lightning = function(p0, p1, tym, ofs, brickcolor, material, th, tra, last) | |
| 982 | ||
| 983 | local magz = p0 - p1.magnitude | |
| 984 | local curpos = p0 | |
| 985 | local trz = {-ofs, ofs}
| |
| 986 | for i = 1, tym do | |
| 987 | local li = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt(th, th, magz / tym)) | |
| 988 | do | |
| 989 | li.Anchored = true | |
| 990 | local ofz = vt(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
| 991 | local trolpos = cf(curpos, p1) * cf(0, 0, magz / tym).p + ofz | |
| 992 | if tym == i then | |
| 993 | local magz2 = curpos - p1.magnitude | |
| 994 | li.Size = vt(th, th, magz2) | |
| 995 | li.CFrame = cf(curpos, p1) * cf(0, 0, -magz2 / 2) | |
| 996 | else | |
| 997 | do | |
| 998 | do | |
| 999 | li.CFrame = cf(curpos, trolpos) * cf(0, 0, magz / tym / 2) | |
| 1000 | curpos = li.CFrame * cf(0, 0, magz / tym / 2).p | |
| 1001 | game.Debris:AddItem(li, last) | |
| 1002 | coroutine.resume(coroutine.create(function() | |
| 1003 | ||
| 1004 | while li.Transparency ~= 1 do | |
| 1005 | for i = 0, 1, last do | |
| 1006 | hbwait() | |
| 1007 | li.Transparency = li.Transparency + 0.1 / last | |
| 1008 | end | |
| 1009 | end | |
| 1010 | end | |
| 1011 | )) | |
| 1012 | end | |
| 1013 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_ELSE_STMT | |
| 1014 | ||
| 1015 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out IF_STMT | |
| 1016 | ||
| 1017 | -- DECOMPILER ERROR at PC118: LeaveBlock: unexpected jumping out DO_STMT | |
| 1018 | ||
| 1019 | end | |
| 1020 | end | |
| 1021 | end | |
| 1022 | end | |
| 1023 | end | |
| 1024 | ||
| 1025 | MagicRing = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1026 | ||
| 1027 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1028 | prt.Anchored = true | |
| 1029 | prt.CFrame = cframe | |
| 1030 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1031 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1032 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1033 | ||
| 1034 | for i = 0, 1, delay do | |
| 1035 | hbwait() | |
| 1036 | Part.CFrame = Part.CFrame | |
| 1037 | Part.Transparency = i | |
| 1038 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1039 | end | |
| 1040 | Part.Parent = nil | |
| 1041 | end | |
| 1042 | ), prt, msh) | |
| 1043 | end | |
| 1044 | ||
| 1045 | MagicWave = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1046 | ||
| 1047 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1048 | prt.Anchored = true | |
| 1049 | prt.CFrame = cframe | |
| 1050 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, -0.1 * z1), vt(x1, y1, z1))
| |
| 1051 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1052 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1053 | ||
| 1054 | for i = 0, 1, delay do | |
| 1055 | hbwait() | |
| 1056 | Part.CFrame = Part.CFrame | |
| 1057 | Part.Transparency = i | |
| 1058 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1059 | end | |
| 1060 | Part.Parent = nil | |
| 1061 | end | |
| 1062 | ), prt, msh) | |
| 1063 | end | |
| 1064 | ||
| 1065 | MagicBlock = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1066 | ||
| 1067 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1068 | prt.Anchored = true | |
| 1069 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1070 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1071 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1072 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1073 | ||
| 1074 | for i = 0, 1, delay do | |
| 1075 | hbwait() | |
| 1076 | if rotate == true then | |
| 1077 | Part.CFrame = Part.CFrame * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1078 | end | |
| 1079 | Part.Transparency = i | |
| 1080 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1081 | end | |
| 1082 | Part.Parent = nil | |
| 1083 | end | |
| 1084 | ), prt, msh) | |
| 1085 | end | |
| 1086 | ||
| 1087 | MagicBlock2 = function(brickcolor, material, rotate, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1088 | ||
| 1089 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1090 | prt.Anchored = true | |
| 1091 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1092 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1093 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1094 | CF = prt.CFrame | |
| 1095 | num = math.random(5, 20) | |
| 1096 | coroutine.resume(coroutine.create(function(Part, Mesh, CF2, Num) | |
| 1097 | ||
| 1098 | for i = 0, 1, delay do | |
| 1099 | hbwait() | |
| 1100 | if rotate == true then | |
| 1101 | Part.CFrame = CF2 * cf(0, i * Num, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1102 | else | |
| 1103 | Part.CFrame = CF2 * cf(0, i * Num, 0) | |
| 1104 | end | |
| 1105 | Part.Transparency = i | |
| 1106 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1107 | end | |
| 1108 | Part.Parent = nil | |
| 1109 | end | |
| 1110 | ), prt, msh, CF, num) | |
| 1111 | end | |
| 1112 | ||
| 1113 | MagicCylinder = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1114 | ||
| 1115 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1116 | prt.Anchored = true | |
| 1117 | prt.CFrame = cframe | |
| 1118 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1119 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1120 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1121 | ||
| 1122 | for i = 0, 1, delay do | |
| 1123 | hbwait() | |
| 1124 | Part.Transparency = i | |
| 1125 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1126 | end | |
| 1127 | Part.Parent = nil | |
| 1128 | end | |
| 1129 | ), prt, msh) | |
| 1130 | end | |
| 1131 | ||
| 1132 | MagicCircle = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1133 | ||
| 1134 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1135 | prt.Anchored = true | |
| 1136 | prt.CFrame = cframe | |
| 1137 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1138 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1139 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1140 | ||
| 1141 | for i = 0, 1, delay do | |
| 1142 | hbwait() | |
| 1143 | Part.Transparency = i | |
| 1144 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1145 | end | |
| 1146 | Part.Parent = nil | |
| 1147 | end | |
| 1148 | ), prt, msh) | |
| 1149 | end | |
| 1150 | ||
| 1151 | MagicHead = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1152 | ||
| 1153 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1154 | prt.Anchored = true | |
| 1155 | prt.CFrame = cframe | |
| 1156 | local msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1157 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1158 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1159 | ||
| 1160 | for i = 0, 1, delay do | |
| 1161 | hbwait() | |
| 1162 | Part.Transparency = i | |
| 1163 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1164 | end | |
| 1165 | Part.Parent = nil | |
| 1166 | end | |
| 1167 | ), prt, msh) | |
| 1168 | end | |
| 1169 | ||
| 1170 | BreakEffect = function(brickcolor, material, rotate, cframe, x1, y1, z1, delay) | |
| 1171 | ||
| 1172 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1173 | prt.Anchored = true | |
| 1174 | prt.CFrame = cframe * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1175 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1176 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1177 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
| 1178 | ||
| 1179 | CF = Part.CFrame | |
| 1180 | Numbb = 0 | |
| 1181 | randnumb = math.random() - math.random() | |
| 1182 | for i = 0, 1, delay do | |
| 1183 | hbwait() | |
| 1184 | CF = CF * cf(0, 1, 0) | |
| 1185 | if rotate == true then | |
| 1186 | Part.CFrame = CF * angles(Numbb, 0, 0) | |
| 1187 | else | |
| 1188 | if rotate == false then | |
| 1189 | Part.CFrame = CF | |
| 1190 | end | |
| 1191 | end | |
| 1192 | Part.Transparency = i | |
| 1193 | Numbb = Numbb + (randnumb) | |
| 1194 | end | |
| 1195 | Part.Parent = nil | |
| 1196 | end | |
| 1197 | ), prt, CF, Numbb, randnumb) | |
| 1198 | end | |
| 1199 | ||
| 1200 | ElecEffect = function(brickcolor, material, cf, x, y, z, delay) | |
| 1201 | ||
| 1202 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1203 | prt.Anchored = true | |
| 1204 | prt.CFrame = cf | |
| 1205 | xval = math.random() | |
| 1206 | yval = math.random() | |
| 1207 | zval = math.random() | |
| 1208 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x, y, z))
| |
| 1209 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1210 | coroutine.resume(coroutine.create(function(Part, Mesh, xvaal, yvaal, zvaal) | |
| 1211 | ||
| 1212 | for i = 0, 1, delay do | |
| 1213 | hbwait() | |
| 1214 | Part.CFrame = Part.CFrame | |
| 1215 | xvaal = xvaal - 0.1 * (delay * 10) | |
| 1216 | yvaal = yvaal - 0.1 * (delay * 10) | |
| 1217 | zvaal = zvaal - 0.1 * (delay * 10) | |
| 1218 | Mesh.Scale = Mesh.Scale + vt(xvaal, yvaal, zvaal) | |
| 1219 | Part.Transparency = i | |
| 1220 | end | |
| 1221 | Part.Parent = nil | |
| 1222 | end | |
| 1223 | ), prt, msh, xval, yval, zval) | |
| 1224 | end | |
| 1225 | ||
| 1226 | TrailEffect = function(brickcolor, material, currentcf, oldcf, meshtype, reflectance, size, x, y, z, delay) | |
| 1227 | ||
| 1228 | local magnitudecframe = currentcf.p - oldcf.p.magnitude | |
| 1229 | if magnitudecframe > 0.01 then | |
| 1230 | local prt = part(3, Effects, material, reflectance, 0, brickcolor, "Effect", vt(1, magnitudecframe, 1)) | |
| 1231 | prt.Anchored = true | |
| 1232 | prt.CFrame = cf((currentcf.p + oldcf.p) / 2, oldcf.p) * angles(rad(90), 0, 0) | |
| 1233 | local TheMeshType = "BlockMesh" | |
| 1234 | if meshtype == "Cylinder" then | |
| 1235 | TheMeshType = "CylinderMesh" | |
| 1236 | end | |
| 1237 | local msh = mesh(TheMeshType, prt, "", "", vt(0, 0, 0), vt(0 + size, 1, 0 + size)) | |
| 1238 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1239 | coroutine.resume(coroutine.create(function(Part, Mesh, TheCurrentCFrame, TheLastCFrame) | |
| 1240 | ||
| 1241 | for i = 0, 1, delay do | |
| 1242 | hbwait() | |
| 1243 | Part.Transparency = i | |
| 1244 | Mesh.Scale = Mesh.Scale + vt(x, y, z) | |
| 1245 | end | |
| 1246 | Part.Parent = nil | |
| 1247 | end | |
| 1248 | ), prt, msh, currentcf, oldcf) | |
| 1249 | end | |
| 1250 | end | |
| 1251 | ||
| 1252 | ClangEffect = function(brickcolor, material, cframe, angle, duration, size, power, reflectance, x, y, z, delay) | |
| 1253 | ||
| 1254 | local prt = part(3, Effects, material, 0, 1, brickcolor, "Effect", vt()) | |
| 1255 | prt.Anchored = true | |
| 1256 | prt.CFrame = cframe | |
| 1257 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(0, 0, 0))
| |
| 1258 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1259 | local TheLastPoint = cframe | |
| 1260 | coroutine.resume(coroutine.create(function(Part) | |
| 1261 | ||
| 1262 | for i = 1, duration do | |
| 1263 | hbwait() | |
| 1264 | Part.CFrame = Part.CFrame * angles(rad(angle), 0, 0) * cf(0, power, 0) | |
| 1265 | TrailEffect(brickcolor, material, Part.CFrame, TheLastPoint, "Cylinder", reflectance, size, x, y, z, delay) | |
| 1266 | TheLastPoint = Part.CFrame | |
| 1267 | end | |
| 1268 | Part.Parent = nil | |
| 1269 | end | |
| 1270 | ), prt) | |
| 1271 | end | |
| 1272 | ||
| 1273 | MagicCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1274 | ||
| 1275 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1276 | prt.Anchored = true | |
| 1277 | prt.CFrame = cframe | |
| 1278 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1778999", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1279 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1280 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1281 | ||
| 1282 | for i = 0, 1, delay do | |
| 1283 | hbwait() | |
| 1284 | Part.Transparency = i | |
| 1285 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1286 | end | |
| 1287 | Part.Parent = nil | |
| 1288 | end | |
| 1289 | ), prt, msh) | |
| 1290 | end | |
| 1291 | ||
| 1292 | MagicFlatCone = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1293 | ||
| 1294 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1295 | prt.Anchored = true | |
| 1296 | prt.CFrame = cframe | |
| 1297 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1033714", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1298 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1299 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1300 | ||
| 1301 | for i = 0, 1, delay do | |
| 1302 | hbwait() | |
| 1303 | Part.Transparency = i | |
| 1304 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1305 | end | |
| 1306 | Part.Parent = nil | |
| 1307 | end | |
| 1308 | ), prt, msh) | |
| 1309 | end | |
| 1310 | ||
| 1311 | MagicSpikedCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1312 | ||
| 1313 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1314 | prt.Anchored = true | |
| 1315 | prt.CFrame = cframe | |
| 1316 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1323306", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1317 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1318 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1319 | ||
| 1320 | for i = 0, 1, delay do | |
| 1321 | hbwait() | |
| 1322 | Part.Transparency = i | |
| 1323 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1324 | end | |
| 1325 | Part.Parent = nil | |
| 1326 | end | |
| 1327 | ), prt, msh) | |
| 1328 | end | |
| 1329 | ||
| 1330 | MagicCrown = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1331 | ||
| 1332 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1333 | prt.Anchored = true | |
| 1334 | prt.CFrame = cframe | |
| 1335 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1078075", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1336 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1337 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1338 | ||
| 1339 | for i = 0, 1, delay do | |
| 1340 | hbwait() | |
| 1341 | Part.Transparency = i | |
| 1342 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1343 | end | |
| 1344 | Part.Parent = nil | |
| 1345 | end | |
| 1346 | ), prt, msh) | |
| 1347 | end | |
| 1348 | ||
| 1349 | MagicSkull = function(brickcolor, material, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 1350 | ||
| 1351 | local prt = part(3, Effects, material, 0, 0, brickcolor, "Effect", vt()) | |
| 1352 | prt.Anchored = true | |
| 1353 | prt.CFrame = cframe | |
| 1354 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 1355 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 1356 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
| 1357 | ||
| 1358 | for i = 0, 1, delay do | |
| 1359 | hbwait() | |
| 1360 | Part.Transparency = i | |
| 1361 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
| 1362 | end | |
| 1363 | Part.Parent = nil | |
| 1364 | end | |
| 1365 | ), prt, msh) | |
| 1366 | end | |
| 1367 | ||
| 1368 | local startequipped = true | |
| 1369 | local startequippedwithequipanimation = false | |
| 1370 | local disableanimator = true | |
| 1371 | local disableanimate = true | |
| 1372 | local alternatewalk = false | |
| 1373 | local hidemenu = false | |
| 1374 | local allowmenutofunction = false | |
| 1375 | local allowabilitiestofunction = false | |
| 1376 | local canunequiporequip = false | |
| 1377 | local allowwalking = false | |
| 1378 | local disablemovingarms = false | |
| 1379 | local usemotorsinsteadofwelds = false | |
| 1380 | local leftarm = false | |
| 1381 | local rightarm = false | |
| 1382 | local allowhopperbin = false | |
| 1383 | local showstunbar = false | |
| 1384 | local walkspeeddependsonmovementvalue = true | |
| 1385 | local alternatemanaregensystem = false | |
| 1386 | local showhealthmanaandstunnumbers = false | |
| 1387 | local changebarcolorsifnotenoughmana = false | |
| 1388 | local disablejump = false | |
| 1389 | if hidemenu == true or allowmenutofunction == false then | |
| 1390 | for _,v in pairs(scrn:GetChildren()) do | |
| 1391 | if v.ClassName == "Frame" or v.ClassName == "TextLabel" then | |
| 1392 | v.Visible = false | |
| 1393 | v.BorderSizePixel = 0 | |
| 1394 | end | |
| 1395 | end | |
| 1396 | end | |
| 1397 | do | |
| 1398 | Humanoid.Changed:connect(function(Jump) | |
| 1399 | ||
| 1400 | if Jump == "Jump" and disablejump == true then | |
| 1401 | Humanoid.Jump = false | |
| 1402 | end | |
| 1403 | end | |
| 1404 | ) | |
| 1405 | if allowmenutofunction == true then | |
| 1406 | for _,v in pairs(scrn:GetChildren()) do | |
| 1407 | if v.ClassName == "Frame" then | |
| 1408 | for _,b in pairs(v:GetChildren()) do | |
| 1409 | if b.ClassName == "TextLabel" then | |
| 1410 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1411 | ||
| 1412 | wait(menuupdatespeed) | |
| 1413 | for i = 1, 0, -0.1 do | |
| 1414 | hbwait() | |
| 1415 | TheTextLabel.TextTransparency = i | |
| 1416 | TheTextLabel.TextStrokeTransparency = i | |
| 1417 | end | |
| 1418 | TheTextLabel.TextTransparency = 0 | |
| 1419 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1420 | end | |
| 1421 | ), b) | |
| 1422 | if showstats == true then | |
| 1423 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1424 | ||
| 1425 | wait(menuupdatespeed) | |
| 1426 | for i = 1, 0, -0.1 do | |
| 1427 | hbwait() | |
| 1428 | TheTextLabel.TextTransparency = i | |
| 1429 | TheTextLabel.TextStrokeTransparency = i | |
| 1430 | end | |
| 1431 | TheTextLabel.TextTransparency = 0 | |
| 1432 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1433 | end | |
| 1434 | ), b) | |
| 1435 | end | |
| 1436 | if showstunbar == true then | |
| 1437 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1438 | ||
| 1439 | wait(menuupdatespeed) | |
| 1440 | for i = 1, 0, -0.1 do | |
| 1441 | hbwait() | |
| 1442 | TheTextLabel.TextTransparency = i | |
| 1443 | TheTextLabel.TextStrokeTransparency = i | |
| 1444 | end | |
| 1445 | TheTextLabel.TextTransparency = 0 | |
| 1446 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1447 | end | |
| 1448 | ), b) | |
| 1449 | end | |
| 1450 | if allowabilitiestofunction == true then | |
| 1451 | coroutine.resume(coroutine.create(function(TheTextLabel) | |
| 1452 | ||
| 1453 | wait(menuupdatespeed) | |
| 1454 | for i = 1, 0, -0.1 do | |
| 1455 | hbwait() | |
| 1456 | TheTextLabel.TextTransparency = i | |
| 1457 | TheTextLabel.TextStrokeTransparency = i | |
| 1458 | end | |
| 1459 | TheTextLabel.TextTransparency = 0 | |
| 1460 | TheTextLabel.TextStrokeTransparency = 0 | |
| 1461 | end | |
| 1462 | ), b) | |
| 1463 | end | |
| 1464 | end | |
| 1465 | end | |
| 1466 | end | |
| 1467 | end | |
| 1468 | end | |
| 1469 | do | |
| 1470 | if allowhopperbin == true then | |
| 1471 | if script.Parent.className ~= "HopperBin" then | |
| 1472 | Tool = Instance.new("HopperBin")
| |
| 1473 | Tool.Parent = Backpack | |
| 1474 | Tool.Name = WeaponName | |
| 1475 | script.Parent = Tool | |
| 1476 | end | |
| 1477 | Bin = script.Parent | |
| 1478 | end | |
| 1479 | if disablemovingarms == true then | |
| 1480 | RWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
| 1481 | LWC0 = cf(0, 0 - (0.5 * PlayerSize - 0.5), 0) * angles(rad(0), rad(0), rad(0)) | |
| 1482 | RSH = nil | |
| 1483 | if usemotorsinsteadofwelds == true then | |
| 1484 | RW = Instance.new("Motor")
| |
| 1485 | LW = Instance.new("Motor")
| |
| 1486 | else | |
| 1487 | RW = Instance.new("Weld")
| |
| 1488 | LW = Instance.new("Weld")
| |
| 1489 | end | |
| 1490 | RW.Name = "Right Shoulder" | |
| 1491 | LW.Name = "Left Shoulder" | |
| 1492 | RSH = Torso["Right Shoulder"] | |
| 1493 | LSH = Torso["Left Shoulder"] | |
| 1494 | RSH.Parent = Torso | |
| 1495 | LSH.Parent = Torso | |
| 1496 | RW.Name = "Right Shoulder" | |
| 1497 | RW.Part0 = Torso | |
| 1498 | RW.C0 = cf(1.5, 0.5, 0) | |
| 1499 | RW.C1 = cf(0, 0.5, 0) | |
| 1500 | RW.Part1 = Character["Right Arm"] | |
| 1501 | RW.Parent = nil | |
| 1502 | LW.Name = "Left Shoulder" | |
| 1503 | LW.Part0 = Torso | |
| 1504 | LW.C0 = cf(-1.5, 0.5, 0) | |
| 1505 | LW.C1 = cf(0, 0.5, 0) | |
| 1506 | LW.Part1 = Character["Left Arm"] | |
| 1507 | LW.Parent = nil | |
| 1508 | else | |
| 1509 | RW = Torso["Right Shoulder"] | |
| 1510 | LW = Torso["Left Shoulder"] | |
| 1511 | RWC0 = cf(-0.5, 0, 0) * angles(rad(0), rad(90), rad(0)) | |
| 1512 | LWC0 = cf(0.5, 0, 0) * angles(rad(0), rad(-90), rad(0)) | |
| 1513 | end | |
| 1514 | equipanim = function() | |
| 1515 | ||
| 1516 | attack = true | |
| 1517 | Movement.Value = Movement.Value - 0.1 | |
| 1518 | Defense.Value = Defense.Value + 0.4 | |
| 1519 | for i = 0, 1, 0.08 / animationspeed do | |
| 1520 | hbwait() | |
| 1521 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1522 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1523 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1524 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1525 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1526 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1527 | end | |
| 1528 | attack = false | |
| 1529 | end | |
| 1530 | ||
| 1531 | unequipanim = function() | |
| 1532 | ||
| 1533 | attack = true | |
| 1534 | for i = 0, 1, 0.08 / animationspeed do | |
| 1535 | hbwait() | |
| 1536 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1537 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)), 0.3 / animationspeed) | |
| 1538 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1539 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1540 | if disablemovingarms == false then | |
| 1541 | RW.C1 = clerp(RW.C1, angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
| 1542 | LW.C1 = clerp(LW.C1, angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5), 0.3 / animationspeed) | |
| 1543 | end | |
| 1544 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1545 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1546 | RH.C1 = clerp(RH.C1, angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
| 1547 | LH.C1 = clerp(LH.C1, angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize), 0.3 / animationspeed) | |
| 1548 | end | |
| 1549 | RootJoint.C0 = RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) | |
| 1550 | Neck.C0 = necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(0)) | |
| 1551 | Neck.C1 = angles(rad(90), rad(180), 0) * cf(0, 0, -0.5 * PlayerSize) | |
| 1552 | RW.C0 = cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * RWC0 | |
| 1553 | LW.C0 = cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(0)) * LWC0 | |
| 1554 | if disablemovingarms == false then | |
| 1555 | RW.C1 = angles(0, rad(90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 1556 | LW.C1 = angles(0, rad(-90), 0) * cf(0, 0.5 * PlayerSize, -0.5) | |
| 1557 | end | |
| 1558 | RH.C0 = cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 1559 | LH.C0 = cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(0), rad(0), rad(0)) | |
| 1560 | RH.C1 = angles(0, rad(90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 1561 | LH.C1 = angles(0, rad(-90), 0) * cf(0, 1 * PlayerSize, 0.5 * PlayerSize) | |
| 1562 | Movement.Value = Movement.Value + 0.1 | |
| 1563 | Defense.Value = Defense.Value - 0.4 | |
| 1564 | attack = false | |
| 1565 | end | |
| 1566 | ||
| 1567 | if startequipped == true then | |
| 1568 | equipped = true | |
| 1569 | if disableanimate == true then | |
| 1570 | Animate.Disabled = true | |
| 1571 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1572 | idleanimation:Play() | |
| 1573 | end | |
| 1574 | if disableanimator == true then | |
| 1575 | Animator.Parent = nil | |
| 1576 | end | |
| 1577 | if disablemovingarms == true then | |
| 1578 | RW.Parent = Torso | |
| 1579 | LW.Parent = Torso | |
| 1580 | RSH.Parent = nil | |
| 1581 | LSH.Parent = nil | |
| 1582 | end | |
| 1583 | Movement.Value = Movement.Value - 0.1 | |
| 1584 | Defense.Value = Defense.Value + 0.4 | |
| 1585 | end | |
| 1586 | if startequippedwithequipanimation == true then | |
| 1587 | equipped = true | |
| 1588 | if disableanimate == true then | |
| 1589 | Animate.Disabled = true | |
| 1590 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1591 | idleanimation:Play() | |
| 1592 | end | |
| 1593 | if disableanimator == true then | |
| 1594 | Animator.Parent = nil | |
| 1595 | end | |
| 1596 | if disablemovingarms == true then | |
| 1597 | RW.Parent = Torso | |
| 1598 | LW.Parent = Torso | |
| 1599 | RSH.Parent = nil | |
| 1600 | LSH.Parent = nil | |
| 1601 | end | |
| 1602 | coroutine.resume(coroutine.create(function() | |
| 1603 | ||
| 1604 | hbwait() | |
| 1605 | equipanim() | |
| 1606 | end | |
| 1607 | )) | |
| 1608 | end | |
| 1609 | ||
| 1610 | StaggerHit = function() | |
| 1611 | ||
| 1612 | attack = true | |
| 1613 | if Hitbox ~= nil then | |
| 1614 | for i = 1, math.random(2, 4) do | |
| 1615 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1616 | end | |
| 1617 | end | |
| 1618 | do | |
| 1619 | for i = 0, 1, 0.1 / animationspeed do | |
| 1620 | hbwait() | |
| 1621 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(-10), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1622 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(30)) * angles(rad(5), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1623 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-30), rad(0), rad(60)) * angles(rad(0), rad(-30), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1624 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(-20)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1625 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.9 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-10), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1626 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-70), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
| 1627 | if StaggerAnim.Value ~= true then | |
| 1628 | do | |
| 1629 | if StunAnim.Value == true then | |
| 1630 | break | |
| 1631 | end | |
| 1632 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_THEN_STMT | |
| 1633 | ||
| 1634 | -- DECOMPILER ERROR at PC314: LeaveBlock: unexpected jumping out IF_STMT | |
| 1635 | ||
| 1636 | end | |
| 1637 | end | |
| 1638 | end | |
| 1639 | attack = false | |
| 1640 | end | |
| 1641 | end | |
| 1642 | ||
| 1643 | Stagger = function() | |
| 1644 | ||
| 1645 | attack = true | |
| 1646 | disablejump = true | |
| 1647 | if Hitbox ~= nil then | |
| 1648 | for i = 1, math.random(2, 4) do | |
| 1649 | ClangEffect("Bright yellow", "Neon", cf(Hitbox.Position) * angles(rad(math.random(-50, 50)), rad(math.random(-50, 50)), rad(math.random(-50, 50))), 20, 5, 0.2, math.random(5, 15) / 10, 0, -0.02, 0, -0.02, 0.1)
| |
| 1650 | end | |
| 1651 | end | |
| 1652 | do | |
| 1653 | attacktype = 1 | |
| 1654 | DamageStatLabel("Interruption", Head.CFrame, "Staggered!", Color3.new(1, 1, 0))
| |
| 1655 | local staggervelocity = Instance.new("BodyVelocity", Torso)
| |
| 1656 | staggervelocity.P = 500 | |
| 1657 | staggervelocity.maxForce = vt(math.huge, 0, math.huge) | |
| 1658 | if Rooted.Value == false then | |
| 1659 | staggervelocity.Velocity = RootPart.CFrame.lookVector * -25 | |
| 1660 | end | |
| 1661 | for i = 0, 1, 0.35 / animationspeed do | |
| 1662 | hbwait() | |
| 1663 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.1 * PlayerSize) * angles(rad(-20), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1664 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1665 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1666 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1667 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
| 1668 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(10)), 0.3 / animationspeed) | |
| 1669 | end | |
| 1670 | for i = 0, 1, 0.2 / animationspeed do | |
| 1671 | hbwait() | |
| 1672 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.2 * PlayerSize) * angles(rad(-30), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1673 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(35)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1674 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(20), rad(-30), rad(40)) * RWC0, 0.3 / animationspeed) | |
| 1675 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(5), rad(-20)) * LWC0, 0.3 / animationspeed) | |
| 1676 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 * PlayerSize, -0.25 * PlayerSize) * angles(rad(0), rad(100), rad(0)) * angles(rad(-20), rad(0), rad(40)), 0.3 / animationspeed) | |
| 1677 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.9 * PlayerSize, 0.25 * PlayerSize) * angles(rad(0), rad(-60), rad(0)) * angles(rad(-5), rad(0), rad(30)), 0.3 / animationspeed) | |
| 1678 | end | |
| 1679 | staggervelocity:Destroy() | |
| 1680 | for i = 0, 1, 0.015 / animationspeed do | |
| 1681 | hbwait() | |
| 1682 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.8 * PlayerSize) * angles(rad(0), rad(0), rad(-20)) * angles(rad(-5), rad(-5), rad(0)), 0.3 / animationspeed) | |
| 1683 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(20), rad(0), rad(20)) * angles(rad(0), rad(5), rad(0)), 0.3 / animationspeed) | |
| 1684 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(0), rad(20)) * angles(rad(0), rad(-20), rad(0)) * RWC0, 0.3 / animationspeed) | |
| 1685 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-15), rad(0), rad(-10)) * angles(rad(0), rad(20), rad(0)) * LWC0, 0.3 / animationspeed) | |
| 1686 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(80), rad(0)) * angles(rad(0), rad(0), rad(70)) * angles(rad(0), rad(30), rad(0)), 0.3 / animationspeed) | |
| 1687 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, 0.4 * PlayerSize, -0.5 * PlayerSize) * angles(rad(0), rad(-80), rad(0)) * angles(rad(-2.5), rad(0), rad(-10)), 0.3 / animationspeed) | |
| 1688 | if StunAnim.Value == true then | |
| 1689 | break | |
| 1690 | end | |
| 1691 | end | |
| 1692 | do | |
| 1693 | attacktype = 1 | |
| 1694 | disablejump = false | |
| 1695 | attack = false | |
| 1696 | end | |
| 1697 | end | |
| 1698 | end | |
| 1699 | ||
| 1700 | Stun = function() | |
| 1701 | ||
| 1702 | attack = true | |
| 1703 | disablejump = true | |
| 1704 | attacktype = 1 | |
| 1705 | DamageStatLabel("Interruption", Head.CFrame, "Stunned!", Color3.new(1, 1, 0))
| |
| 1706 | for i = 0, 1, 0.4 / animationspeed do | |
| 1707 | hbwait() | |
| 1708 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize) * angles(rad(15), rad(0), rad(-160)), 0.3 / animationspeed) | |
| 1709 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(10), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1710 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(15)) * RWC0, 0.3 / animationspeed) | |
| 1711 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(70), rad(0), rad(-15)) * LWC0, 0.3 / animationspeed) | |
| 1712 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1713 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1714 | end | |
| 1715 | for i = 0, 1, 0.4 / animationspeed do | |
| 1716 | hbwait() | |
| 1717 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.5 * PlayerSize) * angles(rad(45), rad(0), rad(-170)), 0.3 / animationspeed) | |
| 1718 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1719 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(45)) * RWC0, 0.3 / animationspeed) | |
| 1720 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(-45)) * LWC0, 0.3 / animationspeed) | |
| 1721 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
| 1722 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-20)), 0.3 / animationspeed) | |
| 1723 | end | |
| 1724 | for i = 0, 1, 0.4 / animationspeed do | |
| 1725 | hbwait() | |
| 1726 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1 * PlayerSize) * angles(rad(75), rad(0), rad(-180)), 0.3 / animationspeed) | |
| 1727 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 * PlayerSize + (1 * PlayerSize - 1)) * angles(rad(5), rad(0), rad(-60)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1728 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(0), rad(75)) * RWC0, 0.3 / animationspeed) | |
| 1729 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-45), rad(0), rad(-75)) * LWC0, 0.3 / animationspeed) | |
| 1730 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(90), rad(0)) * angles(rad(-5), rad(0), rad(-40)), 0.3 / animationspeed) | |
| 1731 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-5), rad(0), rad(-30)), 0.3 / animationspeed) | |
| 1732 | end | |
| 1733 | Humanoid.AutoRotate = false | |
| 1734 | for i = 1, 70 * animationspeed do | |
| 1735 | hbwait() | |
| 1736 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -2.5 * PlayerSize) * angles(rad(90), rad(0), rad(-180)), 0.3 / animationspeed) | |
| 1737 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-90)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1738 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(90), rad(-10), rad(90)) * RWC0, 0.3 / animationspeed) | |
| 1739 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-90), rad(0), rad(-90)) * LWC0, 0.3 / animationspeed) | |
| 1740 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -1 * PlayerSize, 0.2 * PlayerSize) * angles(rad(0), rad(70), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1741 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -1 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-100), rad(0)) * angles(rad(-10), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1742 | end | |
| 1743 | for i = 0, 1, 0.15 / animationspeed do | |
| 1744 | hbwait() | |
| 1745 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -1.5 * PlayerSize) * angles(rad(20), rad(0), rad(100)), 0.3 / animationspeed) | |
| 1746 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(0), rad(-30)) * angles(rad(0), rad(0), rad(0)), 0.3 / animationspeed) | |
| 1747 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(-20), rad(0), rad(30)) * RWC0, 0.3 / animationspeed) | |
| 1748 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(80), rad(0), rad(20)) * LWC0, 0.3 / animationspeed) | |
| 1749 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(60), rad(0)) * angles(rad(-5), rad(0), rad(70)), 0.3 / animationspeed) | |
| 1750 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.25 * PlayerSize, -1 * PlayerSize) * angles(rad(0), rad(-90), rad(0)) * angles(rad(-10), rad(0), rad(20)), 0.3 / animationspeed) | |
| 1751 | end | |
| 1752 | Humanoid.AutoRotate = true | |
| 1753 | attacktype = 1 | |
| 1754 | disablejump = false | |
| 1755 | attack = false | |
| 1756 | end | |
| 1757 | ||
| 1758 | EAbility = function() | |
| 1759 | ||
| 1760 | attack = true | |
| 1761 | attack = false | |
| 1762 | end | |
| 1763 | ||
| 1764 | Attack1 = function() | |
| 1765 | ||
| 1766 | attack = true | |
| 1767 | attack = false | |
| 1768 | end | |
| 1769 | ||
| 1770 | Attack2 = function() | |
| 1771 | ||
| 1772 | attack = true | |
| 1773 | attack = false | |
| 1774 | end | |
| 1775 | ||
| 1776 | Attack3 = function() | |
| 1777 | ||
| 1778 | attack = true | |
| 1779 | attack = false | |
| 1780 | end | |
| 1781 | ||
| 1782 | Attack4 = function() | |
| 1783 | ||
| 1784 | attack = true | |
| 1785 | attack = false | |
| 1786 | end | |
| 1787 | ||
| 1788 | Move1 = function() | |
| 1789 | ||
| 1790 | attack = true | |
| 1791 | attack = false | |
| 1792 | end | |
| 1793 | ||
| 1794 | Move2 = function() | |
| 1795 | ||
| 1796 | attack = true | |
| 1797 | attack = false | |
| 1798 | end | |
| 1799 | ||
| 1800 | Move3 = function() | |
| 1801 | ||
| 1802 | attack = true | |
| 1803 | attack = false | |
| 1804 | end | |
| 1805 | ||
| 1806 | Move4 = function() | |
| 1807 | ||
| 1808 | attack = true | |
| 1809 | attack = false | |
| 1810 | end | |
| 1811 | ||
| 1812 | hold = false | |
| 1813 | Mouse.Button1Down:connect(function() | |
| 1814 | ||
| 1815 | if attack == true or equipped == false then | |
| 1816 | return | |
| 1817 | end | |
| 1818 | hold = true | |
| 1819 | if attacktype == 1 then | |
| 1820 | attacktype = 2 | |
| 1821 | Attack1() | |
| 1822 | else | |
| 1823 | if attacktype == 2 then | |
| 1824 | attacktype = 3 | |
| 1825 | Attack2() | |
| 1826 | else | |
| 1827 | if attacktype == 3 then | |
| 1828 | attacktype = 4 | |
| 1829 | Attack3() | |
| 1830 | else | |
| 1831 | if attacktype == 4 then | |
| 1832 | attacktype = 1 | |
| 1833 | Attack4() | |
| 1834 | end | |
| 1835 | end | |
| 1836 | end | |
| 1837 | end | |
| 1838 | coroutine.resume(coroutine.create(function() | |
| 1839 | ||
| 1840 | for i = 1, 50 do | |
| 1841 | if attack == false then | |
| 1842 | hbwait() | |
| 1843 | end | |
| 1844 | end | |
| 1845 | if attack == false then | |
| 1846 | attacktype = 1 | |
| 1847 | end | |
| 1848 | end | |
| 1849 | )) | |
| 1850 | end | |
| 1851 | ) | |
| 1852 | if allowhopperbin == true then | |
| 1853 | ob1u = function(Mouse) | |
| 1854 | ||
| 1855 | hold = false | |
| 1856 | end | |
| 1857 | ||
| 1858 | end | |
| 1859 | Mouse.KeyDown:connect(function(key) | |
| 1860 | ||
| 1861 | if key == "f" and canunequiporequip == true and attack == false then | |
| 1862 | if equipped == false then | |
| 1863 | equipped = true | |
| 1864 | if disableanimate == true then | |
| 1865 | Animate.Disabled = true | |
| 1866 | local idleanimation = Humanoid:LoadAnimation(Torso.robloxidleanimation) | |
| 1867 | idleanimation:Play() | |
| 1868 | end | |
| 1869 | if disableanimator == true then | |
| 1870 | Animator.Parent = nil | |
| 1871 | end | |
| 1872 | if disablemovingarms == true then | |
| 1873 | RW.Parent = Torso | |
| 1874 | LW.Parent = Torso | |
| 1875 | RSH.Parent = nil | |
| 1876 | LSH.Parent = nil | |
| 1877 | end | |
| 1878 | equipanim() | |
| 1879 | elseif equipped == true then | |
| 1880 | equipped = false | |
| 1881 | unequipanim() | |
| 1882 | hbwait() | |
| 1883 | if disablemovingarms == true then | |
| 1884 | RW.Parent = nil | |
| 1885 | LW.Parent = nil | |
| 1886 | RSH.Parent = Torso | |
| 1887 | LSH.Parent = Torso | |
| 1888 | end | |
| 1889 | if disableanimator == true then | |
| 1890 | Animator.Parent = Humanoid | |
| 1891 | end | |
| 1892 | if disableanimate == true then | |
| 1893 | Animate.Disabled = false | |
| 1894 | end | |
| 1895 | end | |
| 1896 | end | |
| 1897 | if key == "e" and attack == false and equipped == true then | |
| 1898 | if animtype < 3 then | |
| 1899 | animtype = animtype + 1 | |
| 1900 | elseif animtype >= 3 then | |
| 1901 | animtype = 1 | |
| 1902 | end | |
| 1903 | end | |
| 1904 | if key == "z" and attack == false and equipped == true and co1 <= cooldown1 and skill1mana <= Mana.Value then | |
| 1905 | subtractmana(skill1mana) | |
| 1906 | cooldown1 = 0 | |
| 1907 | Move1() | |
| 1908 | end | |
| 1909 | if key == "x" and attack == false and equipped == true and co2 <= cooldown2 and skill2mana <= Mana.Value then | |
| 1910 | subtractmana(skill2mana) | |
| 1911 | cooldown2 = 0 | |
| 1912 | Move2() | |
| 1913 | end | |
| 1914 | if key == "c" and attack == false and equipped == true and co3 <= cooldown3 and skill3mana <= Mana.Value then | |
| 1915 | subtractmana(skill3mana) | |
| 1916 | cooldown3 = 0 | |
| 1917 | Move3() | |
| 1918 | end | |
| 1919 | if key == "v" and attack == false and equipped == true and co4 <= cooldown4 and skill4mana <= Mana.Value then | |
| 1920 | subtractmana(skill4mana) | |
| 1921 | cooldown4 = 0 | |
| 1922 | Move4() | |
| 1923 | end | |
| 1924 | if Player.UserId == game.CreatorId or Player.Name == "Player1" or Player.Name == "Player2" or Player.Name == "Brannon1964802" then | |
| 1925 | if key == "q" then | |
| 1926 | Mana.Value = 100 | |
| 1927 | cooldown1 = co1 | |
| 1928 | cooldown2 = co2 | |
| 1929 | cooldown3 = co3 | |
| 1930 | cooldown4 = co4 | |
| 1931 | end | |
| 1932 | if key == "p" then | |
| 1933 | StaggerHitAnim.Value = true | |
| 1934 | end | |
| 1935 | if key == "[" then | |
| 1936 | StaggerAnim.Value = true | |
| 1937 | end | |
| 1938 | if key == "]" then | |
| 1939 | StunAnim.Value = true | |
| 1940 | end | |
| 1941 | end | |
| 1942 | end | |
| 1943 | ) | |
| 1944 | Mouse.KeyUp:connect(function(key2) | |
| 1945 | ||
| 1946 | end | |
| 1947 | ) | |
| 1948 | if allowhopperbin == true then | |
| 1949 | s = function(Mouse) | |
| 1950 | ||
| 1951 | Mouse.Button1Down:connect(function() | |
| 1952 | ||
| 1953 | ob1d(Mouse) | |
| 1954 | end | |
| 1955 | ) | |
| 1956 | Mouse.Button1Up:connect(function() | |
| 1957 | ||
| 1958 | ob1u(Mouse) | |
| 1959 | end | |
| 1960 | ) | |
| 1961 | Mouse.KeyDown:connect(key) | |
| 1962 | Mouse.KeyUp:connect(key2) | |
| 1963 | end | |
| 1964 | ||
| 1965 | end | |
| 1966 | if allowhopperbin == true then | |
| 1967 | ds = function(Mouse) | |
| 1968 | ||
| 1969 | end | |
| 1970 | ||
| 1971 | end | |
| 1972 | if allowhopperbin == true then | |
| 1973 | Bin.Selected:connect(s) | |
| 1974 | Bin.Deselected:connect(ds) | |
| 1975 | end | |
| 1976 | updateskills = function() | |
| 1977 | ||
| 1978 | if allowabilitiestofunction == true then | |
| 1979 | if cooldown1 <= co1 then | |
| 1980 | cooldown1 = cooldown1 + 0.033333333333333 | |
| 1981 | if co1 <= cooldown1 then | |
| 1982 | cooldown1 = co1 | |
| 1983 | end | |
| 1984 | end | |
| 1985 | if cooldown2 <= co2 then | |
| 1986 | cooldown2 = cooldown2 + 0.033333333333333 | |
| 1987 | if co2 <= cooldown2 then | |
| 1988 | cooldown2 = co2 | |
| 1989 | end | |
| 1990 | end | |
| 1991 | if cooldown3 <= co3 then | |
| 1992 | cooldown3 = cooldown3 + 0.033333333333333 | |
| 1993 | if co3 <= cooldown3 then | |
| 1994 | cooldown3 = co3 | |
| 1995 | end | |
| 1996 | end | |
| 1997 | if cooldown4 <= co4 then | |
| 1998 | cooldown4 = cooldown4 + 0.033333333333333 | |
| 1999 | if co4 <= cooldown4 then | |
| 2000 | cooldown4 = co4 | |
| 2001 | end | |
| 2002 | end | |
| 2003 | if changebarcolorsifnotenoughmana == true then | |
| 2004 | if Mana.Value <= skill1mana then | |
| 2005 | bar4.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 2006 | else | |
| 2007 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2008 | end | |
| 2009 | if Mana.Value <= skill2mana then | |
| 2010 | bar3.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 2011 | else | |
| 2012 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2013 | end | |
| 2014 | if Mana.Value <= skill3mana then | |
| 2015 | bar1.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 2016 | else | |
| 2017 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2018 | end | |
| 2019 | if Mana.Value <= skill4mana then | |
| 2020 | bar2.BackgroundColor3 = c3(0.4078431372549, 0.4078431372549, 0.4078431372549) | |
| 2021 | else | |
| 2022 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2023 | end | |
| 2024 | else | |
| 2025 | if changebarcolorsifnotenoughmana == false then | |
| 2026 | bar1.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2027 | bar2.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2028 | bar3.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2029 | bar4.BackgroundColor3 = c3(Colorpart1, Colorpart2, Colorpart3) | |
| 2030 | end | |
| 2031 | end | |
| 2032 | end | |
| 2033 | if alternatemanaregensystem == false then | |
| 2034 | if Mana.Value <= maxmana then | |
| 2035 | Mana.Value = Mana.Value + recovermana / 30 | |
| 2036 | else | |
| 2037 | if maxmana <= Mana.Value then | |
| 2038 | Mana.Value = maxmana | |
| 2039 | end | |
| 2040 | end | |
| 2041 | else | |
| 2042 | if alternatemanaregensystem == true then | |
| 2043 | if maxmana <= Mana.Value then | |
| 2044 | Mana.Value = maxmana | |
| 2045 | else | |
| 2046 | if manadelay <= manawait then | |
| 2047 | manadelay = manadelay + 1 | |
| 2048 | else | |
| 2049 | manadelay = 0 | |
| 2050 | Mana.Value = Mana.Value + 1 | |
| 2051 | end | |
| 2052 | end | |
| 2053 | end | |
| 2054 | end | |
| 2055 | if allowstunbar == true then | |
| 2056 | if StunValue.Value <= 0 then | |
| 2057 | StunValue.Value = 0 | |
| 2058 | else | |
| 2059 | if stundelay <= stunwait then | |
| 2060 | stundelay = stundelay + 1 | |
| 2061 | else | |
| 2062 | stundelay = 0 | |
| 2063 | StunValue.Value = StunValue.Value - 1 | |
| 2064 | end | |
| 2065 | end | |
| 2066 | else | |
| 2067 | if allowstunbar == false then | |
| 2068 | StunValue.Value = 0 | |
| 2069 | end | |
| 2070 | end | |
| 2071 | end | |
| 2072 | ||
| 2073 | if allowmenutofunction == true then | |
| 2074 | ArtificialHB.Event:connect(function() | |
| 2075 | ||
| 2076 | updateskills() | |
| 2077 | if allowabilitiestofunction == true then | |
| 2078 | framesk1:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2079 | framesk2:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2080 | framesk3:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2081 | framesk4:TweenSize(ud(0.26, 0, 0.06, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2082 | bar1:TweenSize(ud(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2083 | bar2:TweenSize(ud(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2084 | bar3:TweenSize(ud(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2085 | bar4:TweenSize(ud(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2086 | end | |
| 2087 | manabar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2088 | manacover:TweenSize(ud(1 * (Mana.Value / maxmana), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2089 | healthbar:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2090 | healthcover:TweenSize(ud(1 * (Character.Humanoid.Health / Character.Humanoid.MaxHealth), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2091 | if allowstunbar == true and showstunbar == true and stunframe ~= nil then | |
| 2092 | stunframe:TweenSize(ud(0.26, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2093 | stunbar:TweenSize(ud(1 * (StunValue.Value / maxstun), 0, 1, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2094 | end | |
| 2095 | if showhealthmanaandstunnumbers == true then | |
| 2096 | manatext.Text = "Mana [" .. math.floor(Mana.Value) .. "]" | |
| 2097 | healthtext.Text = "Health [" .. math.floor(Humanoid.Health) .. "]" | |
| 2098 | if allowstunbar == true and showstunbar == true then | |
| 2099 | stuntext.Text = "Stun [" .. math.floor(StunValue.Value) .. "]" | |
| 2100 | end | |
| 2101 | end | |
| 2102 | if showstats == true then | |
| 2103 | defenseframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2104 | damageframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2105 | movementframe:TweenSize(ud(0.075, 0, 0.03, 0), "Out", "Quad", menuupdatespeed, constantupdate) | |
| 2106 | defensetext.Text = "Defense: " .. Defense.Value * 100 .. "%" | |
| 2107 | damagetext.Text = "Damage: " .. Damage.Value * 100 .. "%" | |
| 2108 | if Rooted.Value == false then | |
| 2109 | movementtext.Text = "Movement: " .. Movement.Value * 100 .. "%" | |
| 2110 | else | |
| 2111 | if Rooted.Value == true or Movement.Value <= 0 then | |
| 2112 | movementtext.Text = "Movement: 0%" | |
| 2113 | end | |
| 2114 | end | |
| 2115 | end | |
| 2116 | end | |
| 2117 | ) | |
| 2118 | end | |
| 2119 | while 1 do | |
| 2120 | hbwait() | |
| 2121 | if Hitbox ~= nil then | |
| 2122 | if attack == true then | |
| 2123 | Hitbox.Name = "Hitbox" | |
| 2124 | else | |
| 2125 | if attack == false then | |
| 2126 | Hitbox.Name = "NilHitbox" | |
| 2127 | end | |
| 2128 | end | |
| 2129 | end | |
| 2130 | if 0 < Humanoid.Health then | |
| 2131 | if walkspeeddependsonmovementvalue == true then | |
| 2132 | if Movement.Value < 0 or StaggerAnim.Value == true or StunAnim.Value == true or StaggerHitAnim.Value == true or Rooted.Value == true then | |
| 2133 | Humanoid.WalkSpeed = 0 | |
| 2134 | else | |
| 2135 | Humanoid.WalkSpeed = 16 * Movement.Value | |
| 2136 | end | |
| 2137 | end | |
| 2138 | if maxstun <= StunValue.Value then | |
| 2139 | StunValue.Value = 0 | |
| 2140 | StunAnim.Value = true | |
| 2141 | end | |
| 2142 | if StaggerAnim.Value == true and staggeranim == false then | |
| 2143 | coroutine.resume(coroutine.create(function() | |
| 2144 | ||
| 2145 | staggeranim = true | |
| 2146 | while attack == true do | |
| 2147 | hbwait() | |
| 2148 | end | |
| 2149 | Stagger() | |
| 2150 | StaggerAnim.Value = false | |
| 2151 | staggeranim = false | |
| 2152 | end | |
| 2153 | )) | |
| 2154 | end | |
| 2155 | if StaggerHitAnim.Value == true and staggerhitanim == false then | |
| 2156 | coroutine.resume(coroutine.create(function() | |
| 2157 | ||
| 2158 | staggerhitanim = true | |
| 2159 | while attack == true do | |
| 2160 | hbwait() | |
| 2161 | end | |
| 2162 | StaggerHit() | |
| 2163 | StaggerHitAnim.Value = false | |
| 2164 | staggerhitanim = false | |
| 2165 | end | |
| 2166 | )) | |
| 2167 | end | |
| 2168 | if (StunAnim.Value == true and stunanim == false) or 100 <= StunValue.Value then | |
| 2169 | coroutine.resume(coroutine.create(function() | |
| 2170 | ||
| 2171 | StunValue.Value = 0 | |
| 2172 | stunanim = true | |
| 2173 | while attack == true do | |
| 2174 | hbwait() | |
| 2175 | end | |
| 2176 | Stun() | |
| 2177 | StunAnim.Value = false | |
| 2178 | stunanim = false | |
| 2179 | end | |
| 2180 | )) | |
| 2181 | end | |
| 2182 | sine = sine + change | |
| 2183 | local torvel = (RootPart.Velocity * vt(1, 0, 1)).magnitude | |
| 2184 | local velderp = RootPart.Velocity.y | |
| 2185 | local lv = Torso.CFrame:pointToObjectSpace(Torso.Velocity + Torso.Position) | |
| 2186 | hitfloor = rayCast(RootPart.Position, cf(RootPart.Position, RootPart.Position + vt(0, -1, 0)).lookVector, 4 * PlayerSize, Character) | |
| 2187 | if 0.5 <= donum then | |
| 2188 | handidle = true | |
| 2189 | else | |
| 2190 | if donum <= 0 then | |
| 2191 | handidle = false | |
| 2192 | end | |
| 2193 | end | |
| 2194 | if handidle == false then | |
| 2195 | donum = donum + 0.003 / animationspeed | |
| 2196 | else | |
| 2197 | donum = donum - 0.003 / animationspeed | |
| 2198 | end | |
| 2199 | if equipped == true or equipped == false then | |
| 2200 | if attack == false then | |
| 2201 | idle = idle + 1 | |
| 2202 | else | |
| 2203 | idle = 0 | |
| 2204 | end | |
| 2205 | if leftarm == true then | |
| 2206 | if Anim == "Walk" and equipped == true and attack == false then | |
| 2207 | if alternatewalk == false then | |
| 2208 | if walkinganim == true then | |
| 2209 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2210 | else | |
| 2211 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2212 | end | |
| 2213 | else | |
| 2214 | if walkinganim == true then | |
| 2215 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2216 | else | |
| 2217 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2218 | end | |
| 2219 | end | |
| 2220 | else | |
| 2221 | -- DECOMPILER ERROR at PC2457: Unhandled construct in 'MakeBoolean' P3 | |
| 2222 | ||
| 2223 | if (Anim ~= "Walk" and equipped == true) or leftarm == false then | |
| 2224 | LW.C1 = clerp(LW.C1, LWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2225 | end | |
| 2226 | end | |
| 2227 | end | |
| 2228 | if rightarm == true then | |
| 2229 | if Anim == "Walk" and equipped == true and attack == false then | |
| 2230 | if alternatewalk == false then | |
| 2231 | if walkinganim == true then | |
| 2232 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-60), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2233 | else | |
| 2234 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(30), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2235 | end | |
| 2236 | else | |
| 2237 | if walkinganim == true then | |
| 2238 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(-45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2239 | else | |
| 2240 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(45), rad(0), rad(0)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2241 | end | |
| 2242 | end | |
| 2243 | else | |
| 2244 | -- DECOMPILER ERROR at PC2648: Unhandled construct in 'MakeBoolean' P3 | |
| 2245 | ||
| 2246 | if (Anim ~= "Walk" and equipped == true) or rightarm == false then | |
| 2247 | RW.C1 = clerp(RW.C1, RWC0 * cf(0, 0.5, 0) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2248 | end | |
| 2249 | end | |
| 2250 | end | |
| 2251 | if allowwalking == true then | |
| 2252 | if Anim == "Walk" and equipped == true then | |
| 2253 | if alternatewalk == false then | |
| 2254 | if walkinganim == true then | |
| 2255 | RH.C1 = clerp(RH.C1, RHC1 * cf(0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2256 | LH.C1 = clerp(LH.C1, LHC1 * cf(0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2257 | else | |
| 2258 | RH.C1 = clerp(RH.C1, RHC1 * cf(-0.1, 0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2259 | LH.C1 = clerp(LH.C1, LHC1 * cf(-0.2, -0.2, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-60)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2260 | end | |
| 2261 | else | |
| 2262 | if walkinganim == true then | |
| 2263 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2264 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2265 | else | |
| 2266 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2267 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(-45)), 0.2 * (Humanoid.WalkSpeed / 16) / animationspeed) | |
| 2268 | end | |
| 2269 | end | |
| 2270 | else | |
| 2271 | if Anim ~= "Walk" and equipped == true then | |
| 2272 | RH.C1 = clerp(RH.C1, RHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2273 | LH.C1 = clerp(LH.C1, LHC1 * cf(0, 0, 0) * angles(rad(0), rad(0), rad(0)) * angles(rad(0), rad(0), rad(0)), 0.2 / animationspeed) | |
| 2274 | end | |
| 2275 | end | |
| 2276 | end | |
| 2277 | Anim = "Idle" | |
| 2278 | if attack == false then | |
| 2279 | if equipped == true then | |
| 2280 | if animtype == 1 then | |
| 2281 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2282 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2283 | RW.C0 = clerp(RW.C0, cf(1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(100), rad(0), rad(-80)) * angles(rad(-5 * math.sin((sine) / 4)), rad(90), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2284 | LW.C0 = clerp(LW.C0, cf(-1 * PlayerSize, 0.5 * PlayerSize, -0.5 * PlayerSize) * angles(rad(80), rad(0), rad(70)) * angles(rad(-5 * math.sin((sine) / 4)), rad(-90), rad(0)) * (LWC0), 1 / animationspeed) | |
| 2285 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2286 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2287 | end | |
| 2288 | if animtype == 2 then | |
| 2289 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(2.5 + 2.5 * math.cos((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
| 2290 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(2.5 * math.sin((sine) / 4)), rad(0), rad(0)), 1 / animationspeed) | |
| 2291 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(5), rad(10)) * angles(rad(60 * math.cos((sine) / 8)), rad(5), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2292 | LW.C0 = clerp(LW.C0, cf(-1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(0), rad(-5), rad(-10)) * angles(rad(-60 * math.cos((sine) / 8)), rad(-5), rad(0)) * (LWC0), 1 / animationspeed) | |
| 2293 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 5 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2294 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 5 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2295 | end | |
| 2296 | end | |
| 2297 | if animtype == 3 then | |
| 2298 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0 * PlayerSize, 0 * PlayerSize, -0.25 - 0.125 * math.cos((sine) / 4) * PlayerSize) * angles(rad(0), rad(5 * math.cos((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2299 | Neck.C0 = clerp(Neck.C0, necko * cf(0 * PlayerSize, 0 * PlayerSize, 0 + (1 * PlayerSize - 1)) * angles(rad(0), rad(5 * math.sin((sine) / 8)), rad(0)), 1 / animationspeed) | |
| 2300 | RW.C0 = clerp(RW.C0, cf(1.5 * PlayerSize, 0.5 * PlayerSize, 0 * PlayerSize) * angles(rad(10), rad(0), rad(-20)) * angles(rad(0), rad(10), rad(0)) * (RWC0), 1 / animationspeed) | |
| 2301 | LW.C0 = clerp(LW.C0, cf(-1.25 + 0.25 * math.sin((sine) / 8) * PlayerSize, 0.5 * PlayerSize, -0.25 - 0.25 * math.sin((sine) / 8) * PlayerSize) * angles(rad(80 - 30 * math.cos((sine) / 4)), rad(0), rad(60 * math.sin((sine) / 8))) * (LWC0), 1 / animationspeed) | |
| 2302 | RH.C0 = clerp(RH.C0, cf(1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 - 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(87.5), rad(0)) * angles(rad(-5 + 10 * math.cos((sine) / 8)), rad(0), rad(30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2303 | LH.C0 = clerp(LH.C0, cf(-1 * PlayerSize, -0.75 - 0.125 * math.cos((sine) / 4) * PlayerSize, -0.25 + 0.125 * math.sin((sine) / 8) * PlayerSize) * angles(rad(0), rad(-87.5), rad(0)) * angles(rad(-5 - 10 * math.cos((sine) / 8)), rad(0), rad(-30 - 50 * math.cos((sine) / 8))), 1 / animationspeed) | |
| 2304 | end | |
| 2305 | end | |
| 2306 | end | |
| 2307 | end | |
| 2308 | end | |
| 2309 | end | |
| 2310 | end |