Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------
- --Donald McGillavry--
- ----------------
- --By --
- --CKbackup-
- -----------
- player = game.Players.LocalPlayer
- chara = player.Character
- debby = game.Debris
- Mouse = player:GetMouse()
- chara.Humanoid.WalkSpeed = 24
- atkd = false
- atkdd = false
- targetted = nil
- iaidoatk = false
- berserkmode = false
- --Outfit--
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- Swordu = New("Model",chara,"Swordu",{})
- Handle = New("Part",Swordu,"Handle",{BrickColor = BrickColor.new("Storm blue"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.200000003, 0.99999994, 0.399999976),CFrame = CFrame.new(34.5000267, 1.20001173, 22.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.2, 0.345098, 0.509804),})
- Mesh = New("CylinderMesh",Handle,"Mesh",{Scale = Vector3.new(1.20000005, 1, 1.20000005),})
- KWeld = New("ManualWeld",Handle,"KWeld",{Part0 = Handle,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -0.999996185, -7.15255737e-07, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
- Part = New("Part",Swordu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.200000003, 0.799999714, 0.200000003),CFrame = CFrame.new(34.5000267, 5.50000811, 22.4999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 4.29999638, -0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Swordu,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5000267, 1.80001104, 22.5999928, 0, 0, -1, 0, -1, 0, -1, 0, 0),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(6, 1, 0.699999988),MeshType = Enum.MeshType.Torso,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, -1, 0, -1, 0, 0),C1 = CFrame.new(0, 0.599999309, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Swordu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.200000003, 0.799999714, 0.200000003),CFrame = CFrame.new(34.5000267, 5.50001001, 22.6999931, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),MeshType = Enum.MeshType.Wedge,})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 4.29999828, 0.100000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Swordu,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5000229, 1.8000114, 22.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(2, 1.5, 2),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-3.81469727e-06, 0.599999666, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Swordu,"Part",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.SmoothPlastic,Reflectance = 0.20000000298023,Size = Vector3.new(0.200000003, 0.200000003, 0.399999976),CFrame = CFrame.new(34.5000229, 0.600010991, 22.5999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,Color = Color3.new(0.937255, 0.721569, 0.219608),})
- Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-3.81469727e-06, -0.600000739, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",Swordu,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.30000001192093,Size = Vector3.new(0.200000003, 3.19999981, 0.399999976),CFrame = CFrame.new(34.5000267, 3.50001144, 22.5999928, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.5, 1, 1),})
- Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0, 2.29999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Hitbox = New("Part",Swordu,"Hitbox",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 4, 0.399999976),CFrame = CFrame.new(34.5000267, 3.90001106, 22.5999947, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,})
- Mesh = New("BlockMesh",Hitbox,"Mesh",{Scale = Vector3.new(0.5, 1, 1),})
- Weld = New("ManualWeld",Hitbox,"Weld",{Part0 = Hitbox,Part1 = Handle,C1 = CFrame.new(0, 2.69999933, 1.90734863e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- RightArm = New("Model",chara,"RightArm",{})
- MainPart = New("Part",RightArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(0.5, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Right Arm"],C1 = CFrame.new(0, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Emit2Part = New("Part",RightArm,"Emit2Part",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(0.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
- Mesh = New("SpecialMesh",Emit2Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
- Weld = New("ManualWeld",Emit2Part,"Weld",{Part0 = Emit2Part,Part1 = MainPart,C1 = CFrame.new(0, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- LeftArm = New("Model",chara,"LeftArm",{})
- MainPart = New("Part",LeftArm,"MainPart",{Transparency = 1,Transparency = 1,Size = Vector3.new(1, 2, 1),CFrame = CFrame.new(-2.50000024, 3.00000787, -3.50019717, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara["Left Arm"],C1 = CFrame.new(-2.38418579e-007, -1.00135803e-005, -0.000197172165, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- EmitPart = New("Part",LeftArm,"EmitPart",{BrickColor = BrickColor.new("Hot pink"),Material = Enum.Material.Neon,Transparency = 1,Transparency = 1,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(-2.5, 2.10001373, -3.5001967, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0, 0.74902),})
- Mesh = New("SpecialMesh",EmitPart,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,})
- Weld = New("ManualWeld",EmitPart,"Weld",{Part0 = EmitPart,Part1 = MainPart,C1 = CFrame.new(2.38418579e-007, -0.899994135, 4.76837158e-007, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- lach = LeftArm:GetChildren()
- rach = RightArm:GetChildren()
- ch = chara:GetChildren()
- ScreenGui = New("ScreenGui",player.PlayerGui,"ScreenGui",{})
- Frame = New("Frame",ScreenGui,"Frame",{BackgroundColor3 = Color3.new(0,.6,0),BorderColor3 = Color3.new(.2,.6,0),BorderSizePixel = 3,Position = UDim2.new(0,700,0,100),Size = UDim2.new(0,200,0,400),Draggable = true})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,0),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Donald McGillavry",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,20),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "M - Mute/Unmute Music",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,40),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Z - Punch",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,60),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "X - Kick",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,80),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "C - Slash",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,100),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Q - Select Target",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,120),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "E - Block",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,140),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SAX - Ballista Revolver",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,160),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SSX - Flip Kick",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,180),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "AWC - From Above",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,200),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ADDC - Knight Slash",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,220),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "DSDC - Knight Stabs",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,240),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "SSADC - Knight Rush",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,260),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "DSADDQ - Berserk",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,280),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ADQ - End Him Rightly",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,300),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "ASDQ - Launch Explosives",TextColor3 = Color3.new(1,1,1)})
- TextLabel = New("TextLabel",Frame,"TextLabel",{BackgroundTransparency = 1,BorderSizePixel = 0,Position = UDim2.new(0,0,0,320),Size = UDim2.new(0,200,0,20),FontSize = "Size14",Font = "Fantasy",Text = "",TextColor3 = Color3.new(1,1,1)})
- OpenButton = New("TextButton",ScreenGui,"OpenButton",{BackgroundColor3 = Color3.new(0,.6,0),BorderColor3 = Color3.new(.2,.6,0),BorderSizePixel = 3,Position = UDim2.new(0,700,0,500),Size = UDim2.new(0,50,0,20),FontSize = "Size14",Font = "Fantasy",Text = "Close",TextColor3 = Color3.new(1,1,1)})
- HandleT = New("Part",chara,"HandleT",{FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(2, 0.800000012, 1),CFrame = CFrame.new(36, 17.5985985, 26.6999989, -1, 0, -0, -0, 1, -0, -0, 0, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",HandleT,"Mesh",{MeshId = "http://www.roblox.com/asset/?id=1043443",TextureId = "http://www.roblox.com/asset/?id=1043438",MeshType = Enum.MeshType.FileMesh,})
- WeldT = New("ManualWeld",HandleT,"WeldT",{Part0 = HandleT,Part1 = chara.Head,C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 1, 0, -0, -0, -1),C1 = CFrame.new(0, 0.900007248, 0, -1, -0, -0, 0, 1, 0, -0, -0, -1),})
- Shirta = New("Shirt",chara,"Shirta",{ShirtTemplate = "http://www.roblox.com/asset/?id=1895708"})
- function addCols()
- ch = chara:GetChildren()
- for i = 1, #ch do
- if ch[i].Name == "Left Arm" or ch[i].Name == "Right Arm" or ch[i].Name == "Head" or ch[i].Name == "Torso" then
- ch[i].BrickColor = BrickColor.new("Bright yellow")
- if ch[i].Name == "Head" then
- ch[i].face.Texture = "http://www.roblox.com/asset/?id=18569805"
- elseif ch[i].Name == "Torso" then
- ch[i].roblox.Texture = ""
- end
- elseif ch[i].Name == "Left Leg" or ch[i].Name == "Right Leg" then
- ch[i].BrickColor = BrickColor.new("Black")
- elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Hat" or ch[i].Name == "Shirt" or ch[i].Name == "Pants" or ch[i].Name == "Shirt Graphic" then
- ch[i]:Destroy()
- elseif ch[i].ClassName == "CharacterMesh" and chara:FindFirstChild("Chest")==nil then
- ch[i]:Destroy()
- end
- end
- end
- OpenButton.MouseButton1Click:connect(function()
- if Frame.Visible == true then
- Frame.Visible = false
- OpenButton.Text = "Open"
- elseif Frame.Visible == false then
- Frame.Visible = true
- OpenButton.Text = "Close"
- end
- end)
- crosshair = Instance.new("BillboardGui",chara)
- crosshair.Size = UDim2.new(10,0,10,0)
- crosshair.Enabled = false
- imgl = Instance.new("ImageLabel",crosshair)
- imgl.Position = UDim2.new(0,0,0,0)
- imgl.Size = UDim2.new(1,0,1,0)
- imgl.Image = "rbxassetid://233522684"
- imgl.BackgroundTransparency = 1
- imgl.ImageColor3 = Color3.new(1,1,0)
- --Sounds--
- function LoadSnd(id,loop,vol,pit)
- local snd = New("Sound",chara,"Sound",{SoundId = "rbxassetid://"..id,Looped = loop,Volume = vol,Pitch = pit})
- return snd
- end
- Music = LoadSnd(166597964,true,2,1)
- StartUpSnd = LoadSnd(153092315,false,1,.8)
- SwingSnd = LoadSnd(158037267,false,1,1)
- Swing2Snd = LoadSnd(12222208,false,1,1)
- HitSnd = LoadSnd(153092274,false,1,1)
- HitPunchSnd = LoadSnd(153092227,false,1,1)
- DodgeSnd = LoadSnd(232210079,false,1,1)
- ExpSnd = LoadSnd(142070127,false,1,1)
- FlySnd = LoadSnd(169445602,false,1,1)
- BExpSnd = LoadSnd(258057783,false,5,1)
- ClawDashSnd = LoadSnd(62339698,false,1,.5)
- deathmus = LoadSnd(395580552,true,5,1)
- deathex = LoadSnd(258057783,false,5,1)
- --Grunt1Snd = LoadSnd(159882486,false,1,1.1)
- --Grunt2Snd = LoadSnd(159882466,false,1,1.1)
- --Grunt3Snd = LoadSnd(159972643,false,1,1.1)
- --Grunt4Snd = LoadSnd(159882584,false,1,1.1)
- --YouIdiotSnd = LoadSnd(160212768,false,1,1.1)
- --DieSnd = LoadSnd(159882598,false,1,1.1)
- --Laugh1Snd = LoadSnd(160212549,false,1,1.1)
- --Laugh2Snd = LoadSnd(159882561,false,1,1.1)
- --Laugh3Snd = LoadSnd(160212812,false,1,1.1)
- ChargeSnd = LoadSnd(137463716,false,1,1)
- LasSnd = LoadSnd(162246701,false,1,1)
- LasLoopSnd = LoadSnd(162246683,true,1,1)
- RStompSnd = LoadSnd(2760979,false,1,1)
- GunFlameSnd = LoadSnd(32656754,false,1,1)
- OrbSnd = LoadSnd(233091161,false,1,1)
- ElectricSnd = LoadSnd(231917975,false,1,1)
- LightsOutSnd = LoadSnd(231917794,false,1,1)
- SkyBeamSnd = LoadSnd(260433522,false,1,1)
- TargetSnd = LoadSnd(613361563,false,1,1)
- SV1Snd = LoadSnd(28144425,false,1,.265)
- SV2Snd = LoadSnd(2697431,false,1,.3)
- SVHitSnd = LoadSnd(62339698,false,1,.3)
- IceBreakSnd = LoadSnd(357568316,false,1,1)
- FreezeSnd = LoadSnd(203936153,false,1,1)
- IceBreak2Snd = LoadSnd(87015121,false,1,1)
- BlockedSnd = LoadSnd(357622136,false,1,1)
- Music:Play()
- --Play Sound in Part--
- function PlaySnd(snd,part)
- local sound = snd:Clone()
- sound.PlayOnRemove = true
- sound.Parent = part
- sound:Destroy()
- end
- --Target Select--
- function TargetSelect(person)
- local dd=coroutine.wrap(function()
- if targetted ~= person then
- targetted = person
- for i = 0,30,10 do
- wait(.05)
- crosshair.Size = UDim2.new(40-i,0,40-i,0)
- end
- end
- end)
- dd()
- end
- --Damage Function--
- function dealdmg(dude,damage,env,toim)
- hurt = coroutine.wrap(function(dude2,damage2,env2,toim2)
- if dude ~= chara and dude:FindFirstChild("IsHit") == nil then
- TargetSelect(dude)
- dude.Humanoid.MaxHealth = 100
- finaldmg = damage + math.random(-env,env)
- if berserkmode == true then
- finaldmg = finaldmg * 1.5
- end
- dude.Humanoid.Health = dude.Humanoid.Health - finaldmg
- local vall = Instance.new("ObjectValue",dude)
- vall.Name = "IsHit"
- debby:AddItem(vall,toim)
- local naeeym2 = Instance.new("BillboardGui",dude)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = dude.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = "-"..finaldmg
- tecks2.Font = "SciFi"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,0.6,0)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- if berserkmode == true then
- tecks2.TextColor3 = Color3.new(1,0,0)
- tecks2.TextStrokeColor3 = Color3.new(1,1,0)
- end
- for i = 1, 5 do
- wait(.1)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end
- end)
- hurt(dude,damage,env,toim)
- end
- --Explode Hitbox--
- function ExHitbox(rad,pos,damage,env,toim)
- local E = Instance.new("Explosion")
- E.Position = pos
- E.Parent = game.Workspace
- E.BlastRadius = rad
- E.BlastPressure = 0
- E.Visible = false
- E.Hit:connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid")~=nil then
- dealdmg(hit.Parent,damage,env,toim)
- end
- end)
- end
- --Chat Function--
- function chatfunc(text)
- local chat = coroutine.wrap(function()
- if chara:FindFirstChild("TalkingBillBoard")~= nil then
- chara:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",chara)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = chara.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,1,1)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- if berserkmode == true then
- tecks2.TextColor3 = Color3.new(1,0,0)
- tecks2.TextStrokeColor3 = Color3.new(1,1,0)
- end
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- wait(0.01)
- end
- wait(1)
- for i = 1, 5 do
- wait(.01)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end)
- chat()
- end
- function onChatted(msg)
- chatfunc(msg)
- end
- player.Chatted:connect(onChatted)
- --Punch Hit Effect--
- function PunchEff(pos)
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0,0,0)
- p.BrickColor = BrickColor.new("White")
- p.Material = "Neon"
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = pos
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshType = "Sphere"
- local disp = coroutine.wrap(function()
- for i = 1, 4 do
- wait(.01)
- p.Transparency = p.Transparency + .2
- pm.Scale = pm.Scale + Vector3.new(2,2,2)
- end
- wait(.01)
- p:Destroy()
- end)
- disp()
- end
- --Blade Hit Effect--
- function SlashEff(pos)
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0,0,0)
- p.BrickColor = BrickColor.new("White")
- p.Material = "Neon"
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshType = "Sphere"
- pm.Scale = Vector3.new(2.5,0,2.5)
- local disp = coroutine.wrap(function()
- for i = 1, 4 do
- wait(.01)
- p.Transparency = p.Transparency + .2
- pm.Scale = pm.Scale + Vector3.new(0,30,0)
- end
- wait(.01)
- p:Destroy()
- end)
- disp()
- end
- --Super Pause--
- function SuperPause()
- StartUpSnd:Play()
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0,0,0)
- p.BrickColor = BrickColor.new("White")
- p.Material = "Neon"
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = chara.Torso.CFrame
- local pm = Instance.new("SpecialMesh",p)
- pm.MeshType = "Sphere"
- local disp = coroutine.wrap(function()
- for i = 1, 4 do
- wait(.01)
- p.Transparency = p.Transparency + .2
- pm.Scale = pm.Scale + Vector3.new(20,20,20)
- end
- wait(.01)
- p:Destroy()
- end)
- disp()
- end
- --Punch Touch--
- dela = .5
- punchactive = false
- function punchhit(hit)
- if punchactive == true then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
- dealdmg(hit.Parent,15,2,dela)
- PlaySnd(HitPunchSnd,hit.Parent.Head)
- PunchEff(Emit2Part.CFrame)
- end
- end
- end
- Emit2Part.Touched:connect(punchhit)
- EmitPart.Touched:connect(punchhit)
- --Kick Touch--
- kickactive = false
- dkickactive = false
- skickactive = false
- didskick = false
- lkickactive = false
- function kickhit(hit)
- if kickactive == true then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
- dealdmg(hit.Parent,15,2,dela)
- PlaySnd(HitPunchSnd,hit.Parent.Head)
- PunchEff(hit.CFrame)
- if dkickactive == true then
- hit.Parent.Humanoid.PlatformStand = true
- hit.Parent.Head.CFrame = chara["Right Leg"].CFrame * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
- wait(3)
- hit.Parent.Humanoid.PlatformStand = false
- end
- if skickactive == true then
- local bodpf = Instance.new("BodyPosition",hit.Parent.Head)
- bodpf.MaxForce = Vector3.new(10000,10000,10000)
- bodpf.Position = chara.HumanoidRootPart.Position + Vector3.new(0,30,0) + (chara.HumanoidRootPart.CFrame.lookVector*3)
- debby:AddItem(bodpf,3.5)
- didskick = true
- end
- if lkickactive == true then
- if hit.Parent.Head:FindFirstChild("BodyPosition") ~= nil then
- hit.Parent.Head:FindFirstChild("BodyPosition"):Destroy()
- end
- local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
- bfos.P = 20000
- bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
- bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 20 + Vector3.new(0,30,0)
- debby:AddItem(bfos,.3)
- end
- end
- end
- end
- chara["Left Leg"].Touched:connect(kickhit)
- chara["Right Leg"].Touched:connect(kickhit)
- --Blade Touch--
- dela = .5
- bladeactive = false
- function bladehit(hit)
- if blockval == true then
- PlaySnd(BlockedSnd,chara)
- end
- if bladeactive == true then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent ~= chara and hit.Parent:FindFirstChild("IsHit")==nil then
- dealdmg(hit.Parent,20,2,dela)
- PlaySnd(HitSnd,hit.Parent.Head)
- SlashEff(hit.CFrame)
- if iaidoatk == true then
- local bfos = Instance.new("BodyVelocity",hit.Parent.Head)
- bfos.P = 20000
- bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
- bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 10
- wait(1)
- for i = 1, 30 do
- wait(.0001)
- dealdmg(hit.Parent,2,1,0)
- PlaySnd(HitSnd,hit.Parent.Head)
- SlashEff(hit.CFrame)
- end
- bfos:Destroy()
- end
- end
- end
- end
- Hitbox.Touched:connect(bladehit)
- --Material Return--
- gprop = {}
- function materialhit(hit)
- if hit.Parent ~= chara and hit.Parent.Parent ~= chara and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then
- gprop = {hit.BrickColor,hit.Material}
- end
- end
- chara["Left Leg"].Touched:connect(materialhit)
- chara["Right Leg"].Touched:connect(materialhit)
- --Clerp Animations--
- TC = chara.HumanoidRootPart.RootJoint
- HC = chara.Torso.Neck
- RAC = chara.Torso["Right Shoulder"]
- LAC = chara.Torso["Left Shoulder"]
- RLC = chara.Torso["Right Hip"]
- LLC = chara.Torso["Left Hip"]
- TCF = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- HCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
- RACF = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LACF = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RLCF = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- LLCF = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RWF = CFrame.new(-1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LWF = CFrame.new(1.5, 0, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RLWF = CFrame.new(-.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- LLWF = CFrame.new(.5, 2, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
- RW = Instance.new("Weld",HC.Parent)
- RW.Part1 = HC.Parent
- RW.Part0 = chara["Right Arm"]
- RW.C0 = RWF
- LW = Instance.new("Weld",HC.Parent)
- LW.Part1 = HC.Parent
- LW.Part0 = chara["Left Arm"]
- LW.C0 = LWF
- RLW = nil
- LLW = nil
- function Sheath(stype)
- KWeld:Destroy()
- if stype == 1 then --Unsheathed
- KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -1, -4.76837158e-007, 1, 0, 0, 0, 0, -1, 0, 1, 0),})
- elseif stype == 2 then --Unsheathed, Pointing
- KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -0.500001907, -0.0999999046, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
- elseif stype == 3 then --Unsheathed, Down
- KWeld = New("ManualWeld",Handle,"Weld",{Part0 = Handle,Part1 = chara["Right Arm"],C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, -1, 4.76837158e-007, -1, 0, 0, 0, 0, -1, 0, -1, 0),})
- end
- end
- function AddLegWelds()
- RLW = Instance.new("Weld",chara["Right Leg"])
- RLW.Part1 = HC.Parent
- RLW.Part0 = chara["Right Leg"]
- RLW.C0 = RLWF
- LLW = Instance.new("Weld",chara["Left Leg"])
- LLW.Part1 = HC.Parent
- LLW.Part0 = chara["Left Leg"]
- LLW.C0 = LLWF
- end
- function DestroyLegWelds()
- RLC = New("Motor6D",chara.Torso,"Right Hip",{Part0 = chara.Torso,Part1 = chara["Right Leg"],C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),})
- LLC = New("Motor6D",chara.Torso,"Left Hip",{Part0 = chara.Torso,Part1 = chara["Left Leg"],C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),})
- RLW:Destroy()
- LLW:Destroy()
- end
- function clerp(a,b,c)
- return a:lerp(b,c)
- end
- --TC.C0 = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90))
- --HC.C0 = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
- --RW.C0 = (RWF + Vector3.new(1,2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- --LW.C0 = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
- TC.C0 = TCF
- HC.C0 = HCF
- RW.C0 = RWF
- LW.C0 = LWF
- --Idle Clerp--
- ITCF = TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50))
- IHCF = HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50))
- IRWF = RWF * CFrame.fromEulerAnglesXYZ(0,math.rad(10),math.rad(-2))
- ILWF = LWF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(2))
- TC.C0 = ITCF
- HC.C0 = IHCF
- RW.C0 = IRWF
- LW.C0 = ILWF
- --Punch--
- function Punch()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 0
- punchactive = true
- wait(.01)
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- chara.Humanoid.WalkSpeed = 32
- punchactive = false
- del = false
- atkdd = true
- end
- --Kick Atk--
- function KickAtk()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 0
- kickactive = true
- AddLegWelds()
- for i = 0,.75,.25 do
- wait(.05)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.4+i)
- LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.4+i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.4+i)
- RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.4+i)
- end
- for i = 0,.75,.25 do
- wait(.05)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,math.rad(-85)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(85)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,.3,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-30)),.6-i)
- LW.C0 = clerp(ILWF,(LWF - Vector3.new(.2,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-10)),.6-i)
- LLW.C0 = clerp(LLWF,(LLWF - Vector3.new(1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(45)),.6-i)
- RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(-1,0,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-45)),.6-i)
- end
- DestroyLegWelds()
- kickactive = false
- chara.Humanoid.WalkSpeed = 24
- del = false
- atkdd = true
- end
- --Slash Attack--
- function SlashAtk()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 0
- bladeactive = true
- SwingSnd:Play()
- wait(.01)
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- wait(.1)
- bladeactive = false
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF,.6-i)
- HC.C0 = clerp(IHCF,HCF,.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- Sheath(1)
- del = false
- chara.Humanoid.WalkSpeed = 24
- atkdd = true
- end
- --Bandit Revolver--
- function BanditRevolver()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 0
- kickactive = true
- dkickactive = true
- chatfunc("Ballista Revolver!")
- AddLegWelds()
- local bfos = Instance.new("BodyVelocity",chara.Torso)
- bfos.P = 10000
- bfos.MaxForce = Vector3.new(bfos.P,0,bfos.P)
- bfos.Velocity = chara.HumanoidRootPart.CFrame.lookVector * 40
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
- LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
- RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
- end
- for i = 1,4 do
- SwingSnd:Play()
- for i = 0,1,.25 do
- wait(.0001)
- TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i)
- end
- for i = 0,1,.25 do
- wait(.0001)
- TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i)
- end
- end
- SwingSnd:Play()
- for i = 0,1,.25 do
- wait(.0001)
- TC.C0 = clerp((TCF + Vector3.new(0,1,0)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),i)
- end
- for i = 0,1,.25 do
- wait(.0001)
- TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(180)),(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(360)),i)
- end
- for i = 0,1,.25 do
- wait(.01)
- TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(270)),ITCF,i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(0,math.rad(20),math.rad(90)),IHCF,i)
- RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,i)
- LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,i)
- RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,i)
- end
- DestroyLegWelds()
- dkickactive = false
- kickactive = false
- chara.Humanoid.WalkSpeed = 24
- bfos:Destroy()
- del = false
- atkdd = true
- end
- --Freezer Kick--
- function FlipKickEffect(pos)
- local p = Instance.new("Part",game.Workspace)
- p.Size = Vector3.new(0,0,0)
- p.BrickColor = BrickColor.new("Dark stone grey")
- p.Material = "SmoothPlastic"
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = pos * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local pm = Instance.new("BlockMesh",p)
- local disp = coroutine.wrap(function()
- for i = 1, 4 do
- wait(.01)
- p.Transparency = p.Transparency + .2
- pm.Scale = pm.Scale + Vector3.new(2,2,2)
- end
- wait(.01)
- p:Destroy()
- end)
- disp()
- end
- function FlipKick()
- del = true
- atkd = true
- chatfunc("Flip Kick!")
- AddLegWelds()
- kickactive = true
- lkickactive = true
- local bfos = Instance.new("BodyVelocity",chara.Torso)
- bfos.P = 10000
- bfos.MaxForce = Vector3.new(bfos.P,bfos.P,bfos.P)
- bfos.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector * 20
- SwingSnd:Play()
- for i = 0,.6,.2 do
- wait(.001)
- TC.C0 = clerp(ITCF,(TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
- LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
- RLW.C0 = clerp(RLWF,(RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),.4+i)
- FlipKickEffect(chara["Left Leg"].CFrame - chara["Left Leg"].CFrame.upVector*1.5)
- end
- for i = 0,1,.25 do
- wait(.001)
- TC.C0 = clerp((TCF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(math.rad(-180),0,0),ITCF * CFrame.fromEulerAnglesXYZ(math.rad(-360),0,0),.4+i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(90),0,0),IHCF,.4+i)
- RW.C0 = clerp((RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),IRWF,.4+i)
- LW.C0 = clerp((LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),ILWF,.4+i)
- RLW.C0 = clerp((RLWF - Vector3.new(0,1,1.2)) * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0),RLWF,.4+i)
- FlipKickEffect(chara["Left Leg"].CFrame - chara["Left Leg"].CFrame.upVector*1.5)
- end
- DestroyLegWelds()
- bfos:Destroy()
- kickactive = false
- lkickactive = false
- del = false
- atkdd = true
- end
- --End Him Rightly--
- function EndRightly()
- del = true
- atkd = true
- chatfunc("End You Rightly!")
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- SwingSnd:Play()
- local missile = Instance.new("Part",game.Workspace)
- missile.Material = "Neon"
- missile.Size = Vector3.new(0,0,0)
- missile.BrickColor = BrickColor.new("Gold")
- missile.Name = "Blast"
- missile.TopSurface = 0
- missile.BottomSurface = 0
- missile.Position = chara["Right Arm"].Position
- missile.CFrame = chara["Right Arm"].CFrame
- missile.Velocity = ((targetted.Head.Position - Vector3.new(0,2,0)) - chara.HumanoidRootPart.Position).unit*70
- local mesh1 = Instance.new("SpecialMesh",missile)
- mesh1.MeshType = "Head"
- mesh1.Scale = Vector3.new(1.5,1.5,1.5)
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
- force.Parent = missile
- if berserkmode == true then
- local p1mit = Instance.new("ParticleEmitter",missile)
- p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds"
- p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Deep orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("New Yeller").Color)})
- p1mit.LightEmission = 1
- p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
- p1mit.Lifetime = NumberRange.new(1)
- p1mit.Rate = 10000
- p1mit.Rotation = NumberRange.new(0,359)
- p1mit.RotSpeed = NumberRange.new(100)
- p1mit.Speed = NumberRange.new(0)
- end
- -- local bfo = Instance.new("BodyVelocity",missile)
- -- bfo.P = 100000
- -- bfo.MaxForce = Vector3.new(bfo.P,bfo.P,bfo.P)
- -- bfo.Velocity = (chara.HumanoidRootPart.CFrame.lookVector*100)+(chara.HumanoidRootPart.CFrame.rightVector*i)
- -- debby:AddItem(bfo,1)
- missile.Touched:connect(function(hit)
- if (hit.Parent.Parent ~= chara and hit.Parent ~= chara and hit.Name ~= "Blast" and force ~= nil) then
- force:Destroy()
- force = nil
- ExHitbox(3,missile.Position,12,1,.5)
- PlaySnd(HitPunchSnd,hit)
- wait(2)
- missile:Destroy()
- end
- end)
- debby:AddItem(missile,10)
- wait(.5)
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- del = false
- atkdd = true
- end
- --Decapitator--
- function Decapitator()
- del = true
- atkd = true
- chatfunc("Sky Slash!")
- chara.Humanoid.WalkSpeed = 0
- bladeactive = true
- Sheath(2)
- for i = 0,.6,.2 do
- wait(.0001)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),.6-i)
- end
- local bf = Instance.new("BodyVelocity",chara.Torso)
- bf.P = 10000
- bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
- bf.Velocity = Vector3.new(0,20,0) + chara.HumanoidRootPart.CFrame.lookVector*50
- SwingSnd:Play()
- for i = 0,1,.25 do
- wait(.0001)
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),i)
- HC.C0 = HCF
- RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- end
- for i = 0,1,.25 do
- wait(.0001)
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(180)),TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),math.rad(360)),i)
- HC.C0 = HCF
- RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- end
- bf:Destroy()
- Sheath(1)
- for i = 0,.6,.2 do
- wait(.0001)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,math.rad(90),0),.6-i)
- HC.C0 = clerp(IHCF,HCF,.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- LW.C0 = clerp(ILWF,(LWF - Vector3.new(.5,-1.4,.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-50),0,math.rad(90)),.6-i)
- end
- bladeactive = false
- atkdd = true
- chara.Humanoid.WalkSpeed = 24
- del = false
- end
- --Slashes--
- function IaidoFrost()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 8
- SuperPause()
- chatfunc("My secret knight technique..")
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- end
- wait(.5)
- bladeactive = true
- iaidoatk = true
- Sheath(2)
- Swing2Snd:Play()
- wait(.01)
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-180)),TCF,.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- wait(1)
- bladeactive = false
- iaidoatk = false
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF,.6-i)
- HC.C0 = clerp(IHCF,HCF,.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- Sheath(1)
- del = false
- chara.Humanoid.WalkSpeed = 24
- atkdd = true
- end
- --Stabs--
- function KnightStabs()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 8
- chatfunc("Knight Stabs!")
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- end
- bladeactive = true
- dela = 0
- Sheath(2)
- wait(.01)
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- for i = 1, 10 do
- wait(.001)
- PlaySnd(SwingSnd,chara)
- RW.C0 = ((RWF + Vector3.new(math.random(-.2,.8),1.4,math.random(-.8,.8)))) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- end
- RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- Sheath(1)
- chara.Humanoid.WalkSpeed = 24
- bladeactive = false
- dela = .5
- del = false
- atkdd = true
- end
- --Rush--
- function KnightRush()
- del = true
- atkd = true
- chara.Humanoid.WalkSpeed = 8
- SuperPause()
- chatfunc("Knight Rush!")
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF,.4+i)
- end
- wait(1)
- bladeactive = true
- dela = 0
- Sheath(2)
- wait(.01)
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- for i = 1, 40 do
- wait(.001)
- PlaySnd(SwingSnd,chara)
- RW.C0 = ((RWF + Vector3.new(math.random(-.2,.8),1.4,math.random(-.8,.8)))) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- end
- RW.C0 = (RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90))
- wait(1)
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- Sheath(1)
- chara.Humanoid.WalkSpeed = 24
- bladeactive = false
- dela = .5
- del = false
- atkdd = true
- end
- --Berserk--
- function Berserk()
- del = false
- atkd = false
- chara.Humanoid.WalkSpeed = 0
- chatfunc("Berserk UP!")
- berserkmode = true
- local jtrace = Instance.new("Part",game.Workspace)
- jtrace.Size = Vector3.new(0,0,0)
- jtrace.Position = chara.HumanoidRootPart.Position
- jtrace.CFrame = chara.HumanoidRootPart.CFrame - Vector3.new(0,2,0)
- jtrace.Anchored = true
- StartUpSnd:Play()
- local tmesh = Instance.new("SpecialMesh",jtrace)
- tmesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
- tmesh.Scale = Vector3.new(1,1,1)
- tmesh.Offset = Vector3.new(0,0,-.125)
- local p3mit = Instance.new("ParticleEmitter",chara.Torso)
- p3mit.Rate = 1000
- p3mit.Lifetime = NumberRange.new(1)
- p3mit.EmissionDirection = "Front"
- p3mit.RotSpeed = NumberRange.new(0)
- p3mit.Speed = NumberRange.new(0)
- p3mit.Rotation = NumberRange.new(0)
- p3mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(1,0,0)),ColorSequenceKeypoint.new(1,Color3.new(1,0,0))})
- p3mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,10)})
- p3mit.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.95),NumberSequenceKeypoint.new(1,1)})
- p3mit.Texture = "http://www.roblox.com/asset/?id=144580273"
- p3mit.LockedToPart = true
- p3mit.Acceleration = Vector3.new(0,0,0)
- local p1mit = Instance.new("ParticleEmitter",Hitbox)
- p1mit.Texture = "rbxasset://textures/particles/smoke_main.dds"
- p1mit.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new("Deep orange").Color),ColorSequenceKeypoint.new(1,BrickColor.new("New Yeller").Color)})
- p1mit.LightEmission = 1
- p1mit.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)})
- p1mit.Lifetime = NumberRange.new(1)
- p1mit.Rate = 10000
- p1mit.Rotation = NumberRange.new(0,359)
- p1mit.RotSpeed = NumberRange.new(100)
- p1mit.Speed = NumberRange.new(0)
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF,.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.4+i)
- LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.4+i)
- end
- for i = 1, 10 do
- wait(.01)
- jtrace.Transparency = jtrace.Transparency + .1
- tmesh.Scale = tmesh.Scale + Vector3.new(2,.05,2)
- end
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF,.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-20),0,0),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-50)),.6-i)
- LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,1,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(50)),.6-i)
- end
- jtrace:Destroy()
- local delll = coroutine.wrap(function()
- local delval = 10
- local naeeym2 = Instance.new("BillboardGui",chara)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,5,0)
- naeeym2.Adornee = chara.Head
- naeeym2.Name = "Counter"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.TextColor3 = Color3.new(1,0,0)
- tecks2.TextStrokeColor3 = Color3.new(1,1,0)
- for i = 1, delval*100 do
- delval = delval - .01
- tecks2.Text = "<"..delval..">"
- wait(.01)
- end
- berserkmode = false
- p3mit:Destroy()
- p1mit:Destroy()
- for i = 1, 5 do
- wait(.01)
- tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- end)
- delll()
- chara.Humanoid.WalkSpeed = 24
- del = false
- atkdd = true
- end
- --End Him Rightly--
- function Explosive()
- del = true
- atkd = true
- chatfunc("Take this!")
- for i = 0,.75,.25 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- SwingSnd:Play()
- local missile = Instance.new("Part",game.Workspace)
- missile.Material = "Neon"
- missile.Size = Vector3.new(1,1,1)
- missile.BrickColor = BrickColor.new("Black")
- missile.Name = "Blast"
- missile.Shape = 0
- missile.TopSurface = 0
- missile.BottomSurface = 0
- missile.Position = chara["Right Arm"].Position
- missile.CFrame = chara["Right Arm"].CFrame
- missile.Velocity = (Mouse.Hit.p - chara.HumanoidRootPart.Position).unit*70
- local mesh1 = Instance.new("SpecialMesh",missile)
- mesh1.MeshId = "rbxasset://fonts/timebomb.mesh"
- mesh1.Scale = Vector3.new(.5,.5,.5)
- local force = Instance.new("BodyForce")
- force.force = Vector3.new(0,missile:GetMass()*game.Workspace.Gravity,0)
- force.Parent = missile
- debby:AddItem(force,.1)
- -- local bfo = Instance.new("BodyVelocity",missile)
- -- bfo.P = 100000
- -- bfo.MaxForce = Vector3.new(bfo.P,bfo.P,bfo.P)
- -- bfo.Velocity = (chara.HumanoidRootPart.CFrame.lookVector*100)+(chara.HumanoidRootPart.CFrame.rightVector*i)
- -- debby:AddItem(bfo,1)
- local deto = coroutine.wrap(function()
- wait(.5)
- for i = 1, 3 do
- PlaySnd(TargetSnd,missile)
- missile.BrickColor = BrickColor.new("Bright red")
- wait(.1)
- missile.BrickColor = BrickColor.new("Black")
- end
- wait(.1)
- mesh1.MeshId = ""
- mesh1.MeshType = "Sphere"
- mesh1.Scale = Vector3.new(1,1,1)
- missile.Anchored = true
- missile.BrickColor = BrickColor.new("Bright yellow")
- missile.Material = "Neon"
- ExpSnd:Play()
- ExHitbox(10,missile.Position,25,3,.5)
- for i = 1, 9 do
- mesh1.Scale = mesh1.Scale + Vector3.new(3,3,3)
- missile.Transparency = missile.Transparency + .1
- wait(.01)
- end
- missile:Destroy()
- end)
- deto()
- wait(.5)
- for i = 0,.6,.2 do
- wait(.01)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- del = false
- atkdd = true
- end
- --Lock On--
- function LockOn()
- if Mouse.Target.Parent ~= chara and Mouse.Target.Parent.Parent ~= chara and Mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
- TargetSelect(Mouse.Target.Parent)
- TargetSnd:Play()
- wait(.05)
- TargetSnd:Play()
- else end
- end
- --Block--
- blockval = false
- healthlock = 0
- effeff = nil
- function ToggleBlock()
- if blockval == false then
- del = true
- blockval = true
- SwingSnd:Play()
- healthlock = chara.Humanoid.Health
- effeff = Instance.new("ForceField",chara)
- effeff.Name = "FawsFeeld"
- effeff.Visible = false
- for i = 0,.75,.25 do
- wait(.0001)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.4+i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.4+i)
- end
- elseif blockval == true then
- SwingSnd:Play()
- effeff:Destroy()
- blockval = false
- for i = 0,.6,.2 do
- wait(.0001)
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(90)),.6-i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- RW.C0 = clerp(IRWF,(RWF + Vector3.new(.5,1.4,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-90)),.6-i)
- end
- del = false
- atkdd = true
- end
- end
- --Mouse Functions--
- orbpushactive = false
- del = false
- input = ""
- letterd = 0
- ltoim = 0
- function onKeyDown(key)
- if key == "e" then
- ToggleBlock()
- elseif del == false then
- if key == "q" then
- if input == "ad" and targetted ~= nil then
- EndRightly()
- elseif input == "dsadd" and berserkmode == false then
- Berserk()
- elseif input == "asd" then
- Explosive()
- else LockOn() end
- input = ""
- letterd = 0
- ltoim = 0
- elseif key == "z" then
- Punch()
- input = ""
- letterd = 0
- ltoim = 0
- elseif key == "x" then
- if input == "sa" then
- BanditRevolver()
- elseif input == "ss" then
- FlipKick()
- else KickAtk() end
- input = ""
- letterd = 0
- ltoim = 0
- elseif key == "c" then
- if input == "add" then
- IaidoFrost()
- elseif input == "ssad" then
- KnightRush()
- elseif input == "aw" then
- Decapitator()
- elseif input == "dsd" then
- KnightStabs()
- else SlashAtk() end
- input = ""
- letterd = 0
- ltoim = 0
- elseif (key == "w" or key == "a" or key == "s" or key == "d") then
- input=input..key
- print(input)
- letterd = letterd + 1
- ltoim = ltoim + 10
- if letterd > 5 then
- input = ""
- letterd = 0
- ltoim = 0
- end
- elseif key == "m" then
- if Music.IsPlaying == true then
- Music:Stop()
- elseif Music.IsPlaying == false then
- Music:Play()
- end
- end
- end
- end
- combo = 0
- --Mouse Activation--
- if Mouse then
- Mouse.KeyDown:connect(onKeyDown)
- end
- --Loop Function--
- walking = false
- toim = 0
- while true do
- wait()
- addCols()
- toim = toim + .1
- ltoim = ltoim - 1
- if ltoim < 1 then
- input = ""
- end
- if blockval == true then
- chara.Humanoid.Health = healthlock
- end
- if atkd == true then
- TC.C0 = TCF
- HC.C0 = HCF
- RW.C0 = RWF
- LW.C0 = LWF
- atkd = false
- end
- if atkdd == true then
- TC.C0 = ITCF
- HC.C0 = IHCF
- RW.C0 = IRWF
- LW.C0 = ILWF
- atkdd = false
- end
- torvel = (chara.HumanoidRootPart.Velocity*Vector3.new(1,0,1)).magnitude
- if torvel < 1 and walking == true and del == false and atkd == false then
- for i = 0,1,.5 do
- wait(.001)
- if del == false then
- TC.C0 = clerp(TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),ITCF,i)
- HC.C0 = clerp(HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),IHCF,i)
- RW.C0 = IRWF
- LW.C0 = clerp((LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),ILWF,i)
- end
- end
- walking = false
- elseif torvel > 1 and walking == false and del == false and atkd == false then
- for i = 0,1,.5 do
- wait(.001)
- if del == false then
- TC.C0 = clerp(ITCF,TCF * CFrame.fromEulerAnglesXYZ(math.rad(30),0,0),i)
- HC.C0 = clerp(IHCF,HCF * CFrame.fromEulerAnglesXYZ(math.rad(-30),0,0),i)
- RW.C0 = IRWF
- LW.C0 = clerp(ILWF,(LWF + Vector3.new(0,.2,0)) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(20)),i)
- end
- end
- walking = true
- else
- end
- imgl.Rotation = imgl.Rotation + 3
- if targetted ~= nil then
- crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso")
- crosshair.Enabled = true
- elseif targetted == nil then
- crosshair.Adornee = nil
- crosshair.Enabled = false
- end
- end
Add Comment
Please, Sign In to add comment