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