SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | - | local Player = game.Players.LocalPlayer |
| 28 | + | CAS.UnbindAction = CAS.BindAction |
| 29 | - | local mouse = Player:GetMouse() |
| 29 | + | |
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | local function lerp(weld,beglerp,endlerp,speed) | |
| 88 | weld.C0 = beglerp:lerp(endlerp,speed) | |
| 89 | return weld.C0 | |
| 90 | end | |
| 91 | ||
| 92 | local speed = 0.2 | |
| 93 | local angle = 0 | |
| 94 | local anglespeed = 2 | |
| 95 | local armspeed = 0.2 | |
| 96 | local armangle = 0 | |
| 97 | local armanglespeed = 2 | |
| 98 | local legspeed = 0.2 | |
| 99 | local legangle = 0 | |
| 100 | local leganglespeed = 2 | |
| 101 | local on = true | |
| 102 | local damen = false | |
| 103 | local enabled = true | |
| 104 | local buff = false | |
| 105 | local zenabled = 0 | |
| 106 | local xenabled = 0 | |
| 107 | local cenabled = 0 | |
| 108 | local venabled = 0 | |
| 109 | local eenabled = 0 | |
| 110 | local Debounce = {}
| |
| 111 | local TakeDamage = false | |
| 112 | local idle = 0 | |
| 113 | local combo = 1 | |
| 114 | local Player = owner | |
| 115 | local Char = Player.Character | |
| 116 | local Character = Char | |
| 117 | local Human = Char.Humanoid | |
| 118 | local Sounds = {"rbxassetid://234365549","rbxassetid://200632211","rbxassetid://136007472","rbxassetid://136523485","rbxassetid://163619849","rbxassetid://240517975","rbxassetid://233856154","rbxassetid://401057781","rbxassetid://401057825","rbxassetid://401057895","rbxassetid://199149186","rbxasseid://199149269"}
| |
| 119 | local Head = Char.Head | |
| 120 | local LA = Char:findFirstChild("Left Arm")
| |
| 121 | local RA = Char:findFirstChild("Right Arm")
| |
| 122 | local LL = Char:findFirstChild("Left Leg")
| |
| 123 | local RL = Char:findFirstChild("Right Leg")
| |
| 124 | local T = Char:findFirstChild("Torso")
| |
| 125 | local LS = T:findFirstChild("Left Shoulder")
| |
| 126 | local RS = T:findFirstChild("Right Shoulder")
| |
| 127 | local LH = T:findFirstChild("Left Hip")
| |
| 128 | local RH = T:findFirstChild("Right Hip")
| |
| 129 | local Neck = T:findFirstChild("Neck")
| |
| 130 | local HM = Char:findFirstChild("HumanoidRootPart")
| |
| 131 | local RJ = Char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
| |
| 132 | local WLS = Instance.new("Motor", T)
| |
| 133 | WLS.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 134 | WLS.C1 = CFrame.new(0, 0.5, 0) | |
| 135 | WLS.Part0 = T | |
| 136 | WLS.Part1 = LA | |
| 137 | local WRS = Instance.new("Motor", T)
| |
| 138 | WRS.Part0 = T | |
| 139 | WRS.Part1 = RA | |
| 140 | WRS.C0 = CFrame.new(1.5, 0.5, 0) | |
| 141 | WRS.C1 = CFrame.new(0, 0.5, 0) | |
| 142 | local WLH = LH | |
| 143 | local WRH = RH | |
| 144 | local LSC0 = WLS.C0 | |
| 145 | local RSC0 = WRS.C0 | |
| 146 | local LHC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 147 | local LHC1 = CFrame.new(-0.5, 1 ,0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 148 | local RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 149 | local RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 150 | local WRJ = RJ | |
| 151 | local RJC0 = WRJ.C0 | |
| 152 | local RJC1 = WRJ.C1 | |
| 153 | local NC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 154 | local Run = game:GetService("RunService")
| |
| 155 | local noweightprop = PhysicalProperties.new(0,0.3,0.5,0,0) | |
| 156 | Anim = Char:FindFirstChild("Animate")
| |
| 157 | if Anim ~= nil then | |
| 158 | Anim.Parent = nil | |
| 159 | end | |
| 160 | Animate = Human:FindFirstChild("Animator")
| |
| 161 | if Animate ~= nil then | |
| 162 | Animate.Parent = nil | |
| 163 | end | |
| 164 | ||
| 165 | local gui = Instance.new("ScreenGui",Player.PlayerGui)
| |
| 166 | local skill1 = Instance.new("TextLabel",gui)
| |
| 167 | skill1.Size = UDim2.new(0,150,0,50) | |
| 168 | skill1.Position = UDim2.new(0.75,0,0.75,0) | |
| 169 | skill1.Text = "" | |
| 170 | skill1.TextWrapped = true | |
| 171 | skill1.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 172 | local skill1text = Instance.new("TextLabel",gui)
| |
| 173 | skill1text.Size = UDim2.new(0,150,0,50) | |
| 174 | skill1text.Position = UDim2.new(0.75,0,0.75,0) | |
| 175 | skill1text.TextColor3 = Color3.new(1,1,1) | |
| 176 | skill1text.BackgroundTransparency = 1 | |
| 177 | skill1text.Text = "[Z] \n Deafen" | |
| 178 | skill1text.TextWrapped = true | |
| 179 | skill1text.TextScaled = true | |
| 180 | skill1text.Font = "Antique" | |
| 181 | skill1text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 182 | skill1img = Instance.new("ImageLabel",skill1)
| |
| 183 | skill1img.Size = UDim2.new(0,0,1,0) | |
| 184 | skill1img.Image = "rbxassetid://48965808" | |
| 185 | skill1img.BackgroundColor3 = BrickColor.new("Bright red").Color
| |
| 186 | local skill2 = Instance.new("TextLabel",gui)
| |
| 187 | skill2.Size = UDim2.new(0,150,0,50) | |
| 188 | skill2.Position = UDim2.new(0.875,0,0.75,0) | |
| 189 | skill2.Text = "" | |
| 190 | skill2.TextWrapped = true | |
| 191 | skill2.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 192 | local skill2text = Instance.new("TextLabel",gui)
| |
| 193 | skill2text.Size = UDim2.new(0,150,0,50) | |
| 194 | skill2text.Position = UDim2.new(0.875,0,0.75,0) | |
| 195 | skill2text.TextColor3 = Color3.new(1,1,1) | |
| 196 | skill2text.BackgroundTransparency = 1 | |
| 197 | skill2text.Text = "[X] \n Sax Slam" | |
| 198 | skill2text.TextWrapped = true | |
| 199 | skill2text.TextScaled = true | |
| 200 | skill2text.Font = "Antique" | |
| 201 | skill2text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 202 | skill2img = Instance.new("ImageLabel",skill2)
| |
| 203 | skill2img.Size = UDim2.new(0,0,1,0) | |
| 204 | skill2img.Image = "rbxassetid://48965808" | |
| 205 | skill2img.BackgroundColor3 = BrickColor.new("Bright red").Color
| |
| 206 | local skill3 = Instance.new("TextLabel",gui)
| |
| 207 | skill3.Size = UDim2.new(0,150,0,50) | |
| 208 | skill3.Position = UDim2.new(0.75,0,0.85,0) | |
| 209 | skill3.Text = "" | |
| 210 | skill3.TextWrapped = true | |
| 211 | skill3.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 212 | local skill3text = Instance.new("TextLabel",gui)
| |
| 213 | skill3text.Size = UDim2.new(0,150,0,50) | |
| 214 | skill3text.Position = UDim2.new(0.75,0,0.85,0) | |
| 215 | skill3text.TextColor3 = Color3.new(1,1,1) | |
| 216 | skill3text.BackgroundTransparency = 1 | |
| 217 | skill3text.Text = "[C] \n Summon Memes" | |
| 218 | skill3text.TextWrapped = true | |
| 219 | skill3text.TextScaled = true | |
| 220 | skill3text.Font = "Antique" | |
| 221 | skill3text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 222 | skill3img = Instance.new("ImageLabel",skill3)
| |
| 223 | skill3img.Size = UDim2.new(0,0,1,0) | |
| 224 | skill3img.Image = "rbxassetid://48965808" | |
| 225 | skill3img.BackgroundColor3 = BrickColor.new("Bright red").Color
| |
| 226 | local skill4 = Instance.new("TextLabel",gui)
| |
| 227 | skill4.Size = UDim2.new(0,150,0,50) | |
| 228 | skill4.Position = UDim2.new(0.875,0,0.85,0) | |
| 229 | skill4.Text = "" | |
| 230 | skill4.TextWrapped = true | |
| 231 | skill4.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 232 | local skill4text = Instance.new("TextLabel",gui)
| |
| 233 | skill4text.Size = UDim2.new(0,150,0,50) | |
| 234 | skill4text.Position = UDim2.new(0.875,0,0.85,0) | |
| 235 | skill4text.TextColor3 = Color3.new(1,1,1) | |
| 236 | skill4text.BackgroundTransparency = 1 | |
| 237 | skill4text.Text = "[V] \n Multi Sax" | |
| 238 | - | local la = Instance.new("CharacterMesh",Char)
|
| 238 | + | |
| 239 | - | la.MeshId = "279174949" |
| 239 | + | |
| 240 | - | la.BodyPart = "LeftArm" |
| 240 | + | |
| 241 | - | local ll = Instance.new("CharacterMesh",Char)
|
| 241 | + | |
| 242 | - | ll.MeshId = "319336109" |
| 242 | + | |
| 243 | - | ll.BodyPart = "LeftLeg" |
| 243 | + | |
| 244 | - | local ra = Instance.new("CharacterMesh",Char)
|
| 244 | + | |
| 245 | - | ra.MeshId = "279174886" |
| 245 | + | |
| 246 | - | ra.BodyPart = "RightArm" |
| 246 | + | |
| 247 | - | local rl = Instance.new("CharacterMesh",Char)
|
| 247 | + | |
| 248 | - | rl.MeshId = "319336155" |
| 248 | + | |
| 249 | - | rl.BodyPart = "RightLeg" |
| 249 | + | |
| 250 | - | local t = Instance.new("CharacterMesh",Char)
|
| 250 | + | |
| 251 | - | t.MeshId = "376169183" |
| 251 | + | |
| 252 | - | t.BodyPart = "Torso" |
| 252 | + | |
| 253 | skill5text.Size = UDim2.new(0,150,0,50) | |
| 254 | skill5text.Position = UDim2.new(0.8125,0,0.65,0) | |
| 255 | skill5text.TextColor3 = Color3.new(1,1,1) | |
| 256 | skill5text.BackgroundTransparency = 1 | |
| 257 | skill5text.Text = "[E] \n Endure" | |
| 258 | skill5text.TextWrapped = true | |
| 259 | skill5text.TextScaled = true | |
| 260 | skill5text.Font = "Antique" | |
| 261 | skill5text.BackgroundColor3 = BrickColor.new("Medium stone grey").Color
| |
| 262 | skill5img = Instance.new("ImageLabel",skill5)
| |
| 263 | skill5img.Size = UDim2.new(0,0,1,0) | |
| 264 | skill5img.Image = "rbxassetid://48965808" | |
| 265 | skill5img.BackgroundColor3 = BrickColor.new("Bright red").Color
| |
| 266 | ||
| 267 | local Sax = Instance.new("Part",Char)
| |
| 268 | Sax.Name = "Saxophone" | |
| 269 | Sax.CanCollide = false | |
| 270 | Sax.Locked = true | |
| 271 | Sax.Size = Vector3.new(0.61,2.19,3.75) | |
| 272 | Sax.CustomPhysicalProperties = noweightprop | |
| 273 | local SaxMesh = Instance.new("SpecialMesh",Sax)
| |
| 274 | SaxMesh.MeshId = "rbxassetid://44410178" | |
| 275 | SaxMesh.TextureId = "rbxassetid://44410320" | |
| 276 | SaxMesh.Scale = Vector3.new(2,2,3) | |
| 277 | SaxWeld = Instance.new("Weld",T)
| |
| 278 | SaxWeld.Part0 = RA | |
| 279 | SaxWeld.Part1 = Sax | |
| 280 | ||
| 281 | HW = SaxWeld | |
| 282 | hc0 = SaxWeld.C0 *CFrame.new(-0.2,-1.15,0) | |
| 283 | HW.C0 = hc0 | |
| 284 | ||
| 285 | if Char:FindFirstChild("Shirt") ~= nil then
| |
| 286 | Char.Shirt:Destroy() | |
| 287 | Instance.new("Shirt",Char).ShirtTemplate = "rbxassetid://538879879"
| |
| 288 | else | |
| 289 | Instance.new("Shirt",Char).ShirtTemplate = "rbxassetid://538879879"
| |
| 290 | end | |
| 291 | ||
| 292 | if Char:FindFirstChild("Pants") ~= nil then
| |
| 293 | Char.Pants:Destroy() | |
| 294 | Instance.new("Pants",Char).PantsTemplate = "rbxassetid://538879936"
| |
| 295 | else | |
| 296 | Instance.new("Pants",Char).PantsTemplate = "rbxassetid://538879936"
| |
| 297 | end | |
| 298 | ||
| 299 | for _,v in pairs(Char:GetChildren()) do | |
| 300 | if v.ClassName == "CharacterMesh" then | |
| 301 | v:Destroy() | |
| 302 | end | |
| 303 | if v.ClassName == "Accessory" then | |
| 304 | v:Destroy() | |
| 305 | end | |
| 306 | end | |
| 307 | ||
| 308 | local hair = Instance.new("Part",Char)
| |
| 309 | hair.Name = "Hair" | |
| 310 | hair.CanCollide = false | |
| 311 | hair.Size = Vector3.new(1.2, 1, 1.6) | |
| 312 | hair.BrickColor = BrickColor.new("Really black")
| |
| 313 | local hairmesh = Instance.new("SpecialMesh",hair)
| |
| 314 | hairmesh.MeshId = "rbxassetid://74878559" | |
| 315 | hairmesh.TextureId = "rbxassetid://75976712" | |
| 316 | hairmesh.Scale = Vector3.new(1.05,1,1.05) | |
| 317 | hairmesh.VertexColor = Vector3.new(0.1,0.1,0.1) | |
| 318 | local hairweld = Instance.new("Weld",hair)
| |
| 319 | hairweld.Part0 = Head | |
| 320 | hairweld.Part1 = hair | |
| 321 | hairweld.C0 = CFrame.new(0,0.5,0) | |
| 322 | ||
| 323 | local Meshes={
| |
| 324 | Blast="20329976", | |
| 325 | Crown="1323306", | |
| 326 | Ring="3270017", | |
| 327 | Claw="10681506", | |
| 328 | Crystal="9756362", | |
| 329 | Coil="9753878", | |
| 330 | Cloud="1095708", | |
| 331 | Skull="4770583", | |
| 332 | SpinyShell="1080954", | |
| 333 | } | |
| 334 | ||
| 335 | local function nooutlines(part) | |
| 336 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
| 337 | end | |
| 338 | ||
| 339 | local function getmesh(mesh) | |
| 340 | return "rbxassetid://"..mesh | |
| 341 | end | |
| 342 | ||
| 343 | ||
| 344 | ||
| 345 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 346 | ArtificialHB.Name = "Heartbeat" | |
| 347 | ||
| 348 | script:WaitForChild("Heartbeat")
| |
| 349 | ||
| 350 | frame = 1 / 60 | |
| 351 | tf = 0 | |
| 352 | allowframeloss = false | |
| 353 | tossremainder = false | |
| 354 | lastframe = tick() | |
| 355 | script.Heartbeat:Fire() | |
| 356 | ||
| 357 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 358 | tf = tf + s | |
| 359 | if tf >= frame then | |
| 360 | if allowframeloss then | |
| 361 | script.Heartbeat:Fire() | |
| 362 | lastframe = tick() | |
| 363 | else | |
| 364 | for i = 1, math.floor(tf / frame) do | |
| 365 | script.Heartbeat:Fire() | |
| 366 | end | |
| 367 | - | local song = PlaySound(Head,0.5,1,"rbxassetid://569707122",true) |
| 367 | + | |
| 368 | end | |
| 369 | if tossremainder then | |
| 370 | tf = 0 | |
| 371 | else | |
| 372 | tf = tf - frame * math.floor(tf / frame) | |
| 373 | end | |
| 374 | end | |
| 375 | end) | |
| 376 | ||
| 377 | local function Rwait(num) | |
| 378 | if num == 0 or num == nil then | |
| 379 | ArtificialHB.Event:wait() | |
| 380 | else | |
| 381 | for i = 0, num do | |
| 382 | ArtificialHB.Event:wait() | |
| 383 | end | |
| 384 | end | |
| 385 | end | |
| 386 | ||
| 387 | local function effect(part,brickcolor,size,cframe,trans,transincrement,scaleby,loopwait,meshid,meshtype) | |
| 388 | local p = Instance.new("Part", part or workspace)
| |
| 389 | p.Anchored = true | |
| 390 | p.CanCollide = false | |
| 391 | p.FormFactor = Enum.FormFactor.Custom | |
| 392 | p.Material = "SmoothPlastic" | |
| 393 | p.CFrame = cframe | |
| 394 | p.BrickColor = brickcolor | |
| 395 | p.Size = Vector3.new(1,1,1) | |
| 396 | p.Transparency = trans | |
| 397 | nooutlines(p) | |
| 398 | local m = Instance.new("SpecialMesh",p)
| |
| 399 | if meshtype ~= nil and meshid == nil then | |
| 400 | m.MeshType = meshtype | |
| 401 | end | |
| 402 | if meshtype == nil and meshid ~= nil then | |
| 403 | m.MeshId = getmesh(meshid) | |
| 404 | end | |
| 405 | m.Scale = size | |
| 406 | coroutine.wrap(function() | |
| 407 | for i = 0,loopwait,0.1 do | |
| 408 | p.CFrame = p.CFrame | |
| 409 | p.Transparency = p.Transparency +transincrement | |
| 410 | m.Scale = m.Scale + scaleby | |
| 411 | Rwait() | |
| 412 | end | |
| 413 | p:Destroy() | |
| 414 | end)() | |
| 415 | return p | |
| 416 | end | |
| 417 | ||
| 418 | local PlaySound = function(part,volume,pitch,id,looped) | |
| 419 | local Sound = Instance.new("Sound", part)
| |
| 420 | Sound.SoundId = id | |
| 421 | Sound.Pitch = pitch | |
| 422 | Sound.Volume = volume | |
| 423 | coroutine.wrap(function() | |
| 424 | wait() | |
| 425 | Sound:Play() | |
| 426 | if looped == nil then | |
| 427 | game.Debris:AddItem(Sound,10) | |
| 428 | end | |
| 429 | end)() | |
| 430 | if looped == true then | |
| 431 | Sound.Looped = true | |
| 432 | end | |
| 433 | return Sound | |
| 434 | end | |
| 435 | ||
| 436 | local song = PlaySound(Head,0.5,1,"rbxassetid://581404453",true) | |
| 437 | ||
| 438 | local ShowDmg = function(totake) | |
| 439 | local modl = Instance.new("Model", workspace)
| |
| 440 | modl.Name = tostring(totake) | |
| 441 | local prt = Instance.new("Part", modl)
| |
| 442 | prt.CanCollide = false | |
| 443 | prt.BrickColor = BrickColor.Red() | |
| 444 | prt.Name = "Head" | |
| 445 | prt.CFrame = HM.CFrame *CFrame.new(0, 1.5, 0) | |
| 446 | prt.TopSurface = 0 | |
| 447 | prt.BottomSurface = 0 | |
| 448 | prt.FormFactor = 3 | |
| 449 | prt.Size = Vector3.new(1, 0.2, 1) | |
| 450 | local bm = Instance.new("BlockMesh", prt)
| |
| 451 | local hum = Instance.new("Humanoid", modl)
| |
| 452 | hum.Health = 0 | |
| 453 | hum.MaxHealth = 0 | |
| 454 | hum.WalkSpeed = 0 | |
| 455 | bodypos = Instance.new("BodyPosition", prt)
| |
| 456 | bodypos.position = Head.Position +Vector3.new(0, 1, 0) | |
| 457 | bodypos.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
| 458 | game.Debris:AddItem(modl, 1) | |
| 459 | coroutine.resume(coroutine.create(function() | |
| 460 | for i = 1, 3 do | |
| 461 | bodypos.position = bodypos.position +Vector3.new(0, 0.5, 0) | |
| 462 | Rwait() | |
| 463 | end | |
| 464 | end)) | |
| 465 | end | |
| 466 | ||
| 467 | local function ChargeAt(Strength) | |
| 468 | local BV = Instance.new("BodyVelocity",HM)
| |
| 469 | BV.maxForce = Vector3.new(1e5,0,1e5) | |
| 470 | BV.velocity = HM.CFrame.lookVector *Strength | |
| 471 | game.Debris:AddItem(BV,0.1) | |
| 472 | end | |
| 473 | ||
| 474 | local function Damage(hit,mm,knockback,knockbackvelocity) | |
| 475 | if hit ~= nil and damen == true and hit.Parent ~= Char then | |
| 476 | local hum = GetHumanoid(hit.Parent) | |
| 477 | if hum ~= nil then | |
| 478 | if TakeDamage == true then | |
| 479 | if buff == true then | |
| 480 | hum:TakeDamage(mm*2) | |
| 481 | spawn(function() | |
| 482 | ShowDmg(mm*2) | |
| 483 | end) | |
| 484 | elseif buff == false then | |
| 485 | hum:TakeDamage(mm) | |
| 486 | spawn(function() | |
| 487 | ShowDmg(mm) | |
| 488 | end) | |
| 489 | end | |
| 490 | elseif TakeDamage == false then | |
| 491 | if buff == true then | |
| 492 | hum.Health = hum.Health - mm*2 | |
| 493 | spawn(function() | |
| 494 | ShowDmg(mm*2) | |
| 495 | end) | |
| 496 | elseif buff == false then | |
| 497 | hum.Health = hum.Health - mm | |
| 498 | spawn(function() | |
| 499 | ShowDmg(mm) | |
| 500 | end) | |
| 501 | end | |
| 502 | end | |
| 503 | PlaySound(hum.Torso,1,1,Sounds[math.random(8,12)]) | |
| 504 | if knockback ~= nil and knockback ~= 0 then | |
| 505 | if knockbackvelocity == nil then | |
| 506 | local v = Instance.new("BodyVelocity",hum.Torso)
| |
| 507 | v.maxForce = Vector3.new(1e5,1e5,1e5) | |
| 508 | v.P = 1e20 | |
| 509 | v.velocity = HM.CFrame.lookVector *knockback | |
| 510 | game.Debris:AddItem(v,0.3) | |
| 511 | else | |
| 512 | local v = Instance.new("BodyVelocity",hum.Torso)
| |
| 513 | v.maxForce = Vector3.new(1e5,1e5,1e5) | |
| 514 | v.P = 1e20 | |
| 515 | v.velocity = KnockbackVelocity *knockback | |
| 516 | game.Debris:AddItem(v,0.3) | |
| 517 | end | |
| 518 | end | |
| 519 | end | |
| 520 | damen = false | |
| 521 | end | |
| 522 | end | |
| 523 | ||
| 524 | --darkus stuff | |
| 525 | ||
| 526 | function GetHumanoid(Character) | |
| 527 | ||
| 528 | assert(Character, 'bad argument #1 to Character (Model expected, got nil)') | |
| 529 | ||
| 530 | local hum | |
| 531 | ||
| 532 | if Character == Char then return end | |
| 533 | ||
| 534 | if Character.ClassName == "Hat" or Character.ClassName == "Accessory" then | |
| 535 | for q,e in next, Character.Parent:children() do | |
| 536 | if e:isA'Humanoid' then | |
| 537 | hum = e | |
| 538 | end | |
| 539 | if e:isA'ForceField' then | |
| 540 | return | |
| 541 | end | |
| 542 | end | |
| 543 | else | |
| 544 | for q,e in next, Character:children() do | |
| 545 | if e:isA'Humanoid' then | |
| 546 | hum = e | |
| 547 | end | |
| 548 | if e:isA'ForceField' then | |
| 549 | return | |
| 550 | end | |
| 551 | end | |
| 552 | end | |
| 553 | return hum | |
| 554 | end | |
| 555 | ||
| 556 | function GetNear(Object, Distance) | |
| 557 | ||
| 558 | assert(Object, 'bad argument #1 to Object (Model expected, got nil)') | |
| 559 | ||
| 560 | local Distance = (Distance and Distance or 25) | |
| 561 | local rtn = {}
| |
| 562 | ||
| 563 | for q,e in next, workspace:children() do | |
| 564 | local Hum = e:FindFirstChild'Humanoid' | |
| 565 | if Hum ~= nil then | |
| 566 | Tor = Hum.Torso | |
| 567 | end | |
| 568 | if Tor ~= nil then | |
| 569 | local dist = (Object.Position-Tor.Position).magnitude | |
| 570 | if dist <= Distance then | |
| 571 | rtn[#rtn+1] = e | |
| 572 | end | |
| 573 | end | |
| 574 | end | |
| 575 | return rtn | |
| 576 | end | |
| 577 | ||
| 578 | function DamageNear(Distance, Part, Damage, Knockback, DebounceTime, KnockbackVelocity, Destroy) | |
| 579 | if damen == false then return end | |
| 580 | assert(Part, 'bad argument #2 to Part (Part expected, got nil)') | |
| 581 | assert(Part:isA'BasePart', ('bad argument #2 to Part (Part expected, got %s)'):format(Part.ClassName))
| |
| 582 | ||
| 583 | local Distance = (Distance and Distance or 25) | |
| 584 | local Noobs = GetNear(Part, Distance) | |
| 585 | ||
| 586 | for nild, Character in next, Noobs do | |
| 587 | ||
| 588 | local Human = GetHumanoid(Character) | |
| 589 | if Human and not Debounce[Character] then | |
| 590 | -- no clue why they were using spawn but ok... | |
| 591 | ||
| 592 | Debounce[Character] = true | |
| 593 | ||
| 594 | if TakeDamage then | |
| 595 | if buff == true then | |
| 596 | Human:TakeDamage(Damage*2) | |
| 597 | spawn(function() | |
| 598 | ShowDmg(Damage*2) | |
| 599 | end) | |
| 600 | elseif buff == false then | |
| 601 | Human:TakeDamage(Damage) | |
| 602 | spawn(function() | |
| 603 | ShowDmg(Damage) | |
| 604 | end) | |
| 605 | end | |
| 606 | spawn(function() | |
| 607 | ShowDmg(Damage) | |
| 608 | end) | |
| 609 | else | |
| 610 | if buff == true then | |
| 611 | Human.Health = Human.Health - Damage*2 | |
| 612 | spawn(function() | |
| 613 | ShowDmg(Damage*2) | |
| 614 | end) | |
| 615 | elseif buff == false then | |
| 616 | Human.Health = Human.Health - Damage | |
| 617 | spawn(function() | |
| 618 | ShowDmg(Damage) | |
| 619 | end) | |
| 620 | end | |
| 621 | end | |
| 622 | PlaySound(Human.Torso,1,1,Sounds[math.random(8,12)]) | |
| 623 | if Knockback then | |
| 624 | if KnockbackVelocity == nil then | |
| 625 | local v = Instance.new("BodyVelocity", Human.Torso)
| |
| 626 | v.maxForce = Vector3.new(1e5,1e5,1e5) | |
| 627 | v.P = 1e20 | |
| 628 | v.velocity = HM.CFrame.lookVector * Knockback | |
| 629 | spawn(function() | |
| 630 | game:service'Debris':AddItem(v,0.3) | |
| 631 | end) | |
| 632 | else | |
| 633 | local v = Instance.new("BodyVelocity", Human.Torso)
| |
| 634 | v.maxForce = Vector3.new(1e5,1e5,1e5) | |
| 635 | v.P = 1e20 | |
| 636 | v.velocity = KnockbackVelocity * Knockback | |
| 637 | spawn(function() | |
| 638 | game:service'Debris':AddItem(v,0.3) | |
| 639 | end) | |
| 640 | end | |
| 641 | end | |
| 642 | if Destroy == true then | |
| 643 | Part:Destroy() | |
| 644 | end | |
| 645 | ||
| 646 | coroutine.wrap(function()--spawn(function() | |
| 647 | wait(DebounceTime) | |
| 648 | Debounce[Character] = nil | |
| 649 | end)()--end) | |
| 650 | ||
| 651 | end | |
| 652 | end | |
| 653 | ||
| 654 | return | |
| 655 | end | |
| 656 | -- | |
| 657 | ||
| 658 | local function Slash1() | |
| 659 | for i = 1,13 do | |
| 660 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.5,0,-0.3) *CFrame.Angles(0,math.pi/9,math.pi/2),armspeed) | |
| 661 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-1.5,0,-0.4) *CFrame.Angles(0,-math.pi/1.4,-math.pi/2),armspeed) | |
| 662 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3),speed) | |
| 663 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3),speed) | |
| 664 | lerp(HW,HW.C0,hc0 *CFrame.new(0,1,-2) *CFrame.Angles(math.pi/5,0,0),speed) | |
| 665 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then | |
| 666 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 667 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 668 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 669 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 670 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 671 | end | |
| 672 | Rwait() | |
| 673 | end | |
| 674 | damen = true | |
| 675 | PlaySound(Sax,1,0.6,Sounds[1]) | |
| 676 | for i = 1,15 do | |
| 677 | DamageNear(3.25,Sax,math.random(5,10),5,0.5) | |
| 678 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.5,0,0.45) *CFrame.Angles(0,-math.pi/2*-i/5,math.pi/2),armspeed) | |
| 679 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-2.5,0,0) *CFrame.Angles(0,math.pi/6*i/4,-math.pi/2),armspeed) | |
| 680 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/3),speed) | |
| 681 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/3),speed) | |
| 682 | lerp(HW,HW.C0,hc0 *CFrame.new(0,0.25,-1) *CFrame.Angles(math.pi/10,0,0),speed) | |
| 683 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then | |
| 684 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 685 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 686 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 687 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 688 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.15,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 689 | end | |
| 690 | Rwait() | |
| 691 | end | |
| 692 | damen = false | |
| 693 | end | |
| 694 | ||
| 695 | local function Slash2() | |
| 696 | for i = 1,14 do | |
| 697 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2.3,0.2,0.2) *CFrame.Angles(math.pi/1.1,0,math.pi/5),armspeed) | |
| 698 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0.2,0,0) *CFrame.Angles(math.pi/1.1,0,math.pi/10),armspeed) | |
| 699 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3),speed) | |
| 700 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3),speed) | |
| 701 | lerp(HW,HW.C0,hc0 *CFrame.new(0,1,-2) *CFrame.Angles(math.pi/5,0,0),speed) | |
| 702 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then | |
| 703 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 704 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 705 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 706 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 707 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 708 | end | |
| 709 | Rwait() | |
| 710 | end | |
| 711 | damen = true | |
| 712 | PlaySound(Sax,1,0.7,Sounds[1]) | |
| 713 | for i = 1,15 do | |
| 714 | DamageNear(3.25,Sax,math.random(5,10),5,0.5) | |
| 715 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1,0.2,-0.5) *CFrame.Angles(math.pi/9,0,math.pi/10),armspeed) | |
| 716 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.7) *CFrame.Angles(math.pi/6,0,-math.pi/7),armspeed) | |
| 717 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi/7),speed) | |
| 718 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,-math.pi/7),speed) | |
| 719 | lerp(HW,HW.C0,hc0 *CFrame.Angles(-math.pi/5,0,0) *CFrame.new(0,-0.2,-2),speed) | |
| 720 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then | |
| 721 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 722 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 723 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 724 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 725 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 726 | end | |
| 727 | Rwait() | |
| 728 | end | |
| 729 | damen = false | |
| 730 | end | |
| 731 | ||
| 732 | local function Spin3() | |
| 733 | for i = 1,13 do | |
| 734 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.5,0,-0.3) *CFrame.Angles(0,math.pi/6,math.pi/2),armspeed) | |
| 735 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-1.5,0,-0.5) *CFrame.Angles(0,-math.pi/1.4,-math.pi/2),armspeed) | |
| 736 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/3),speed) | |
| 737 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/3),speed) | |
| 738 | lerp(HW,HW.C0,hc0 *CFrame.new(0,1,-2) *CFrame.Angles(math.pi/5,0,0),speed) | |
| 739 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then | |
| 740 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 741 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 742 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 743 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 744 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 745 | end | |
| 746 | Rwait() | |
| 747 | end | |
| 748 | damen = true | |
| 749 | for i = 1,3 do | |
| 750 | PlaySound(Sax,1,0.5,Sounds[1]) | |
| 751 | for i = 0,1,0.1 do | |
| 752 | DamageNear(3.25,Sax,math.random(5,10),5,0.25) | |
| 753 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.9,-0.05,-0.4) *CFrame.Angles(0,math.pi/4,math.pi/2),armspeed) | |
| 754 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.2,0,0) *CFrame.Angles(0,-math.pi/1.4,-math.pi/2),armspeed) | |
| 755 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/4),legspeed) | |
| 756 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(0,0,math.pi/4),legspeed) | |
| 757 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,math.pi*i*2) *CFrame.Angles(math.pi/9,0,0),speed) | |
| 758 | lerp(Neck,Neck.C0,NC0,speed) | |
| 759 | lerp(HW,HW.C0,hc0 *CFrame.new(0,-1.2,-1) *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 760 | Rwait() | |
| 761 | end | |
| 762 | end | |
| 763 | damen = false | |
| 764 | end | |
| 765 | ||
| 766 | ||
| 767 | local function Deafen() | |
| 768 | Human.WalkSpeed = 0 | |
| 769 | for i = 1,14 do | |
| 770 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.3,0,-0.65) *CFrame.Angles(math.pi/3,0,math.pi/4),armspeed) | |
| 771 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.2,0,-0.65) *CFrame.Angles(math.pi/3,0,-math.pi/4),armspeed) | |
| 772 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/15,0,0),legspeed) | |
| 773 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/15,0,0),legspeed) | |
| 774 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 775 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/5,0,0),speed) | |
| 776 | lerp(HW,HW.C0,hc0 *CFrame.Angles(math.pi,0,-math.pi/4) *CFrame.new(0,-0.2,-1.5),speed) | |
| 777 | Rwait() | |
| 778 | end | |
| 779 | damen = true | |
| 780 | local s = PlaySound(Sax,5,math.random(60,180)/100,"rbxassetid://146983123") | |
| 781 | s.TimePosition = 2 | |
| 782 | for i = 1,30 do | |
| 783 | if i == 10 then | |
| 784 | ringeff = effect(Sax,BrickColor.new("Institutional white"),Vector3.new(10,10,10),HM.CFrame *CFrame.new(0,0,-3),0,0.01,Vector3.new(),15,Meshes.Ring,nil)
| |
| 785 | ringeff.Size = ringeff.Mesh.Scale | |
| 786 | ringeff.Anchored = false | |
| 787 | local BV = Instance.new("BodyVelocity",ringeff)
| |
| 788 | BV.maxForce = Vector3.new(1/0,1/0,1/0) | |
| 789 | BV.velocity = HM.CFrame.lookVector *80 | |
| 790 | game.Debris:AddItem(s,1) | |
| 791 | spawn(function() | |
| 792 | while ringeff.Parent ~= nil do | |
| 793 | DamageNear(11,ringeff,math.random(10,15),15,0.25) | |
| 794 | Rwait() | |
| 795 | end | |
| 796 | end) | |
| 797 | end | |
| 798 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.3,0.1,-0.65) *CFrame.Angles(math.pi/2,0,math.pi/4),armspeed) | |
| 799 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.2,0.1,-0.65) *CFrame.Angles(math.pi/2,0,-math.pi/4),armspeed) | |
| 800 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/15,0,0),legspeed) | |
| 801 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/15,0,0),legspeed) | |
| 802 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 803 | lerp(Neck,Neck.C0,NC0,speed) | |
| 804 | lerp(HW,HW.C0,hc0 *CFrame.Angles(math.pi,0,-math.pi/4) *CFrame.new(0,-0.2,-1.8),speed) | |
| 805 | Rwait() | |
| 806 | end | |
| 807 | Human.WalkSpeed = 16 | |
| 808 | damen = false | |
| 809 | end | |
| 810 | ||
| 811 | local function SaxSlam() | |
| 812 | Human.WalkSpeed = 0 | |
| 813 | for i = 1,14 do | |
| 814 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(2.3,0.5,0.2) *CFrame.Angles(math.pi/1.1,0,math.pi/5),armspeed) | |
| 815 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0.2,0.25,0) *CFrame.Angles(math.pi/1.1,0,math.pi/10),armspeed) | |
| 816 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 817 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 818 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 819 | lerp(Neck,Neck.C0,NC0,speed) | |
| 820 | lerp(HW,HW.C0,hc0 *CFrame.Angles(0,math.pi/10,0) *CFrame.new(0,-0.3,-2),speed) | |
| 821 | Rwait() | |
| 822 | end | |
| 823 | damen = true | |
| 824 | PlaySound(Sax,1,0.7,Sounds[1]) | |
| 825 | local hashit = false | |
| 826 | local Ignore = {}
| |
| 827 | for i = 1,30 do | |
| 828 | if i >= 10 then | |
| 829 | for I_shall,ignore_this in pairs(workspace:GetChildren()) do | |
| 830 | if ignore_this:IsA("Model") then
| |
| 831 | if ignore_this:FindFirstChild("Humanoid") then
| |
| 832 | for _,ignorepart in pairs(ignore_this:GetChildren()) do | |
| 833 | if ignorepart.ClassName == "Part" then | |
| 834 | table.insert(Ignore,ignorepart) | |
| 835 | end | |
| 836 | end | |
| 837 | end | |
| 838 | end | |
| 839 | end | |
| 840 | local RayC = Ray.new(Sax.Position +Vector3.new(0,2,0),Vector3.new(0,-5.1,0)) | |
| 841 | local Hit,pos = workspace:FindPartOnRayWithIgnoreList(RayC,Ignore) | |
| 842 | if Hit ~= nil and hashit == false then | |
| 843 | hashit = true | |
| 844 | PlaySound(Sax,1,0.875,Sounds[4]) | |
| 845 | local explosioneff = effect(Sax,Hit.BrickColor,Vector3.new(0.5,0.5,0.5),CFrame.new(pos),0,0.05,Vector3.new(0.3,0.5,0.3),2,Meshes.Blast,nil) | |
| 846 | DamageNear(8,explosioneff,math.random(15,20),10,0.25,Vector3.new(0,2.5,0)) | |
| 847 | end | |
| 848 | end | |
| 849 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1,0,-0.5) *CFrame.Angles(math.pi/9,0,math.pi/10),armspeed) | |
| 850 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.5,0,-0.7) *CFrame.Angles(math.pi/9,0,-math.pi/7),armspeed) | |
| 851 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/2),legspeed) | |
| 852 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.8,2,0),legspeed) | |
| 853 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-2),speed) | |
| 854 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/7,0,0),speed) | |
| 855 | lerp(HW,HW.C0,hc0 *CFrame.Angles(-math.pi/9,0,math.pi/7) *CFrame.new(0,0,-2),speed) | |
| 856 | Rwait() | |
| 857 | end | |
| 858 | Human.WalkSpeed = 16 | |
| 859 | damen = false | |
| 860 | end | |
| 861 | ||
| 862 | local function Endure() | |
| 863 | spawn(function() | |
| 864 | buff = true | |
| 865 | effect(HM,BrickColor.White(),Vector3.new(0.5,0.5,0.5),HM.CFrame,0,0.05,Vector3.new(0.3,0.5,0.3),2,Meshes.Blast,nil) | |
| 866 | local glasses = Instance.new("Part",Head)
| |
| 867 | glasses.CanCollide = false | |
| 868 | glasses.TopSurface = 10 | |
| 869 | glasses.BottomSurface = 10 | |
| 870 | glasses.Size = Vector3.new(1.4, 0.6, 1.4) | |
| 871 | local glassesmesh = Instance.new("SpecialMesh",glasses)
| |
| 872 | glassesmesh.MeshId = "rbxassetid://121910245" | |
| 873 | glassesmesh.TextureId = "rbxassetid://182196075" | |
| 874 | glassesmesh.Scale = Vector3.new(0.7,0.7,0.7) | |
| 875 | local glassesweld = Instance.new("Weld",glasses)
| |
| 876 | glassesweld.Part0 = Head | |
| 877 | glassesweld.Part1 = glasses | |
| 878 | glassesweld.C0 = CFrame.new(0,0.1,-0.05) | |
| 879 | PlaySound(glasses,1,0.7,"rbxassetid://181004943") | |
| 880 | PlaySound(glasses,0.3,1,"rbxassetid://195737599") | |
| 881 | PlaySound(glasses,0.7,1,"rbxassetid://362846090") | |
| 882 | for i = 0,1,0.1 do | |
| 883 | song.Pitch = song.Pitch -0.1 | |
| 884 | Rwait() | |
| 885 | end | |
| 886 | local song2 = PlaySound(Head,0.8,0,"rbxassetid://183826663",true) | |
| 887 | song2.TimePosition = 10 | |
| 888 | spawn(function() | |
| 889 | for i = 0,1,0.1 do | |
| 890 | song2.Pitch = i | |
| 891 | Rwait() | |
| 892 | end | |
| 893 | end) | |
| 894 | for i = 0,240,1 do | |
| 895 | local saxeff = effect(Sax,BrickColor.new("Medium stone grey"),Sax.Size,Sax.CFrame,0,0.15,Vector3.new(-0.05,-0.05,-0.05),0.5,"44410178",nil)
| |
| 896 | saxeff.Mesh.Scale = SaxMesh.Scale | |
| 897 | saxeff.Mesh.TextureId = SaxMesh.TextureId | |
| 898 | local glasseseff = effect(Sax,BrickColor.new("Medium stone grey"),glasses.Size,glasses.CFrame,0,0.15,Vector3.new(0.05,0.05,0.05),0.5,"121910245",nil)
| |
| 899 | glasseseff.Mesh.Scale = glassesmesh.Scale | |
| 900 | glasseseff.Mesh.TextureId = glassesmesh.TextureId | |
| 901 | Rwait(2.5) | |
| 902 | end | |
| 903 | spawn(function() | |
| 904 | for i = 0,1,0.1 do | |
| 905 | song2.Pitch = song2.Pitch -0.1 | |
| 906 | Rwait() | |
| 907 | end | |
| 908 | end) | |
| 909 | song2:Destroy() | |
| 910 | glasses:Destroy() | |
| 911 | spawn(function() | |
| 912 | for i = 0,1,0.1 do | |
| 913 | song.Pitch = i | |
| 914 | Rwait() | |
| 915 | end | |
| 916 | end) | |
| 917 | PlaySound(Head,1,0.7,"rbxassetid://231107923") | |
| 918 | buff = false | |
| 919 | effect(HM,BrickColor.White(),Vector3.new(3,5,3),HM.CFrame,0,0.05,Vector3.new(-0.1,-0.1,-0.1),2,Meshes.Blast,nil) | |
| 920 | end) | |
| 921 | end | |
| 922 | ||
| 923 | local function SummonMemes() | |
| 924 | PlaySound(Sax,1,10,"rbxassetid://128912290") | |
| 925 | for i = 1,14 do | |
| 926 | lerp(WLS,WLS.C0,LSC0 *CFrame.Angles(math.pi/2,0,-math.pi/4),armspeed) | |
| 927 | lerp(WRS,WRS.C0,RSC0 *CFrame.Angles(0,0,math.pi/9),armspeed) | |
| 928 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.Angles(0,0,-math.pi/4),speed) | |
| 929 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/4),speed) | |
| 930 | lerp(HW,HW.C0,hc0 *CFrame.new(0,0.1,0),speed) | |
| 931 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude < 2 then | |
| 932 | lerp(WLH,WLH.C0,LHC0,legspeed) | |
| 933 | lerp(WRH,WRH.C0,RHC0,legspeed) | |
| 934 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 935 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(-0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1+math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 936 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.1+math.sin(legangle*Human.WalkSpeed/16)*0.2,0.1-math.sin(legangle*Human.WalkSpeed/16)*0.3,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle*Human.WalkSpeed/16)*0.75)),legspeed) | |
| 937 | end | |
| 938 | Rwait() | |
| 939 | end | |
| 940 | damen = true | |
| 941 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 942 | meme.Anchored = false | |
| 943 | local memep = Instance.new("ParticleEmitter",meme)
| |
| 944 | memep.Rate = 5 | |
| 945 | memep.Texture = "rbxassetid://48308661" | |
| 946 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 947 | spawn(function() | |
| 948 | while meme.Parent ~= nil do | |
| 949 | DamageNear(3,meme,math.random(6,10),0,0.5,nil,true) | |
| 950 | for i,v in pairs(workspace:GetChildren()) do | |
| 951 | if v.ClassName == "Model" and v ~= Char then | |
| 952 | local hum = GetHumanoid(v) | |
| 953 | if hum ~= nil and hum.Torso ~= nil then | |
| 954 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 955 | if Mag <= 30 then | |
| 956 | RP.Target = hum.Torso | |
| 957 | RP:Fire() | |
| 958 | end | |
| 959 | end | |
| 960 | end | |
| 961 | end | |
| 962 | Rwait() | |
| 963 | end | |
| 964 | end) | |
| 965 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45*2),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 966 | meme.Anchored = false | |
| 967 | local memep = Instance.new("ParticleEmitter",meme)
| |
| 968 | memep.Rate = 5 | |
| 969 | memep.Texture = "rbxassetid://487518317" | |
| 970 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 971 | spawn(function() | |
| 972 | while meme.Parent ~= nil do | |
| 973 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 974 | for i,v in pairs(workspace:GetChildren()) do | |
| 975 | if v.ClassName == "Model" and v ~= Char then | |
| 976 | local hum = GetHumanoid(v) | |
| 977 | if hum ~= nil and hum.Torso ~= nil then | |
| 978 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 979 | if Mag <= 30 then | |
| 980 | RP.Target = hum.Torso | |
| 981 | RP:Fire() | |
| 982 | end | |
| 983 | end | |
| 984 | end | |
| 985 | end | |
| 986 | Rwait() | |
| 987 | end | |
| 988 | end) | |
| 989 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45*3),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 990 | meme.Anchored = false | |
| 991 | local memep = Instance.new("ParticleEmitter",meme)
| |
| 992 | memep.Rate = 5 | |
| 993 | memep.Texture = "rbxassetid://286279066" | |
| 994 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 995 | spawn(function() | |
| 996 | while meme.Parent ~= nil do | |
| 997 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 998 | for i,v in pairs(workspace:GetChildren()) do | |
| 999 | if v.ClassName == "Model" and v ~= Char then | |
| 1000 | local hum = GetHumanoid(v) | |
| 1001 | if hum ~= nil and hum.Torso ~= nil then | |
| 1002 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 1003 | if Mag <= 30 then | |
| 1004 | RP.Target = hum.Torso | |
| 1005 | RP:Fire() | |
| 1006 | end | |
| 1007 | end | |
| 1008 | end | |
| 1009 | end | |
| 1010 | Rwait() | |
| 1011 | end | |
| 1012 | end) | |
| 1013 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45*4),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 1014 | meme.Anchored = false | |
| 1015 | local memep = Instance.new("ParticleEmitter",memep)
| |
| 1016 | memep.Rate = 5 | |
| 1017 | memep.Texture = "rbxassetid://148989069" | |
| 1018 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 1019 | spawn(function() | |
| 1020 | while meme.Parent ~= nil do | |
| 1021 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 1022 | for i,v in pairs(workspace:GetChildren()) do | |
| 1023 | if v.ClassName == "Model" and v ~= Char then | |
| 1024 | local hum = GetHumanoid(v) | |
| 1025 | if hum ~= nil and hum.Torso ~= nil then | |
| 1026 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 1027 | if Mag <= 30 then | |
| 1028 | RP.Target = hum.Torso | |
| 1029 | RP:Fire() | |
| 1030 | end | |
| 1031 | end | |
| 1032 | end | |
| 1033 | end | |
| 1034 | Rwait() | |
| 1035 | end | |
| 1036 | end) | |
| 1037 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,5,3),HM.CFrame *CFrame.Angles(0,math.rad(45*5),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 1038 | meme.Anchored = false | |
| 1039 | local memep = Instance.new("ParticleEmitter",memep)
| |
| 1040 | memep.Rate = 5 | |
| 1041 | memep.Texture = "rbxassetid://210744859" | |
| 1042 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 1043 | spawn(function() | |
| 1044 | while meme.Parent ~= nil do | |
| 1045 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 1046 | for i,v in pairs(workspace:GetChildren()) do | |
| 1047 | if v.ClassName == "Model" and v ~= Char then | |
| 1048 | local hum = GetHumanoid(v) | |
| 1049 | if hum ~= nil and hum.Torso ~= nil then | |
| 1050 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 1051 | if Mag <= 30 then | |
| 1052 | RP.Target = hum.Torso | |
| 1053 | RP:Fire() | |
| 1054 | end | |
| 1055 | end | |
| 1056 | end | |
| 1057 | end | |
| 1058 | Rwait() | |
| 1059 | end | |
| 1060 | end) | |
| 1061 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45*6),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 1062 | meme.Anchored = false | |
| 1063 | local memep = Instance.new("ParticleEmitter",meme)
| |
| 1064 | memep.Rate = 5 | |
| 1065 | memep.Texture = "rbxassetid://569577148" | |
| 1066 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 1067 | spawn(function() | |
| 1068 | while meme.Parent ~= nil do | |
| 1069 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 1070 | for i,v in pairs(workspace:GetChildren()) do | |
| 1071 | if v.ClassName == "Model" and v ~= Char then | |
| 1072 | local hum = GetHumanoid(v) | |
| 1073 | if hum ~= nil and hum.Torso ~= nil then | |
| 1074 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 1075 | if Mag <= 30 then | |
| 1076 | RP.Target = hum.Torso | |
| 1077 | RP:Fire() | |
| 1078 | end | |
| 1079 | end | |
| 1080 | end | |
| 1081 | end | |
| 1082 | Rwait() | |
| 1083 | end | |
| 1084 | end) | |
| 1085 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45*7),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 1086 | meme.Anchored = false | |
| 1087 | local memep = Instance.new("ParticleEmitter",memep)
| |
| 1088 | memep.Rate = 5 | |
| 1089 | memep.Texture = "rbxassetid://472697717" | |
| 1090 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 1091 | spawn(function() | |
| 1092 | while meme.Parent ~= nil do | |
| 1093 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 1094 | for i,v in pairs(workspace:GetChildren()) do | |
| 1095 | if v.ClassName == "Model" and v ~= Char then | |
| 1096 | local hum = GetHumanoid(v) | |
| 1097 | if hum ~= nil and hum.Torso ~= nil then | |
| 1098 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 1099 | if Mag <= 30 then | |
| 1100 | RP.Target = hum.Torso | |
| 1101 | RP:Fire() | |
| 1102 | end | |
| 1103 | end | |
| 1104 | end | |
| 1105 | end | |
| 1106 | Rwait() | |
| 1107 | end | |
| 1108 | end) | |
| 1109 | local meme = effect(Char,BrickColor.White(),Vector3.new(3,3,3),HM.CFrame *CFrame.Angles(0,math.rad(45*8),0) *CFrame.new(0,0,-5),0,0,Vector3.new(),40,nil,"Brick") | |
| 1110 | meme.Anchored = false | |
| 1111 | local memep = Instance.new("ParticleEmitter",meme)
| |
| 1112 | memep.Rate = 5 | |
| 1113 | memep.Texture = "rbxassetid://68774965" | |
| 1114 | local RP = Instance.new("RocketPropulsion",meme)
| |
| 1115 | spawn(function() | |
| 1116 | while meme.Parent ~= nil do | |
| 1117 | DamageNear(3,meme,math.random(6,10),0,10) | |
| 1118 | for i,v in pairs(workspace:GetChildren()) do | |
| 1119 | if v.ClassName == "Model" and v ~= Char then | |
| 1120 | local hum = GetHumanoid(v) | |
| 1121 | if hum ~= nil and hum.Torso ~= nil then | |
| 1122 | local Mag = (meme.CFrame.p - hum.Torso.CFrame.p).magnitude | |
| 1123 | if Mag <= 30 then | |
| 1124 | RP.Target = hum.Torso | |
| 1125 | RP:Fire() | |
| 1126 | end | |
| 1127 | end | |
| 1128 | end | |
| 1129 | end | |
| 1130 | Rwait() | |
| 1131 | end | |
| 1132 | end) | |
| 1133 | end | |
| 1134 | ||
| 1135 | local click = mouse.Button1Down:connect(function() | |
| 1136 | if on == false then return end | |
| 1137 | if enabled == false then return end | |
| 1138 | if combo == 1 and enabled == true then | |
| 1139 | enabled = false | |
| 1140 | Slash1() | |
| 1141 | enabled = true | |
| 1142 | combo = 2 | |
| 1143 | coroutine.wrap(function() | |
| 1144 | Rwait(400) | |
| 1145 | if combo ~= 1 and enabled == true then | |
| 1146 | combo = 1 | |
| 1147 | end | |
| 1148 | end)() | |
| 1149 | elseif combo == 2 and enabled == true then | |
| 1150 | enabled = false | |
| 1151 | Slash2() | |
| 1152 | enabled = true | |
| 1153 | combo = 3 | |
| 1154 | coroutine.wrap(function() | |
| 1155 | Rwait(400) | |
| 1156 | if combo ~= 1 and enabled == true then | |
| 1157 | combo = 1 | |
| 1158 | end | |
| 1159 | end)() | |
| 1160 | elseif combo == 3 and enabled == true then | |
| 1161 | enabled = false | |
| 1162 | Spin3() | |
| 1163 | enabled = true | |
| 1164 | combo = 1 | |
| 1165 | end | |
| 1166 | end) | |
| 1167 | ||
| 1168 | local keys = mouse.KeyDown:connect(function(key) | |
| 1169 | key = key:lower() | |
| 1170 | if enabled == false then return end | |
| 1171 | if key == "z" and on == true and enabled == true and zenabled == 1 then | |
| 1172 | zenabled = 0 | |
| 1173 | enabled = false | |
| 1174 | Deafen() | |
| 1175 | enabled = true | |
| 1176 | elseif key == "x" and on == true and enabled == true and xenabled == 1 then | |
| 1177 | xenabled = 0 | |
| 1178 | enabled = false | |
| 1179 | SaxSlam() | |
| 1180 | enabled = true | |
| 1181 | elseif key == "c" and on == true and enabled == true and cenabled == 1 then | |
| 1182 | cenabled = 0 | |
| 1183 | enabled = false | |
| 1184 | SummonMemes() | |
| 1185 | enabled = true | |
| 1186 | elseif key == "v" and on == true and enabled == true and venabled == 1 then | |
| 1187 | venabled = 0 | |
| 1188 | enabled = false | |
| 1189 | --MultiSax() | |
| 1190 | enabled = true | |
| 1191 | elseif key == "e" and on == true and enabled == true and eenabled == 1 then | |
| 1192 | eenabled = 0 | |
| 1193 | enabled = false | |
| 1194 | Endure() | |
| 1195 | enabled = true | |
| 1196 | end | |
| 1197 | if key == "q" and on == true and enabled == true then | |
| 1198 | idle = 500 | |
| 1199 | end | |
| 1200 | end) | |
| 1201 | ||
| 1202 | local function Cast(Pos,Dir,Amp,IgnoreList) | |
| 1203 | return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit*Amp), IgnoreList) | |
| 1204 | end | |
| 1205 | ||
| 1206 | --workspace.CharcterKaiser.Parent = workspace.CurrentCamera | |
| 1207 | ||
| 1208 | local Health = Human.Health | |
| 1209 | ||
| 1210 | Human.HealthChanged:connect(function(health) | |
| 1211 | if health <= 0 then return end | |
| 1212 | if health < Health then | |
| 1213 | if buff == true then | |
| 1214 | Human.Health = Health *0.95 | |
| 1215 | end | |
| 1216 | end | |
| 1217 | Health = health | |
| 1218 | end) | |
| 1219 | ||
| 1220 | while true do | |
| 1221 | local surface = Cast(HM.Position,(CFrame.new(HM.Position,HM.Position - Vector3.new(0,1,0))).lookVector,4,Char) | |
| 1222 | if zenabled < 1 then | |
| 1223 | zenabled = zenabled +0.01 *0.25 | |
| 1224 | else | |
| 1225 | zenabled = 1 | |
| 1226 | end | |
| 1227 | if xenabled < 1 then | |
| 1228 | xenabled = xenabled +0.01 *0.2 | |
| 1229 | else | |
| 1230 | xenabled = 1 | |
| 1231 | end | |
| 1232 | if cenabled < 1 then | |
| 1233 | cenabled = cenabled +0.01 *0.15 | |
| 1234 | else | |
| 1235 | cenabled = 1 | |
| 1236 | end | |
| 1237 | if eenabled < 1 then | |
| 1238 | eenabled = eenabled +0.01 *0.08 | |
| 1239 | else | |
| 1240 | eenabled = 1 | |
| 1241 | end | |
| 1242 | if venabled < 1 then | |
| 1243 | venabled = venabled +0.01 *0.15 | |
| 1244 | else | |
| 1245 | venabled = 1 | |
| 1246 | end | |
| 1247 | idle = idle +1 | |
| 1248 | if enabled == false then | |
| 1249 | idle = 0 | |
| 1250 | end | |
| 1251 | skill1img:TweenSize(UDim2.new(zenabled,0,1,0), "Out","Quad",0.1,false,nil) | |
| 1252 | skill2img:TweenSize(UDim2.new(xenabled,0,1,0), "Out","Quad",0.1,false,nil) | |
| 1253 | skill3img:TweenSize(UDim2.new(cenabled,0,1,0), "Out","Quad",0.1,false,nil) | |
| 1254 | skill4img:TweenSize(UDim2.new(venabled,0,1,0), "Out","Quad",0.1,false,nil) | |
| 1255 | skill5img:TweenSize(UDim2.new(eenabled,0,1,0), "Out","Quad",0.1,false,nil) | |
| 1256 | if on == true then | |
| 1257 | angle = (angle % 100) +anglespeed/10 | |
| 1258 | armangle = (armangle % 100) +armanglespeed/10 | |
| 1259 | legangle = (legangle % 100) +leganglespeed/10 | |
| 1260 | if action == "Idle" and enabled == true and surface ~= nil and idle < 500 then | |
| 1261 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.45,-0.15-math.cos(armangle*0.25)*0.15,-0.4) *CFrame.Angles(math.pi/5,0,math.pi/4),armspeed) | |
| 1262 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0.3-math.cos(armangle*0.25)*0.15,-0.1) *CFrame.Angles(math.pi/5,0,0),armspeed) | |
| 1263 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0.4,0.2+math.cos(legangle*0.25)*0.1,0) *CFrame.Angles(0,math.pi/4,0),legspeed) | |
| 1264 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(-0.4,0.2+math.cos(legangle*0.25)*0.1,0) *CFrame.Angles(0,-math.pi/8,0),legspeed) | |
| 1265 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.2-math.cos(angle*0.25)*0.1) *CFrame.Angles(0,0,-math.pi/3.5),speed) | |
| 1266 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.sin(angle*0.25)*0.05,0,math.pi/3.5),speed) | |
| 1267 | lerp(HW,HW.C0,hc0 *CFrame.new(0,2,-0.45) *CFrame.Angles(math.pi/1.95,0,0),speed) | |
| 1268 | elseif action == "Idle" and enabled == true and surface ~= nil and idle >= 500 then | |
| 1269 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(0.3,math.sin(armangle)*0.1,-0.65-math.sin(armangle)*0.1) *CFrame.Angles(math.pi/2+math.sin(armangle)*0.2,0,math.pi/4),armspeed) | |
| 1270 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.2,math.sin(armangle)*0.1,-0.65-math.sin(armangle)*0.1) *CFrame.Angles(math.pi/2+math.sin(armangle)*0.2,0,-math.pi/4),armspeed) | |
| 1271 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(-math.pi/15,0,0),legspeed) | |
| 1272 | lerp(WRH,WRH.C0,RHC0 *CFrame.Angles(-math.pi/15,0,0),legspeed) | |
| 1273 | lerp(WRJ,WRJ.C0,RJC0,speed) | |
| 1274 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8-math.sin(angle)*0.2,0,0),speed) | |
| 1275 | lerp(HW,HW.C0,hc0 *CFrame.Angles(math.pi,0,-math.pi/4) *CFrame.new(0,-0.2,-1.5),speed) | |
| 1276 | end | |
| 1277 | if action == "Walk" and enabled == true and surface ~= nil then | |
| 1278 | idle = 0 | |
| 1279 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.8,0.5-math.cos(armangle)*0.15,-0.6) *CFrame.Angles(math.pi/1.2,math.pi/5,math.pi/3.2),armspeed) | |
| 1280 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(-0.2,-math.cos(armangle)*0.15,0) *CFrame.Angles(math.pi/1.1,math.pi/5,math.pi/8),armspeed) | |
| 1281 | lerp(WLH,WLH.C0,LHC0 *CFrame.new(0,-math.cos(legangle)*0.25,0) *CFrame.new(0.5,0.25+math.sin(legangle)*0.15,0) *CFrame.Angles(0,math.pi/4,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle))),legspeed) | |
| 1282 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0,-math.cos(legangle)*0.25,0) *CFrame.new(0.5,0.1-math.sin(legangle)*0.15,0) *CFrame.Angles(0,math.pi/4,0) *CFrame.Angles(0,0,math.asin(math.cos(legangle))),legspeed) | |
| 1283 | lerp(WRJ,WRJ.C0,RJC0 *CFrame.new(0,0,-0.15+math.cos(angle)*0.35) *CFrame.Angles(math.pi/10,math.sin(angle*0.5)*0.1+HM.RotVelocity.Y/20,-math.pi/4),speed) | |
| 1284 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(0,0,math.pi/4) *CFrame.Angles(-math.pi/10+math.sin(angle*0.25)*0.1,0,0),speed) | |
| 1285 | lerp(HW,HW.C0,hc0 *CFrame.new(0,-0.3,-2),speed) | |
| 1286 | end | |
| 1287 | if HM.Velocity.Y >= 5 and enabled == true and surface == nil then | |
| 1288 | action = "Jump" | |
| 1289 | idle = 0 | |
| 1290 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.45,-0.15,-0.4) *CFrame.Angles(math.pi/5,0,math.pi/4),armspeed*1.5) | |
| 1291 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0.3,-0.1) *CFrame.Angles(math.pi/5,0,0),armspeed*1.5) | |
| 1292 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,-math.pi/10),legspeed*1.5) | |
| 1293 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.5,0.5,0) *CFrame.Angles(0,0,-math.pi/8),legspeed*1.5) | |
| 1294 | lerp(WRJ,WRJ.C0,RJC0,speed*1.5) | |
| 1295 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(-math.pi/8,0,0),speed*1.5) | |
| 1296 | lerp(HW,HW.C0,hc0 *CFrame.Angles(math.pi,0,-math.pi/4) *CFrame.new(0,-0.2,-1.5),1) | |
| 1297 | Rwait() | |
| 1298 | elseif HM.Velocity.Y <= -5 and enabled == true and surface == nil then | |
| 1299 | action = "Fall" | |
| 1300 | idle = 0 | |
| 1301 | lerp(WLS,WLS.C0,LSC0 *CFrame.new(1.45,-0.15,-0.4) *CFrame.Angles(math.pi/5,0,math.pi/4),armspeed*1.5) | |
| 1302 | lerp(WRS,WRS.C0,RSC0 *CFrame.new(0,0.3,-0.1) *CFrame.Angles(math.pi/5,0,0),armspeed*1.5) | |
| 1303 | lerp(WLH,WLH.C0,LHC0 *CFrame.Angles(0,0,math.pi/3),legspeed*1.5) | |
| 1304 | lerp(WRH,WRH.C0,RHC0 *CFrame.new(0.5,0,0) *CFrame.Angles(0,0,math.pi/8),legspeed*1.5) | |
| 1305 | lerp(WRJ,WRJ.C0,RJC0,speed*1.5) | |
| 1306 | lerp(Neck,Neck.C0,NC0 *CFrame.Angles(math.pi/5,0,0),speed*1.5) | |
| 1307 | lerp(HW,HW.C0,hc0 *CFrame.Angles(math.pi,0,-math.pi/4) *CFrame.new(0,-0.2,-1.5),1) | |
| 1308 | Rwait() | |
| 1309 | end | |
| 1310 | if Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude <= 2 then | |
| 1311 | action = "Idle" | |
| 1312 | elseif Vector3.new(HM.Velocity.X,0,HM.Velocity.Z).magnitude >= 2 then | |
| 1313 | action = "Walk" | |
| 1314 | end | |
| 1315 | end | |
| 1316 | Rwait() | |
| 1317 | end |