Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(2.5)
- --SynapseX Decompiler
- repeat
- wait()
- until getfenv(1)
- local CurrentEnvironment = getfenv(1)
- local Player = game:service("Players").LocalPlayer
- local Char = Player.Character
- Char = Char or Player.CharacterAdded:Wait()
- Char.Animate:Destroy()
- Char.Humanoid.Animator:Destroy()
- pcall(function()
- Char.Sound:Destroy()
- end)
- local Mouse = Player:GetMouse()
- local RArm = Char["Right Arm"]
- local LArm = Char["Left Arm"]
- local RLeg = Char["Right Leg"]
- local LLeg = Char["Left Leg"]
- local Torso = Char.Torso
- local RootPart = Char.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local RShoulder = Torso:WaitForChild("Right Shoulder")
- local LShoulder = Torso:WaitForChild("Left Shoulder")
- local RHip = Torso:WaitForChild("Right Hip")
- local LHip = Torso:WaitForChild("Left Hip")
- local Neck = Torso:WaitForChild("Neck")
- local rjdef = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local rsdef = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local lsdef = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local rhdef = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- local lhdef = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- local neckdef = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local Attacking = false
- local Cooldowns = {
- Z = {Current = 0, Max = 10},
- X = {Current = 0, Max = 15},
- C = {Current = 0, Max = 9},
- V = {Current = 0, Max = 19},
- E = {Current = 0, Max = 8}
- }
- local Stat = {
- Mana = 250,
- Speed = 1,
- Defense = 0.9,
- Speed = 1.3,
- Attack = 1
- }
- local ZMove = "Roll"
- local XMove = "Follow"
- local CMove = "Trip"
- local VMove = "Explode"
- local MainUXColor = Color3.fromRGB(90, 0, 255)
- local WG = Instance.new("ScreenGui")
- local Z = Instance.new("Frame")
- local ZCool = Instance.new("Frame")
- local Letter = Instance.new("TextLabel")
- local MoveName = Instance.new("TextLabel")
- local Aero = Instance.new("ImageLabel")
- local X = Instance.new("Frame")
- local ZCool_2 = Instance.new("Frame")
- local Letter_2 = Instance.new("TextLabel")
- local MoveName_2 = Instance.new("TextLabel")
- local Aero_2 = Instance.new("ImageLabel")
- local C = Instance.new("Frame")
- local ZCool_3 = Instance.new("Frame")
- local Letter_3 = Instance.new("TextLabel")
- local MoveName_3 = Instance.new("TextLabel")
- local Aero_3 = Instance.new("ImageLabel")
- local V = Instance.new("Frame")
- local ZCool_4 = Instance.new("Frame")
- local Letter_4 = Instance.new("TextLabel")
- local MoveName_4 = Instance.new("TextLabel")
- local Aero_4 = Instance.new("ImageLabel")
- local Mana = Instance.new("Frame")
- local ZCool_5 = Instance.new("Frame")
- local Aero_5 = Instance.new("ImageLabel")
- local Stats = Instance.new("Frame")
- local Attack = Instance.new("Frame")
- local Head = Instance.new("TextLabel")
- local Val = Instance.new("TextLabel")
- local Defense = Instance.new("Frame")
- local Head_2 = Instance.new("TextLabel")
- local Val_2 = Instance.new("TextLabel")
- local Speed = Instance.new("Frame")
- local Head_3 = Instance.new("TextLabel")
- local Val_3 = Instance.new("TextLabel")
- local Health = Instance.new("Frame")
- local Head_4 = Instance.new("TextLabel")
- local Val_4 = Instance.new("TextLabel")
- local Smile = Instance.new("Frame")
- local Head_5 = Instance.new("TextLabel")
- local Val_5 = Instance.new("TextLabel")
- local Aero_6 = Instance.new("ImageLabel")
- WG.Name = "UX"
- WG.Parent = Player.PlayerGui
- Z.Name = "Z"
- Z.Parent = WG
- Z.BackgroundColor3 = MainUXColor
- Z.BackgroundTransparency = 0.80000001192093
- Z.BorderColor3 = MainUXColor
- Z.BorderSizePixel = 2
- Z.Position = UDim2.new(1, -190, 1, -90)
- Z.Size = UDim2.new(0, 180, 0, 80)
- ZCool.Name = "ZCool"
- ZCool.Parent = Z
- ZCool.BackgroundColor3 = MainUXColor
- ZCool.BackgroundTransparency = 0.5
- ZCool.BorderColor3 = Color3.new(0.286275, 0.866667, 0.866667)
- ZCool.BorderSizePixel = 0
- ZCool.Size = UDim2.new(1, 0, 1, 0)
- Letter.Name = "Letter"
- Letter.Parent = Z
- Letter.BackgroundColor3 = Color3.new(1, 1, 1)
- Letter.BackgroundTransparency = 1
- Letter.BorderSizePixel = 0
- Letter.Size = UDim2.new(1, 0, 0, 50)
- Letter.Font = Enum.Font.SourceSansBold
- Letter.FontSize = Enum.FontSize.Size32
- Letter.Text = "[Z]"
- Letter.TextColor3 = Color3.new(1, 1, 1)
- Letter.TextSize = 30
- MoveName.Name = "MoveName"
- MoveName.Parent = Z
- MoveName.BackgroundColor3 = Color3.new(1, 1, 1)
- MoveName.BackgroundTransparency = 1
- MoveName.BorderSizePixel = 0
- MoveName.Position = UDim2.new(0, 0, 0, 45)
- MoveName.Size = UDim2.new(1, 0, 0, 30)
- MoveName.Font = Enum.Font.SourceSansBold
- MoveName.FontSize = Enum.FontSize.Size28
- MoveName.Text = ZMove
- MoveName.TextColor3 = Color3.new(1, 1, 1)
- MoveName.TextSize = 25
- Aero.Name = "Aero"
- Aero.Parent = Z
- Aero.BackgroundColor3 = Color3.new(1, 1, 1)
- Aero.BackgroundTransparency = 1
- Aero.Position = UDim2.new(0, -5, 0, -5)
- Aero.Size = UDim2.new(1, 10, 1, 10)
- Aero.Image = "rbxassetid://892210479"
- Aero.ScaleType = Enum.ScaleType.Slice
- Aero.SliceCenter = Rect.new(6, 6, 25, 25)
- X.Name = "X"
- X.Parent = WG
- X.BackgroundColor3 = MainUXColor
- X.BackgroundTransparency = 0.80000001192093
- X.BorderColor3 = MainUXColor
- X.BorderSizePixel = 2
- X.Position = UDim2.new(1, -190, 1, -180)
- X.Size = UDim2.new(0, 180, 0, 80)
- ZCool_2.Name = "ZCool"
- ZCool_2.Parent = X
- ZCool_2.BackgroundColor3 = MainUXColor
- ZCool_2.BackgroundTransparency = 0.5
- ZCool_2.BorderColor3 = Color3.new(0.286275, 0.866667, 0.866667)
- ZCool_2.BorderSizePixel = 0
- ZCool_2.Size = UDim2.new(1, 0, 1, 0)
- Letter_2.Name = "Letter"
- Letter_2.Parent = X
- Letter_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Letter_2.BackgroundTransparency = 1
- Letter_2.BorderSizePixel = 0
- Letter_2.Size = UDim2.new(1, 0, 0, 50)
- Letter_2.Font = Enum.Font.SourceSansBold
- Letter_2.FontSize = Enum.FontSize.Size32
- Letter_2.Text = "[X]"
- Letter_2.TextColor3 = Color3.new(1, 1, 1)
- Letter_2.TextSize = 30
- MoveName_2.Name = "MoveName"
- MoveName_2.Parent = X
- MoveName_2.BackgroundColor3 = Color3.new(1, 1, 1)
- MoveName_2.BackgroundTransparency = 1
- MoveName_2.BorderSizePixel = 0
- MoveName_2.Position = UDim2.new(0, 0, 0, 45)
- MoveName_2.Size = UDim2.new(1, 0, 0, 30)
- MoveName_2.Font = Enum.Font.SourceSansBold
- MoveName_2.FontSize = Enum.FontSize.Size28
- MoveName_2.Text = XMove
- MoveName_2.TextColor3 = Color3.new(1, 1, 1)
- MoveName_2.TextSize = 25
- Aero_2.Name = "Aero"
- Aero_2.Parent = X
- Aero_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Aero_2.BackgroundTransparency = 1
- Aero_2.Position = UDim2.new(0, -5, 0, -5)
- Aero_2.Size = UDim2.new(1, 10, 1, 10)
- Aero_2.Image = "rbxassetid://892210479"
- Aero_2.ScaleType = Enum.ScaleType.Slice
- Aero_2.SliceCenter = Rect.new(6, 6, 25, 25)
- C.Name = "C"
- C.Parent = WG
- C.BackgroundColor3 = MainUXColor
- C.BackgroundTransparency = 0.80000001192093
- C.BorderColor3 = MainUXColor
- C.BorderSizePixel = 2
- C.Position = UDim2.new(1, -190, 1, -270)
- C.Size = UDim2.new(0, 180, 0, 80)
- ZCool_3.Name = "ZCool"
- ZCool_3.Parent = C
- ZCool_3.BackgroundColor3 = MainUXColor
- ZCool_3.BackgroundTransparency = 0.5
- ZCool_3.BorderColor3 = Color3.new(0.286275, 0.866667, 0.866667)
- ZCool_3.BorderSizePixel = 0
- ZCool_3.Size = UDim2.new(1, 0, 1, 0)
- Letter_3.Name = "Letter"
- Letter_3.Parent = C
- Letter_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Letter_3.BackgroundTransparency = 1
- Letter_3.BorderSizePixel = 0
- Letter_3.Size = UDim2.new(1, 0, 0, 50)
- Letter_3.Font = Enum.Font.SourceSansBold
- Letter_3.FontSize = Enum.FontSize.Size32
- Letter_3.Text = "[C]"
- Letter_3.TextColor3 = Color3.new(1, 1, 1)
- Letter_3.TextSize = 30
- MoveName_3.Name = "MoveName"
- MoveName_3.Parent = C
- MoveName_3.BackgroundColor3 = Color3.new(1, 1, 1)
- MoveName_3.BackgroundTransparency = 1
- MoveName_3.BorderSizePixel = 0
- MoveName_3.Position = UDim2.new(0, 0, 0, 45)
- MoveName_3.Size = UDim2.new(1, 0, 0, 30)
- MoveName_3.Font = Enum.Font.SourceSansBold
- MoveName_3.FontSize = Enum.FontSize.Size28
- MoveName_3.Text = CMove
- MoveName_3.TextColor3 = Color3.new(1, 1, 1)
- MoveName_3.TextSize = 25
- Aero_3.Name = "Aero"
- Aero_3.Parent = C
- Aero_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Aero_3.BackgroundTransparency = 1
- Aero_3.Position = UDim2.new(0, -5, 0, -5)
- Aero_3.Size = UDim2.new(1, 10, 1, 10)
- Aero_3.Image = "rbxassetid://892210479"
- Aero_3.ScaleType = Enum.ScaleType.Slice
- Aero_3.SliceCenter = Rect.new(6, 6, 25, 25)
- V.Name = "V"
- V.Parent = WG
- V.BackgroundColor3 = MainUXColor
- V.BackgroundTransparency = 0.80000001192093
- V.BorderColor3 = MainUXColor
- V.BorderSizePixel = 2
- V.Position = UDim2.new(1, -190, 1, -360)
- V.Size = UDim2.new(0, 180, 0, 80)
- ZCool_4.Name = "ZCool"
- ZCool_4.Parent = V
- ZCool_4.BackgroundColor3 = MainUXColor
- ZCool_4.BackgroundTransparency = 0.5
- ZCool_4.BorderColor3 = Color3.new(0.286275, 0.866667, 0.866667)
- ZCool_4.BorderSizePixel = 0
- ZCool_4.Size = UDim2.new(1, 0, 1, 0)
- Letter_4.Name = "Letter"
- Letter_4.Parent = V
- Letter_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Letter_4.BackgroundTransparency = 1
- Letter_4.BorderSizePixel = 0
- Letter_4.Size = UDim2.new(1, 0, 0, 50)
- Letter_4.Font = Enum.Font.SourceSansBold
- Letter_4.FontSize = Enum.FontSize.Size32
- Letter_4.Text = "[V]"
- Letter_4.TextColor3 = Color3.new(1, 1, 1)
- Letter_4.TextSize = 30
- MoveName_4.Name = "MoveName"
- MoveName_4.Parent = V
- MoveName_4.BackgroundColor3 = Color3.new(1, 1, 1)
- MoveName_4.BackgroundTransparency = 1
- MoveName_4.BorderSizePixel = 0
- MoveName_4.Position = UDim2.new(0, 0, 0, 45)
- MoveName_4.Size = UDim2.new(1, 0, 0, 30)
- MoveName_4.Font = Enum.Font.SourceSansBold
- MoveName_4.FontSize = Enum.FontSize.Size28
- MoveName_4.Text = VMove
- MoveName_4.TextColor3 = Color3.new(1, 1, 1)
- MoveName_4.TextSize = 25
- Aero_4.Name = "Aero"
- Aero_4.Parent = V
- Aero_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Aero_4.BackgroundTransparency = 1
- Aero_4.Position = UDim2.new(0, -5, 0, -5)
- Aero_4.Size = UDim2.new(1, 10, 1, 10)
- Aero_4.Image = "rbxassetid://892210479"
- Aero_4.ScaleType = Enum.ScaleType.Slice
- Aero_4.SliceCenter = Rect.new(6, 6, 25, 25)
- Mana.Name = "Mana"
- Mana.Parent = WG
- Mana.BackgroundColor3 = MainUXColor
- Mana.BackgroundTransparency = 0.80000001192093
- Mana.BorderColor3 = MainUXColor
- Mana.BorderSizePixel = 2
- Mana.Position = UDim2.new(1, -210, 1, -150)
- Mana.Size = UDim2.new(0, 10, 0, 150)
- ZCool_5.Name = "ZCool"
- ZCool_5.Parent = Mana
- ZCool_5.BackgroundColor3 = MainUXColor
- ZCool_5.BackgroundTransparency = 0.5
- ZCool_5.BorderColor3 = Color3.new(0.286275, 0.866667, 0.866667)
- ZCool_5.BorderSizePixel = 0
- ZCool_5.Position = UDim2.new(0, 0, 1, 0)
- ZCool_5.Size = UDim2.new(1, 0, 0, 0)
- Aero_5.Name = "Aero"
- Aero_5.Parent = Mana
- Aero_5.BackgroundColor3 = Color3.new(1, 1, 1)
- Aero_5.BackgroundTransparency = 1
- Aero_5.Position = UDim2.new(0, -5, 0, -5)
- Aero_5.Size = UDim2.new(1, 10, 1, 10)
- Aero_5.Image = "rbxassetid://892210479"
- Aero_5.ScaleType = Enum.ScaleType.Slice
- Aero_5.SliceCenter = Rect.new(6, 6, 25, 25)
- Stats.Name = "Stats"
- Stats.Parent = WG
- Stats.BackgroundColor3 = MainUXColor
- Stats.BackgroundTransparency = 0.62999999523163
- Stats.BorderColor3 = MainUXColor
- Stats.BorderSizePixel = 2
- Stats.Position = UDim2.new(1, -320, 1, -360)
- Stats.Size = UDim2.new(0, 100, 0, 350)
- Attack.Name = "Attack"
- Attack.Parent = Stats
- Attack.BackgroundColor3 = MainUXColor
- Attack.BorderColor3 = MainUXColor
- Attack.BorderSizePixel = 0
- Attack.Position = UDim2.new(0, 10, 0, 10)
- Attack.Size = UDim2.new(0, 80, 0, 50)
- Head.Name = "Head"
- Head.Parent = Attack
- Head.BackgroundColor3 = Color3.new(1, 1, 1)
- Head.BackgroundTransparency = 1
- Head.BorderSizePixel = 0
- Head.Size = UDim2.new(1, 0, 0, 20)
- Head.Font = Enum.Font.SourceSans
- Head.FontSize = Enum.FontSize.Size14
- Head.Text = "Attack"
- Head.TextColor3 = Color3.new(1, 1, 1)
- Head.TextSize = 14
- Val.Name = "Val"
- Val.Parent = Attack
- Val.BackgroundColor3 = Color3.new(1, 1, 1)
- Val.BackgroundTransparency = 1
- Val.BorderSizePixel = 0
- Val.Position = UDim2.new(0, 0, 0, 20)
- Val.Size = UDim2.new(1, 0, 0, 20)
- Val.Font = Enum.Font.SourceSansBold
- Val.FontSize = Enum.FontSize.Size24
- Val.Text = "1"
- Val.TextColor3 = Color3.new(1, 1, 1)
- Val.TextSize = 20
- Defense.Name = "Defense"
- Defense.Parent = Stats
- Defense.BackgroundColor3 = MainUXColor
- Defense.BorderColor3 = MainUXColor
- Defense.BorderSizePixel = 0
- Defense.Position = UDim2.new(0, 10, 0, 70)
- Defense.Size = UDim2.new(0, 80, 0, 50)
- Head_2.Name = "Head"
- Head_2.Parent = Defense
- Head_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Head_2.BackgroundTransparency = 1
- Head_2.BorderSizePixel = 0
- Head_2.Size = UDim2.new(1, 0, 0, 20)
- Head_2.Font = Enum.Font.SourceSans
- Head_2.FontSize = Enum.FontSize.Size14
- Head_2.Text = "Defense"
- Head_2.TextColor3 = Color3.new(1, 1, 1)
- Head_2.TextSize = 14
- Val_2.Name = "Val"
- Val_2.Parent = Defense
- Val_2.BackgroundColor3 = Color3.new(1, 1, 1)
- Val_2.BackgroundTransparency = 1
- Val_2.BorderSizePixel = 0
- Val_2.Position = UDim2.new(0, 0, 0, 20)
- Val_2.Size = UDim2.new(1, 0, 0, 20)
- Val_2.Font = Enum.Font.SourceSansBold
- Val_2.FontSize = Enum.FontSize.Size24
- Val_2.Text = "1"
- Val_2.TextColor3 = Color3.new(1, 1, 1)
- Val_2.TextSize = 20
- Speed.Name = "Speed"
- Speed.Parent = Stats
- Speed.BackgroundColor3 = MainUXColor
- Speed.BorderColor3 = MainUXColor
- Speed.BorderSizePixel = 0
- Speed.Position = UDim2.new(0, 10, 0, 130)
- Speed.Size = UDim2.new(0, 80, 0, 50)
- Head_3.Name = "Head"
- Head_3.Parent = Speed
- Head_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Head_3.BackgroundTransparency = 1
- Head_3.BorderSizePixel = 0
- Head_3.Size = UDim2.new(1, 0, 0, 20)
- Head_3.Font = Enum.Font.SourceSans
- Head_3.FontSize = Enum.FontSize.Size14
- Head_3.Text = "Speed"
- Head_3.TextColor3 = Color3.new(1, 1, 1)
- Head_3.TextSize = 14
- Val_3.Name = "Val"
- Val_3.Parent = Speed
- Val_3.BackgroundColor3 = Color3.new(1, 1, 1)
- Val_3.BackgroundTransparency = 1
- Val_3.BorderSizePixel = 0
- Val_3.Position = UDim2.new(0, 0, 0, 20)
- Val_3.Size = UDim2.new(1, 0, 0, 20)
- Val_3.Font = Enum.Font.SourceSansBold
- Val_3.FontSize = Enum.FontSize.Size24
- Val_3.Text = "0.85"
- Val_3.TextColor3 = Color3.new(1, 1, 1)
- Val_3.TextSize = 20
- Health.Name = "Health"
- Health.Parent = Stats
- Health.BackgroundColor3 = MainUXColor
- Health.BorderColor3 = MainUXColor
- Health.BorderSizePixel = 0
- Health.Position = UDim2.new(0, 10, 0, 190)
- Health.Size = UDim2.new(0, 80, 0, 50)
- Head_4.Name = "Head"
- Head_4.Parent = Health
- Head_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Head_4.BackgroundTransparency = 1
- Head_4.BorderSizePixel = 0
- Head_4.Size = UDim2.new(1, 0, 0, 20)
- Head_4.Font = Enum.Font.SourceSans
- Head_4.FontSize = Enum.FontSize.Size14
- Head_4.Text = "Health"
- Head_4.TextColor3 = Color3.new(1, 1, 1)
- Head_4.TextSize = 14
- Val_4.Name = "Val"
- Val_4.Parent = Health
- Val_4.BackgroundColor3 = Color3.new(1, 1, 1)
- Val_4.BackgroundTransparency = 1
- Val_4.BorderSizePixel = 0
- Val_4.Position = UDim2.new(0, 0, 0, 20)
- Val_4.Size = UDim2.new(1, 0, 0, 20)
- Val_4.Font = Enum.Font.SourceSansBold
- Val_4.FontSize = Enum.FontSize.Size24
- Val_4.Text = "100"
- Val_4.TextColor3 = Color3.new(1, 1, 1)
- Val_4.TextSize = 20
- Smile.Name = "Smile"
- Smile.Parent = Stats
- Smile.BackgroundColor3 = MainUXColor
- Smile.BorderColor3 = MainUXColor
- Smile.BorderSizePixel = 0
- Smile.Position = UDim2.new(0, 10, 0, 250)
- Smile.Size = UDim2.new(0, 80, 0, 90)
- Head_5.Name = "Head"
- Head_5.Parent = Smile
- Head_5.BackgroundColor3 = Color3.new(1, 1, 1)
- Head_5.BackgroundTransparency = 1
- Head_5.BorderSizePixel = 0
- Head_5.Size = UDim2.new(1, 0, 0, 20)
- Head_5.Font = Enum.Font.SourceSans
- Head_5.FontSize = Enum.FontSize.Size14
- Head_5.Text = "FPS"
- Head_5.TextColor3 = Color3.new(1, 1, 1)
- Head_5.TextSize = 14
- Val_5.Name = "Val"
- Val_5.Parent = Smile
- Val_5.BackgroundColor3 = Color3.new(1, 1, 1)
- Val_5.BackgroundTransparency = 1
- Val_5.BorderSizePixel = 0
- Val_5.Position = UDim2.new(0, 0, 0, 35)
- Val_5.Rotation = 90
- Val_5.Size = UDim2.new(1, 0, 0, 20)
- Val_5.Font = Enum.Font.SourceSansBold
- Val_5.FontSize = Enum.FontSize.Size24
- Val_5.Text = ":)"
- Val_5.TextColor3 = Color3.new(1, 1, 1)
- Val_5.TextSize = 20
- Aero_6.Name = "Aero"
- Aero_6.Parent = Stats
- Aero_6.BackgroundColor3 = Color3.new(1, 1, 1)
- Aero_6.BackgroundTransparency = 1
- Aero_6.Position = UDim2.new(0, -5, 0, -5)
- Aero_6.Size = UDim2.new(1, 10, 1, 10)
- Aero_6.Image = "rbxassetid://892210479"
- Aero_6.ScaleType = Enum.ScaleType.Slice
- Aero_6.SliceCenter = Rect.new(6, 6, 25, 25)
- local ZCooldown = ZCool
- local XCooldown = ZCool_2
- local CCooldown = ZCool_3
- local VCooldown = ZCool_4
- function Protect(func)
- pcall(function()
- func()
- end)
- end
- function ReturnFunctionStatus(func)
- local a, b = ypcall(function()
- func()
- end)
- return {a, b}
- end
- function rayCast(Pos, Dir, Max, Ignore)
- return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- TrompUtility = {
- CurrentlyRunning = {},
- Create = function(ClassType)
- local InstanceToCreate = Instance.new(ClassType)
- return function(GetProperties)
- local FunctionCache = {}
- for i, v in pairs(GetProperties) do
- if i ~= "Parent" and type(v) ~= "function" then
- InstanceToCreate[i] = v
- elseif type(v) == "function" then
- table.insert(FunctionCache, v)
- end
- end
- Protect(function()
- InstanceToCreate.Parent = GetProperties.Parent
- end)
- for i, v in pairs(FunctionCache) do
- spawn(function()
- v(InstanceToCreate)
- end)
- end
- return InstanceToCreate
- end
- end,
- Destroy = function(InstanceToDestroy)
- repeat
- InstanceToDestroy.Parent = nil
- wait()
- until InstanceToDestroy.Parent == nil
- InstanceToDestroy:Destroy()
- end,
- HookToScript = function(i, v)
- TrompUtility.CurrentlyRunning[i] = v
- spawn(function()
- TrompUtility.CurrentlyRunning[i]()
- end)
- end,
- UnhookFromScript = function(i)
- pcall(function()
- TrompUtility.CurrentlyRunning[i]:Disconnect()
- end)
- TrompUtility.CurrentlyRunning[i] = nil
- end,
- CreateTerrain = function(Origin, Size, Material, Time)
- local Terrain = workspace.Terrain
- Terrain:FillBlock(Origin, Size, Material)
- if Time then
- delay(Time, function()
- Terrain:Clear()
- end)
- end
- end
- }
- Create = TrompUtility.Create
- function Cooldown(Letter)
- if Letter == "Z" then
- Cooldowns.Z.Current = 0
- elseif Letter == "X" then
- Cooldowns.X.Current = 0
- elseif Letter == "C" then
- Cooldowns.C.Current = 0
- elseif Letter == "V" then
- Cooldowns.V.Current = 0
- end
- end
- function Weld(Part, SecondPart)
- local w = TrompUtility.Create("Weld")({
- Parent = SecondPart,
- Part0 = SecondPart,
- Part1 = Part,
- C0 = SecondPart.CFrame:inverse() * Part.CFrame
- })
- return w
- end
- function WeldWeapon(Directory)
- local Handle = Directory.Handle
- Handle.CanCollide = false
- Handle.Anchored = false
- for i, v in pairs(Directory:children()) do
- if v ~= Handle and v.className ~= "LocalScript" then
- v.CanCollide = false
- v.Anchored = false
- Weld(Handle, v)
- end
- end
- Directory.Parent = Char
- return Handle
- end
- Beat = TrompUtility.Create("BindableEvent")({})
- FramesFiredPerSecond = 120
- ButterAnim = FramesFiredPerSecond / 60
- TotalFramesFired = 0
- StartWeapon = game["Run Service"].RenderStepped:connect(function(CurrentFrame)
- TotalFramesFired = TotalFramesFired + CurrentFrame
- if CurrentFrame <= TotalFramesFired then
- for i = 1, TotalFramesFired / (1 / FramesFiredPerSecond) do
- Beat:Fire()
- end
- end
- TotalFramesFired = TotalFramesFired - 1 / FramesFiredPerSecond * math.floor(TotalFramesFired / (1 / FramesFiredPerSecond))
- end)
- TrueWait = wait
- function wait(num)
- if num == 0 or num == nil then
- Beat.Event:wait()
- else
- for i = 1, math.floor(num) do
- Beat.Event:wait()
- end
- end
- end
- function Debris(Item, Time)
- game.Debris:AddItem(Item, Time or 10)
- end
- function Tween(R1, R2, R3)
- game:service("TweenService"):Create(R1, R2, R3):Play()
- end
- function _Damage(HitBox, Range, Min, Max, Type, Intensity, HitSound, SoundProps)
- for i, v in pairs(workspace:children()) do
- if not (v:FindFirstChild("Humanoid") and v:FindFirstChild("Torso") and v ~= Char and Range >= (HitBox.Position - v.Torso.Position).magnitude) or v.Torso:FindFirstChild("Damaged") and v.Torso:FindFirstChild("Damaged").Value == Player then
- else
- Debris(Create("ObjectValue")({
- Name = "Damaged",
- Value = Player,
- Parent = v.Torso
- }), 0.3)
- do
- local Damage = math.random(Min, Max)
- v.Humanoid.Health = v.Humanoid.Health - Damage
- pcall(function()
- if not (v.Humanoid.Health <= 0) or v.Name == "Hologram" or v.Torso:FindFirstChild("JustSpree") and v.Torso.JustSpree.Value == Char then
- else
- game.Players.LocalPlayer.leaderstats.Spree.Value = game.Players.LocalPlayer.leaderstats.Spree.Value + 1
- Create("ObjectValue")({
- Name = "JustSpree",
- Value = Char,
- Parent = v.Torso
- })
- end
- end)
- spawn(function()
- local Part = TrompUtility.Create("Part")({
- Name = "DamageHit",
- Anchored = true,
- CanCollide = false,
- CFrame = v.Head.CFrame * CFrame.new(0, 3, 0),
- Transparency = 1,
- Parent = Torso
- })
- local x = TrompUtility.Create("BillboardGui")({
- Adornee = Part,
- Size = UDim2.new(1, 0, 1, 0),
- Parent = Part
- })
- local xx = TrompUtility.Create("TextLabel")({
- Transparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- TextColor3 = MainUXColor,
- TextScaled = true,
- Text = Damage,
- Parent = x,
- function(ReturnedObj)
- ReturnedObj:TweenPosition(UDim2.new(0, 0, -2, 0), "InOut", "Linear", 2)
- end,
- function(ReturnedObj)
- spawn(function()
- for i = 0, 1, 0.008333333333333333 do
- ReturnedObj.TextTransparency = i
- wait()
- end
- Part:Destroy()
- end)
- end
- })
- end)
- if Type == "Knockdown" then
- v.Humanoid.PlatformStand = true
- spawn(function()
- TrueWait(Intensity.Down)
- v.Humanoid.PlatformStand = false
- end)
- local Dir = (HitBox.Position - v.Torso.Position).unit
- Debris(Create("BodyAngularVelocity")({
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = v.Torso
- }), 0.5)
- Debris(Create("BodyVelocity")({
- velocity = Dir * Intensity.Intensity,
- P = 5000,
- maxForce = Vector3.new(8000, 8000, 8000),
- Parent = v.Torso
- }), 0.5)
- end
- if HitSound == true and SoundProps then
- Create("Sound")({
- Volume = SoundProps.Volume,
- Pitch = SoundProps.Pitch,
- SoundId = "rbxassetid://" .. SoundProps.SoundId,
- function(x)
- x:Play()
- x.Ended:wait()
- x:Destroy()
- end,
- Parent = Torso
- })
- end
- end
- end
- end
- end
- function ReturnPlayerFromMousePoint()
- for i, v in pairs(workspace:children()) do
- if v:FindFirstChild("Torso") and v:FindFirstChild("HumanoidRootPart") and (v.Torso.Position - Mouse.Hit.p).magnitude <= 12 then
- return true, v
- end
- end
- return false, nil
- end
- function Animate(a, b, c)
- return a:lerp(b, c)
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- local RW = Torso["Right Shoulder"]
- local LW = Torso["Left Shoulder"]
- local RH = Torso["Right Hip"]
- local LH = Torso["Left Hip"]
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
- RW.C0 = CFrame.new(1.5, 0, 0)
- RW.C1 = CFrame.new(0, 0, 0)
- LW.C0 = CFrame.new(-1.5, 0, 0)
- LW.C1 = CFrame.new(0, 0, 0)
- RH.C0 = CFrame.new(0.5, -2, 0)
- RH.C1 = CFrame.new(0, 0, 0)
- LH.C0 = CFrame.new(-0.5, -2, 0)
- LH.C1 = CFrame.new(0, 0, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function PlayAnimation(table, speed, bool)
- RootJoint.C0 = Animate(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = Animate(Torso.Neck.C0, table[2], speed)
- RW.C0 = Animate(RW.C0, table[3], speed)
- LW.C0 = Animate(LW.C0, table[4], speed)
- RH.C0 = Animate(RH.C0, table[5], speed)
- LH.C0 = Animate(LH.C0, table[6], speed)
- if bool == true and resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- local DetectionService = game:service("UserInputService")
- local CurrentClick = "0"
- DetectionService.InputBegan:connect(function(Key, GUI)
- if not GUI and not Attacking then
- if Key.KeyCode == Enum.KeyCode.Z and Cooldowns.Z.Current >= Cooldowns.Z.Max then
- Z()
- elseif Key.KeyCode == Enum.KeyCode.X and Cooldowns.X.Current >= Cooldowns.X.Max then
- X()
- elseif Key.KeyCode == Enum.KeyCode.C and Cooldowns.C.Current >= Cooldowns.C.Max then
- C()
- elseif Key.KeyCode == Enum.KeyCode.V and Cooldowns.V.Current >= Cooldowns.V.Max then
- V()
- elseif Key.KeyCode == Enum.KeyCode.T and Cooldowns.T.Current >= Cooldowns.T.Max then
- T()
- end
- if Key.UserInputType == Enum.UserInputType.MouseButton1 and Stat.Mana >= 8 then
- Stat.Mana = Stat.Mana - 8
- CurrentClick = tostring(tonumber(CurrentClick) + 1)
- if Clicks[CurrentClick] ~= nil then
- Clicks[CurrentClick]()
- else
- CurrentClick = "1"
- Clicks[CurrentClick]()
- end
- end
- end
- end)
- function Z()
- Cooldown("Z")
- Attacking = true
- Debris(Create("Sound")({
- SoundId = "rbxassetid://1086317292",
- Volume = 1,
- Pitch = 0.8,
- Parent = Torso,
- function(x)
- x:Play()
- end
- }), 1)
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = RootPart.CFrame * CFrame.new(0, 0, -0.1)
- PlayAnimation({
- CFrame.new(0, -0.462237239, -0.194251552, 0.99999994, 0, 0, 0, 0.515038073, 0.857167244, 0, -0.857167244, 0.515038073) * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-50 * i), 0, 0),
- CFrame.new(0, 1.50002873, -4.76837158E-6, 0.999999881, 0, 0, 0, 0.515038013, -0.857167304, 0, 0.857167304, 0.515038013) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.50598001, 1.57415926, -0.383325875, 1.00000918, 3.72558473E-9, -1.48989168E-8, -1.77064379E-7, -0.920503199, -0.390731066, -4.26671733E-7, 0.390731692, -0.920504808) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.49999976, 1.50199747, -0.216993421, 0.999999881, 0, 0, 0, -0.927183747, -0.374606609, 0, 0.374606609, -0.927183747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.548986971, -1.99996996, 6.0802904E-8, 0.996194601, -0.0871557295, -3.80969789E-9, 0.0871557295, 0.996194661, 0, 0, -2.98023224E-8, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.572005928, -1.99997759, -5.83785322E-8, 0.994521737, 0.104528643, 4.56909177E-9, -0.104528636, 0.994521737, 0, -7.4505806E-9, 2.98023224E-8, 0.999999881) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- wait()
- end
- local OriginalCFrame = RootPart.CFrame
- for i = 0, 1, 0.05 / ButterAnim do
- RootPart.CFrame = OriginalCFrame:Lerp(OriginalCFrame * CFrame.new(0, 0, -20), i)
- PlayAnimation({
- CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-80 + -280 * i), 0, 0),
- CFrame.new(0, 1.4668324, -0.170802414, 1, 0, 0, 0, 0.981627166, 0.19080916, 0, -0.19080916, 0.981627166) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.98996079, -0.0218329132, -0.6663118, 0.874628127, 0.484814078, -1.19417791E-8, -0.291765273, 0.526358724, -0.798634589, -0.387185305, 0.698502064, 0.601815999) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.994987071, -0.185476243, -0.423634827, 0.866025448, -0.5, 0, 0.419335276, 0.726310074, -0.544639051, 0.272319525, 0.471671253, 0.838670552) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.5, -1.22397435, -0.644997835, 1, 0, 0, 0, 0.798635602, 0.601814866, 0, -0.601814866, 0.798635602) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.492004395, -1.17297792, -0.638996005, 1, 0, 0, 0, 0.788011014, 0.615661263, 0, -0.615661263, 0.788011014) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- wait()
- end
- Attacking = false
- end
- function X()
- Cooldown("X")
- Attacking = true
- local OwOFrame = RootPart.CFrame
- for i = 0, 1, 0.1 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(6.7451205E-30, -0.145691901, 0.0418117344, 1, 4.23047176E-30, 1.40088677E-28, 6.11343428E-30, 0.997276366, -0.0737560317, -1.40019127E-28, 0.0737560317, 0.997276366) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.52072847, -0.0124144852, 1, 0, 0, 0, 0.989424109, 0.145052046, 0, -0.145052046, 0.989424109) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.4264636, 0.676257014, -0.803507328, 0.982085466, 0.0666938722, 0.176238552, 0.158618093, -0.797496259, -0.582099795, 0.101727091, 0.599626422, -0.793788314) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.43111348, 0.68143189, -0.886562645, 0.984708786, -0.127944589, -0.118231624, -0.173451647, -0.78324908, -0.597022176, -0.0162190665, 0.608400404, -0.793464541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.701183796, -1.93535566, 0.0136817694, 0.990505636, -0.0624382794, -0.122475341, 0.0834109634, 0.981137514, 0.174390078, 0.109276533, -0.182950139, 0.977030277) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.676286519, -1.92408538, -0.00413977355, 0.998076737, 0.0618678555, 0.00390684465, -0.0619910806, 0.99605459, 0.0635022596, 3.73180956E-5, -0.0636223108, 0.997974157) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- end
- for i = 1, 2 do
- for i = 0, 1, 0.15 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(9.88198717E-30, -0.109396927, 0.0657995567, 1, -5.46900157E-30, 1.40045777E-28, 6.11343428E-30, 0.99998945, -0.00460200245, -1.40019127E-28, 0.00460200245, 0.99998945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.52072453, -0.0124159157, 1, 0, 0, 0, 0.998223484, 0.0595824681, 0, -0.0595824681, 0.998223484) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.29629803, 0.509917736, -0.957461894, 0.986506879, 0.0460915715, 0.15709807, 0.155821443, 0.0301162787, -0.987326026, -0.0502386168, 0.998483241, 0.0225278586) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.34482396, 0.523314059, -1.11249745, 0.965608776, -0.0180529412, -0.259371907, -0.25910449, 0.0158828255, -0.965718746, 0.0215536244, 0.999710917, 0.010658998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.709444165, -1.94071782, -0.0571562648, 0.990507245, -0.0744293109, -0.1155672, 0.0834127292, 0.993693054, 0.0749435872, 0.109260328, -0.0838719383, 0.990468562) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.676674545, -1.93025672, -0.101128109, 0.998076737, 0.0619362369, 0.00261625904, -0.0619914643, 0.99716115, 0.0427393951, 3.82853614E-5, -0.042819377, 0.999082923) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, 0.3, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun, i)
- end
- do
- local Bullet = Create("Part")({
- Parent = Torso,
- Transparency = 1,
- Material = Enum.Material.Neon,
- Size = Vector3.new(),
- Shape = "Block",
- CanCollide = false,
- Anchored = true,
- Color = BrickColor.new("Dark indigo").Color
- })
- script.ParticleEmitter:Clone().Parent = Bullet
- local Attachment = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, 0.2)
- })
- local Attachment2 = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, -0.2)
- })
- local Trail = Create("Trail")({
- Color = ColorSequence.new(BrickColor.new("Dark indigo").Color),
- LightEmission = 1,
- Texture = "rbxassetid://273819884",
- Transparency = NumberSequence.new(0),
- Attachment0 = Attachment,
- Attachment1 = Attachment2,
- Lifetime = 0.2,
- MinLength = NumberSequence.new(0.1),
- FaceCamera = true,
- Parent = Bullet
- })
- Bullet.CFrame = CFrame.new(WepL.GunPart.Position, Mouse.Hit.p)
- so("rbxassetid://1132403352", WepL.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://936968317", WepL.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://1085143827", WepL.GunPart, 0.5, 1 + math.random())
- spawn(function()
- local Found, PlayerToTarget = ReturnPlayerFromMousePoint()
- if Found == false then
- do
- local FinalPoint = Mouse.Hit
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until not (not hit or hit:IsDescendantOf(Char)) or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- Size = Vector3.new(1, 1, 1),
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 13, 15, "None", nil, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- Size = Vector3.new(),
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = BrickColor.new("Alder").Color
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end
- else
- do
- local FinalPoint = PlayerToTarget.Torso.CFrame
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- FinalPoint = PlayerToTarget.Torso.CFrame
- CurrentPoint = Bullet.CFrame
- Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until hit and hit:IsDescendantOf(PlayerToTarget) or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Size = Vector3.new(1, 1, 1),
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 15, 10, "None", nil, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = BrickColor.new("Alder").Color
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end
- end
- end)
- local OwOFrame = RootPart.CFrame
- for i = 0, 1, 0.2 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(-0.066633299, -0.109397143, 0.19221513, 0.986512244, -7.5297337E-4, -0.163686305, 9.76555192E-30, 0.99998945, -0.00460005179, 0.163688049, 0.00453800708, 0.986501753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(3.28011811E-6, 1.52072442, -0.0124071166, 0.992551327, 2.19140202E-6, 0.1218279, -0.00726049859, 0.998223722, 0.0591344759, -0.121611342, -0.0595785379, 0.990788221) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.27784169, 0.507087946, -0.952387571, 0.967443109, 0.198432624, 0.157094479, 0.149269372, 0.0538923442, -0.98732692, -0.204384059, 0.978631794, 0.0225178637) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.33943355, 0.966184616, -0.646172583, 0.942973018, -0.00855511427, -0.332759827, -0.255603671, -0.658993483, -0.7073856, -0.213234782, 0.75210017, -0.623599648) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.709433317, -1.94071722, -0.0571568608, 0.963943064, -0.0744289309, 0.255488396, 0.0501423329, 0.993693113, 0.100298718, -0.261342108, -0.0838714465, 0.961595595) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.67664957, -1.9302578, -0.101131976, 0.978779674, 0.0619376451, 0.195331424, -0.0690802038, 0.99716109, 0.0299618337, -0.192921147, -0.042819567, 0.980279505) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(-10), 0, 0), i)
- end
- for i = 0, 1, 0.15 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(9.88198717E-30, -0.109396927, 0.0657995567, 1, -5.46900157E-30, 1.40045777E-28, 6.11343428E-30, 0.99998945, -0.00460200245, -1.40019127E-28, 0.00460200245, 0.99998945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.52072453, -0.0124159157, 1, 0, 0, 0, 0.998223484, 0.0595824681, 0, -0.0595824681, 0.998223484) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.29629803, 0.509917736, -0.957461894, 0.986506879, 0.0460915715, 0.15709807, 0.155821443, 0.0301162787, -0.987326026, -0.0502386168, 0.998483241, 0.0225278586) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.34482396, 0.523314059, -1.11249745, 0.965608776, -0.0180529412, -0.259371907, -0.25910449, 0.0158828255, -0.965718746, 0.0215536244, 0.999710917, 0.010658998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.709444165, -1.94071782, -0.0571562648, 0.990507245, -0.0744293109, -0.1155672, 0.0834127292, 0.993693054, 0.0749435872, 0.109260328, -0.0838719383, 0.990468562) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.676674545, -1.93025672, -0.101128109, 0.998076737, 0.0619362369, 0.00261625904, -0.0619914643, 0.99716115, 0.0427393951, 3.82853614E-5, -0.042819377, 0.999082923) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- end
- local Bullet = Create("Part")({
- Parent = Torso,
- Transparency = 1,
- Material = Enum.Material.Neon,
- Size = Vector3.new(),
- Shape = "Block",
- CanCollide = false,
- Anchored = true,
- Color = BrickColor.new("Dark indigo").Color
- })
- script.ParticleEmitter:Clone().Parent = Bullet
- local Attachment = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, 0.2)
- })
- local Attachment2 = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, -0.2)
- })
- local Trail = Create("Trail")({
- Color = ColorSequence.new(BrickColor.new("Dark indigo").Color),
- LightEmission = 1,
- Texture = "rbxassetid://273819884",
- Transparency = NumberSequence.new(0),
- Attachment0 = Attachment,
- Attachment1 = Attachment2,
- Lifetime = 0.2,
- MinLength = NumberSequence.new(0.1),
- FaceCamera = true,
- Parent = Bullet
- })
- Bullet.CFrame = CFrame.new(WepR.GunPart.Position, Mouse.Hit.p)
- so("rbxassetid://1132403352", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://936968317", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://1085143827", WepR.GunPart, 0.5, 1 + math.random())
- spawn(function()
- local Found, PlayerToTarget = ReturnPlayerFromMousePoint()
- if Found == false then
- do
- local FinalPoint = Mouse.Hit
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until not (not hit or hit:IsDescendantOf(Char)) or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(1, 1, 1),
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 13, 15, "None", nil, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- Size = Vector3.new(),
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = BrickColor.new("Alder").Color
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end
- else
- do
- local FinalPoint = PlayerToTarget.Torso.CFrame
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- FinalPoint = PlayerToTarget.Torso.CFrame
- CurrentPoint = Bullet.CFrame
- Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until hit and hit:IsDescendantOf(PlayerToTarget) or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(1, 1, 1),
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 13, 15, "None", nil, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- Size = Vector3.new(),
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = BrickColor.new("Alder").Color
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end
- end
- end)
- for i = 0, 1, 0.2 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0301815942, -0.109396793, 0.169889152, 0.967941225, 0.00115629577, 0.25117442, 1.86791883E-31, 0.99998945, -0.00460350886, -0.251177073, 0.00445592543, 0.967930973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.63279474E-5, 1.52072346, -0.0124289021, 0.965394974, 0.0132031608, -0.260457903, 0.00237753498, 0.998230577, 0.0594148114, 0.260781527, -0.0579780117, 0.963655353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.37223995, 0.853786588, -0.459635526, 0.973726392, 5.57750463E-4, 0.227720797, 0.158650652, -0.719034314, -0.676623762, 0.163361698, 0.694974363, -0.700231254) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.21995497, 0.529918194, -1.09793007, 0.93689847, -0.247262165, -0.247149348, -0.248915553, 0.0246074237, -0.968212605, 0.245483994, 0.968636215, -0.0384927392) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.70944345, -1.94071865, -0.0571592748, 0.963399112, -0.0744298697, -0.257531613, 0.0933707803, 0.993692875, 0.0621006899, 0.251285225, -0.0838736817, 0.964272261) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.676686406, -1.93025804, -0.101134539, 0.967317402, 0.0619349964, -0.245888621, -0.0494015776, 0.997161388, 0.056823194, 0.248710006, -0.0428187847, 0.967631102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.Angles(math.rad(-10), 0, 0), i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun, i)
- end
- end
- end
- Attacking = false
- end
- function C()
- Cooldown("C")
- Attacking = true
- for i = 0, 1, 0.1 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(-0.137036994, -0.512278318, 0.0613622367, 0.883309782, -7.23928864E-8, -0.468789697, -0.0944619775, 0.979488134, -0.177988723, 0.459173888, 0.20150198, 0.865191519) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-7.19726086E-6, 1.4999907, 9.50694084E-6, 0.875569582, -0.111872286, 0.469960213, 1.74425077E-5, 0.972824335, 0.231544703, -0.483092219, -0.202725321, 0.851777315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.323510528, 0.324661076, -1.23929775, 0.743825972, 0.524815202, 0.413874149, 0.359908253, 0.207274288, -0.90967226, -0.563195229, 0.825594544, -0.0347093232) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.496937364, 0.698004484, -0.909043014, 0.507168055, -0.594999015, -0.623503566, -0.860103726, -0.303435564, -0.410059154, 0.0547915846, 0.744246721, -0.665653765) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.09593081, -1.46754241, 0.650105119, 0.825888455, -0.513390243, 0.233106554, 0.138452649, 0.585431516, 0.798812211, -0.546570361, -0.627455592, 0.554581404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.829122424, -1.67726755, -0.240818083, 0.678866208, -0.0796007812, 0.729934514, -0.110706091, 0.971646249, 0.208920732, -0.725868344, -0.222637415, 0.650805533) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(10), 0, 0), i)
- end
- local Bullet = Create("Part")({
- Parent = Torso,
- Transparency = 1,
- Material = Enum.Material.Neon,
- Size = Vector3.new(),
- Shape = "Block",
- CanCollide = false,
- Anchored = true,
- Color = BrickColor.new("Dark indigo").Color
- })
- script.ParticleEmitter:Clone().Parent = Bullet
- local Attachment = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, 0.2)
- })
- local Attachment2 = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, -0.2)
- })
- local Trail = Create("Trail")({
- Color = ColorSequence.new(BrickColor.new("Dark indigo").Color),
- LightEmission = 1,
- Texture = "",
- Transparency = NumberSequence.new(0),
- Attachment0 = Attachment,
- Attachment1 = Attachment2,
- Lifetime = 0.2,
- MinLength = NumberSequence.new(0.1),
- FaceCamera = true,
- Parent = Bullet
- })
- Bullet.CFrame = CFrame.new(WepR.GunPart.Position, Mouse.Hit.p)
- so("rbxassetid://1132403352", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://936968317", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://1085143827", WepR.GunPart, 0.5, 1 + math.random())
- spawn(function()
- local FinalPoint = Mouse.Hit
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until hit or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(1, 1, 1),
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 8, 12, "Knockdown", {Intensity = 5, Down = 0.5}, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- Size = Vector3.new(),
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = Color3.new(0, 0, 0)
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end)
- for i = 0, 1, 0.15 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(-0.137045503, -0.761435628, 0.770907164, 0.883310139, 1.0529871E-7, -0.46878925, -0.210086033, 0.893960476, -0.395851642, 0.419079065, 0.448145777, 0.789644361) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.0305352658, 1.53166354, -0.0553531051, 0.875569403, -0.152405933, 0.458422124, 1.66925602E-5, 0.948941767, 0.315451145, -0.483092487, -0.276191652, 0.830867052) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.444350153, 0.804517627, -1.16782951, 0.764651, 0.602324009, -0.229161292, -0.0522259623, -0.296508014, -0.95360136, -0.642325044, 0.741140366, -0.195268184) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.26095736, 0.897974849, -0.918429732, 0.340544492, -0.858729422, -0.382901549, -0.686886489, -0.505309343, 0.522349954, -0.642040849, 0.0851264596, -0.76192987) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.1586616, -1.10303259, 0.837247849, 0.825884759, -0.551328897, -0.11811471, 0.138498664, -0.00469979644, 0.990351498, -0.54656446, -0.834274828, 0.0724768043) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.721367359, -1.68246186, -0.139276266, 0.678860903, -0.231733114, 0.696740985, -0.110709377, 0.905742168, 0.409114361, -0.725872874, -0.354867458, 0.589217901) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(-10), 0, 0), i)
- wait()
- end
- for i = 0, 1, 0.2 / ButterAnim do
- wait()
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(-0.137036994, -0.512278318, 0.0613622367, 0.883309782, -7.23928864E-8, -0.468789697, -0.0944619775, 0.979488134, -0.177988723, 0.459173888, 0.20150198, 0.865191519) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-7.19726086E-6, 1.4999907, 9.50694084E-6, 0.875569582, -0.111872286, 0.469960213, 1.74425077E-5, 0.972824335, 0.231544703, -0.483092219, -0.202725321, 0.851777315) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.323510528, 0.324661076, -1.23929775, 0.743825972, 0.524815202, 0.413874149, 0.359908253, 0.207274288, -0.90967226, -0.563195229, 0.825594544, -0.0347093232) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.496937364, 0.698004484, -0.909043014, 0.507168055, -0.594999015, -0.623503566, -0.860103726, -0.303435564, -0.410059154, 0.0547915846, 0.744246721, -0.665653765) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.09593081, -1.46754241, 0.650105119, 0.825888455, -0.513390243, 0.233106554, 0.138452649, 0.585431516, 0.798812211, -0.546570361, -0.627455592, 0.554581404) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.829122424, -1.67726755, -0.240818083, 0.678866208, -0.0796007812, 0.729934514, -0.110706091, 0.971646249, 0.208920732, -0.725868344, -0.222637415, 0.650805533) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(10), 0, 0), i)
- end
- Attacking = false
- end
- function V()
- Cooldown("V")
- Attacking = true
- for i = 0, 1, 0.12 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(-0.202819973, -0.0246362686, -0.0744927227, 0.761807561, -6.11343428E-30, -0.647803485, 1.94370206E-29, 1, 1.34204817E-29, 0.647803485, -2.2815192E-29, 0.761807561) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(4.17232513E-7, 1.49999917, 1.89244747E-6, 0.9326424, -0.0415122062, 0.358406425, -0.0164030064, 0.98745364, 0.15705502, -0.360429376, -0.152355105, 0.920260191) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.76302433, 0.397008717, 0.151900023, 0.785691321, -0.618498683, 0.0121935904, 0.511248052, 0.660294354, 0.550124407, -0.348302603, -0.425994009, 0.83499378) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.260355294, 0.590483546, -1.14541793, 0.353894949, -0.797790647, -0.488148242, -0.933768868, -0.331088334, -0.135854065, -0.0532370806, 0.5038957, -0.862122416) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.734898806, -1.99501681, -0.019940719, 0.943360627, -0.0457969084, 0.328593373, 0.0484899804, 0.998823762, -1.52598841E-6, -0.328206778, 0.0159349255, 0.944471598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.687264025, -1.99117541, -0.0508008301, 0.794990361, 0.0610336103, 0.603544116, -0.0799870342, 0.996785581, 0.00455890223, -0.60132575, -0.0518999808, 0.79731673) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun, i)
- wait()
- end
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0304290503, -0.123203494, -0.341218919, 0.272727966, -2.84477508E-8, 0.962091267, -0.0671509951, 0.997561216, 0.019035602, -0.959744871, -0.0697969198, 0.272062868) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.34110451E-7, 1.49999619, -2.95415521E-6, 0.259841651, -0.0559205897, -0.964030802, 1.87952537E-6, 0.99832195, -0.0579092093, 0.965651393, 0.0150454156, 0.259405762) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.87426484, 0.547303438, -0.261219561, 0.374594778, -0.920806348, 0.108601958, 0.116860546, -0.0693082958, -0.990727007, 0.919794798, 0.383812487, 0.0816434249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.25910807, 0.48557198, -0.583863437, 0.996713161, -0.0618878156, -0.0522785485, -0.0784967989, -0.897347867, -0.434286952, -0.0200349987, 0.436963141, -0.899256349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.712896526, -1.86757326, -0.180085778, 0.848932624, -0.106919587, -0.51757288, 0.0912610143, 0.994267702, -0.0557066239, 0.520562053, 5.69485128E-5, 0.8538239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.853444815, -1.96238887, 0.0665092617, 0.927770376, 0.12306606, -0.35227412, -0.0674868822, 0.983820856, 0.165957853, 0.366998434, -0.130196884, 0.921065271) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(15), 0, 0), i)
- wait()
- end
- local Bullet = Create("Part")({
- Parent = Torso,
- Size = Vector3.new(),
- Transparency = 1,
- CanCollide = false,
- Anchored = true,
- Material = "Neon"
- })
- local xxxxxx = script.ParticleEmitter:Clone()
- xxxxxx.Texture = "http://www.roblox.com/asset/?id=614589610"
- xxxxxx.Parent = Bullet
- local Attachment = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, 0.2)
- })
- local Attachment2 = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, -0.2)
- })
- local Trail = Create("Trail")({
- Color = ColorSequence.new(BrickColor.new("Dark indigo").Color),
- LightEmission = 1,
- Texture = "http://www.roblox.com/asset/?id=908770358",
- Transparency = NumberSequence.new(0),
- Attachment0 = Attachment,
- Attachment1 = Attachment2,
- Lifetime = 0.2,
- MinLength = NumberSequence.new(0.1),
- FaceCamera = true,
- Parent = Bullet
- })
- Bullet.CFrame = CFrame.new(WepR.GunPart.Position, Mouse.Hit.p)
- so("rbxassetid://1132403352", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://936968317", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://1085143827", WepR.GunPart, 0.5, 1 + math.random())
- spawn(function()
- local FinalPoint = Mouse.Hit
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until hit or tick() >= TimeOwO + 10
- local CircleExplosion = Create("Part")({
- CFrame = FinalHit,
- Parent = Bullet,
- CanCollide = false,
- Anchored = true,
- Transparency = 0.3,
- Color = Color3.new(1, 1, 1),
- Material = "Neon",
- Shape = "Ball",
- Size = Vector3.new(1, 1, 1)
- })
- local CircleExplosionmesh = Instance.new("SpecialMesh", CircleExplosion)
- CircleExplosionmesh.MeshType = "Sphere"
- CircleExplosionmesh.Scale = Vector3.new(15, 15, 15)
- local SquareInside = Create("Part")({
- CFrame = CircleExplosion.CFrame * CFrame.Angles(math.random(), math.random(), math.random()),
- Parent = CircleExplosion,
- CanCollide = false,
- Anchored = true,
- CanCollide = false,
- Color = Color3.new(0.8, 0.8, 0.8),
- Material = "Neon",
- Size = Vector3.new(1, 1, 1),
- Transparency = 0
- })
- local SquareInsideMesh = Create("SpecialMesh")({
- MeshType = "Brick",
- Parent = SquareInside,
- Scale = Vector3.new(10, 10, 10)
- })
- _Damage(CircleExplosion, 15, 10, 15, nil, {Intensity = 15, Down = 4}, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- Tween(CircleExplosion, TweenInfo.new(1), {Transparency = 1})
- Tween(CircleExplosionmesh, TweenInfo.new(1), {
- Scale = Vector3.new(30, 30, 30)
- })
- Tween(SquareInside, TweenInfo.new(1.2), {
- Transparency = 1,
- Color = Color3.new(0, 0, 0)
- })
- Tween(SquareInsideMesh, TweenInfo.new(1.2), {
- Scale = Vector3.new(18, 18, 18)
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end)
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(-10), 0, 0), i)
- PlayAnimation({
- CFrame.new(0.0304270983, -0.473592579, 0.900361001, 0.272728086, -9.75351853E-8, 0.962091208, 0.199869081, 0.97818315, -0.0566576496, -0.941101372, 0.20774439, 0.266778082) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(8.94069672E-7, 1.49999273, -1.98185444E-6, 0.259782016, 0.203806818, -0.943915427, 1.12927519E-5, 0.977474034, 0.211055815, 0.965667427, -0.0548391603, 0.253927886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.44873726, 0.969067454, 0.222924769, 0.374608487, -0.504644215, 0.777819335, 0.116853893, -0.806520045, -0.579543471, 0.919790149, 0.307993114, -0.243159652) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.23896933, 0.729626715, -0.529699385, 0.96105355, -0.271373063, -0.0522760153, -0.266582191, -0.860430896, -0.434272557, 0.0728699267, 0.431295037, -0.899263382) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.726796508, -1.80863404, -0.194818139, 0.824546933, 0.158301324, -0.543197274, -0.0536528528, 0.977612436, 0.203458413, 0.563243985, -0.138616949, 0.814580619) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.17846739, -1.30003202, 0.302759111, 0.830693483, 0.535148144, -0.153508395, -0.287260234, 0.64819634, 0.705211461, 0.476896107, -0.541717649, 0.692179441) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- wait()
- end
- for i = 0, 1, 0.12 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0304290503, -0.123203494, -0.341218919, 0.272727966, -2.84477508E-8, 0.962091267, -0.0671509951, 0.997561216, 0.019035602, -0.959744871, -0.0697969198, 0.272062868) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.34110451E-7, 1.49999619, -2.95415521E-6, 0.259841651, -0.0559205897, -0.964030802, 1.87952537E-6, 0.99832195, -0.0579092093, 0.965651393, 0.0150454156, 0.259405762) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.87426484, 0.547303438, -0.261219561, 0.374594778, -0.920806348, 0.108601958, 0.116860546, -0.0693082958, -0.990727007, 0.919794798, 0.383812487, 0.0816434249) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.25910807, 0.48557198, -0.583863437, 0.996713161, -0.0618878156, -0.0522785485, -0.0784967989, -0.897347867, -0.434286952, -0.0200349987, 0.436963141, -0.899256349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.712896526, -1.86757326, -0.180085778, 0.848932624, -0.106919587, -0.51757288, 0.0912610143, 0.994267702, -0.0557066239, 0.520562053, 5.69485128E-5, 0.8538239) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.853444815, -1.96238887, 0.0665092617, 0.927770376, 0.12306606, -0.35227412, -0.0674868822, 0.983820856, 0.165957853, 0.366998434, -0.130196884, 0.921065271) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun, i)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(15), 0, 0), i)
- wait()
- end
- Attacking = false
- end
- function T()
- end
- function so(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound", par or workspace)
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = id
- wait()
- sou:play()
- game:GetService("Debris"):AddItem(sou, 6)
- end))
- end
- Clicks = {
- ["1"] = function()
- Attacking = true
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0411055721, -0.0632095337, -0.266926259, 0.087155968, -6.11343428E-30, 0.996194661, -2.21955512E-29, 1, 8.07865019E-30, -0.996194661, -2.2815192E-29, 0.087155968) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.38738937E-6, 1.49999976, 1.51955846E-5, 0.0909239501, 0, -0.995857835, 0, 1, 0, 0.995857835, 0, 0.0909239501) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.74480784, 0.472951949, 0.348894924, 0.0868243426, -0.996082544, -0.0167673379, 0.0871530026, 0.024360979, -0.995897055, 0.992404163, 0.0850067809, 0.0889266878) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52743697, 0.373691559, -0.380619764, 0.931852937, 0.0305815544, -0.361545324, -0.185108066, -0.816944301, -0.546202362, -0.312066138, 0.575905144, -0.755611002) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.825546503, -1.99942052, -0.117635459, 0.583260715, -0.0210166201, -0.812013149, 0.0281280093, 0.999588251, -0.00566740101, 0.811797798, -0.0195347406, 0.583611786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.742556751, -1.98362088, -0.166858554, 0.822662294, 0.0857949927, -0.562019527, -0.0555580072, 0.995948374, 0.0707126632, 0.56580925, -0.0269479603, 0.824095786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(9), 0, 0), i)
- wait()
- end
- local Bullet = Create("Part")({
- Parent = Torso,
- Transparency = 1,
- Material = Enum.Material.Neon,
- Size = Vector3.new(),
- Shape = "Block",
- CanCollide = false,
- Anchored = true,
- Color = BrickColor.new("Dark indigo").Color
- })
- script.ParticleEmitter:Clone().Parent = Bullet
- local Attachment = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, 0.2)
- })
- local Attachment2 = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, -0.2)
- })
- local Trail = Create("Trail")({
- Color = ColorSequence.new(BrickColor.new("Dark indigo").Color),
- LightEmission = 1,
- Texture = "",
- Transparency = NumberSequence.new(0),
- Attachment0 = Attachment,
- Attachment1 = Attachment2,
- Lifetime = 0.2,
- MinLength = NumberSequence.new(0.1),
- FaceCamera = true,
- Parent = Bullet
- })
- Bullet.CFrame = CFrame.new(WepR.GunPart.Position, Mouse.Hit.p)
- so("rbxassetid://1132403352", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://936968317", WepR.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://1085143827", WepR.GunPart, 0.5, 1 + math.random())
- spawn(function()
- local FinalPoint = Mouse.Hit
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until hit or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Size = Vector3.new(1, 1, 1),
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 3, 5, "None", nil, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- Size = Vector3.new(),
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = BrickColor.new("Alder").Color
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end)
- for i = 0, 1, 0.4 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0411292128, -0.181884363, 0.00160894636, 0.0871560425, -1.26625794E-8, 0.996194661, 0.0552680269, 0.998459876, -0.00483532855, -0.994660497, 0.0554791391, 0.0870218053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.34110451E-6, 1.49999905, 1.09896064E-7, 0.09092585, 0.0845664069, -0.992260814, 8.23638402E-9, 0.996388018, 0.0849181637, 0.995857716, -0.00772126252, 0.0905974209) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.59761429, 0.988384008, 0.316506654, 0.086863488, -0.794848144, 0.600559354, 0.087089926, -0.594471335, -0.799386919, 0.992406309, 0.121740192, 0.0175854079) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52743185, 0.373696536, -0.38063705, 0.931853235, 0.0305825751, -0.361544698, -0.185106784, -0.816944659, -0.546202421, -0.312066257, 0.575904787, -0.755611241) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.830928862, -1.89394534, -0.125145555, 0.583253562, 0.0506162383, -0.810711801, 0.0281293932, 0.996199489, 0.0824342817, 0.811803102, -0.0708848983, 0.57961297) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.879629135, -1.8096478, 0.0682147145, 0.814905643, 0.166651234, -0.555118442, -0.123243585, 0.985691488, 0.114993155, 0.566339076, -0.0252937786, 0.823784113) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(-10), 0, 0), i)
- wait()
- end
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0411055721, -0.0632095337, -0.266926259, 0.087155968, -6.11343428E-30, 0.996194661, -2.21955512E-29, 1, 8.07865019E-30, -0.996194661, -2.2815192E-29, 0.087155968) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.38738937E-6, 1.49999976, 1.51955846E-5, 0.0909239501, 0, -0.995857835, 0, 1, 0, 0.995857835, 0, 0.0909239501) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.74480784, 0.472951949, 0.348894924, 0.0868243426, -0.996082544, -0.0167673379, 0.0871530026, 0.024360979, -0.995897055, 0.992404163, 0.0850067809, 0.0889266878) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.52743697, 0.373691559, -0.380619764, 0.931852937, 0.0305815544, -0.361545324, -0.185108066, -0.816944301, -0.546202362, -0.312066138, 0.575905144, -0.755611002) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.825546503, -1.99942052, -0.117635459, 0.583260715, -0.0210166201, -0.812013149, 0.0281280093, 0.999588251, -0.00566740101, 0.811797798, -0.0195347406, 0.583611786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.742556751, -1.98362088, -0.166858554, 0.822662294, 0.0857949927, -0.562019527, -0.0555580072, 0.995948374, 0.0707126632, 0.56580925, -0.0269479603, 0.824095786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(9), 0, 0), i)
- wait()
- end
- Attacking = false
- end,
- ["2"] = function()
- Attacking = true
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.037171457, 2.38418579E-7, -0.256055087, 0.173647001, -6.11343428E-30, -0.984807968, 2.35301634E-29, 1, -2.05876908E-30, 0.984807968, -2.2815192E-29, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999881, 0, 0.173647001, 0, 0.984807968, 0, 1, 0, -0.984807968, 0, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.47277927, 0.681755602, -0.719712377, 0.918022335, 0.153215319, 0.365732372, 0.299565017, -0.872276664, -0.386515439, 0.259799719, 0.464390397, -0.846667409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.75520515, 0.449866802, 0.183949098, 0.173612967, 0.984779298, 0.00827241503, -0.0197960008, 0.0118879974, -0.999733448, -0.984614968, 0.173402935, 0.0215586033) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.782128096, -1.98295033, -0.00245207548, 0.788971424, -0.0778202266, 0.609481871, 0.033998996, 0.99595654, 0.0831547603, -0.613488555, -0.0448849611, 0.788427055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.775989532, -1.98967838, 0.0550791621, 0.611664891, 0.0225228406, 0.79079634, -0.0722769871, 0.997005224, 0.0275088716, -0.787808359, -0.0739825889, 0.611460984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.Angles(math.rad(9), 0, 0), i)
- wait()
- end
- local Bullet = Create("Part")({
- Parent = Torso,
- Transparency = 1,
- Material = Enum.Material.Neon,
- Size = Vector3.new(),
- Shape = "Block",
- CanCollide = false,
- Anchored = true,
- Color = Color3.new(0, 0, 0)
- })
- script.ParticleEmitter:Clone().Parent = Bullet
- local Attachment = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, 0.2)
- })
- local Attachment2 = Create("Attachment")({
- Parent = Bullet,
- Position = Vector3.new(0, 0, -0.2)
- })
- local Trail = Create("Trail")({
- Color = ColorSequence.new(Color3.fromRGB(30, 30, 120)),
- LightEmission = 1,
- Texture = "",
- Transparency = NumberSequence.new(0),
- Attachment0 = Attachment,
- Attachment1 = Attachment2,
- Lifetime = 0.2,
- MinLength = NumberSequence.new(0.1),
- FaceCamera = true,
- Parent = Bullet
- })
- Bullet.CFrame = CFrame.new(WepL.GunPart.Position, Mouse.Hit.p)
- so("rbxassetid://1132403352", WepL.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://936968317", WepL.GunPart, 0.5, 1 + math.random())
- so("rbxassetid://1085143827", WepL.GunPart, 0.5, 1 + math.random())
- spawn(function()
- local FinalPoint = Mouse.Hit
- local CurrentPoint = Bullet.CFrame
- local Speed = 2
- local Direction = CFrame.new(CurrentPoint.p, FinalPoint.p).lookVector
- local FinalHit, HitPart, Bottom
- local TimeOwO = tick()
- repeat
- local hit, pos, bottom = rayCast(Bullet.Position, Direction, Speed, Char)
- HitPart = hit
- FinalHit = CFrame.new(pos)
- Bottom = bottom
- Bullet.CFrame = CFrame.new(pos)
- wait()
- until hit or tick() >= TimeOwO + 10
- local x = Create("Part")({
- Size = Vector3.new(1, 1, 1),
- Color = Color3.fromRGB(90, 0, 255),
- Material = "Neon",
- CanCollide = false,
- Anchored = true,
- CFrame = FinalHit,
- Parent = Bullet
- })
- local xmesh = Instance.new("SpecialMesh", x)
- xmesh.MeshType = "Sphere"
- _Damage(x, 10, 3, 5, "None", nil, true, {
- SoundId = "588695064",
- Volume = 1,
- Pitch = 1
- })
- local Reference = Create("Part")({
- Size = Vector3.new(),
- CFrame = FinalHit,
- Parent = Torso,
- CanCollide = false,
- Anchored = true,
- Transparency = 1
- })
- local Particle = script.cubes:Clone()
- Particle.Parent = Reference
- for i = 1, 10 do
- Particle:Emit()
- end
- local Beep1 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(10, 0, 0),
- Parent = Bullet
- })
- local Beep2 = Create("Part")({
- Shape = "Ball",
- Size = Vector3.new(0.1, 0.1, 0.1),
- Transparency = 1,
- Anchored = true,
- CanCollide = false,
- CFrame = FinalHit * CFrame.new(-10, 0, 0),
- Parent = Bullet
- })
- local BEEP = script.ParticleEmitter:Clone()
- BEEP.Color = ColorSequence.new(Color3.fromRGB(50, 50, 255), Color3.fromRGB(85, 0, 255))
- BEEP.Size = NumberSequence.new(5, 1)
- BEEP.Rate = 100
- BEEP:Clone().Parent = Beep1
- BEEP:Clone().Parent = Beep2
- spawn(function()
- for i = 0, 1, 0.01 do
- Beep1.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(-10, 3 * i, 0)
- Beep2.CFrame = FinalHit * CFrame.Angles(0, math.rad(720 * i), 0) * CFrame.new(10, 3 * i, 0)
- wait()
- end
- Beep1.ParticleEmitter.Enabled = false
- Beep2.ParticleEmitter.Enabled = false
- delay(2, function()
- Beep1:Destroy()
- Beep2:Destroy()
- end)
- end)
- Tween(x, TweenInfo.new(2), {Transparency = 1})
- Tween(xmesh, TweenInfo.new(2), {
- Scale = Vector3.new(20, 20, 20)
- })
- local Ring = script.Ring:Clone()
- Ring.Color = BrickColor.new("Alder").Color
- Ring.Material = "Neon"
- Ring.CFrame = CFrame.new(FinalHit.p, FinalHit.p + Bottom) * CFrame.Angles(math.rad(90), 0, 0)
- Ring.Size = Vector3.new(0, 0.2, 0)
- Ring.CanCollide = false
- Ring.Anchored = true
- Ring.Parent = Bullet
- Tween(Ring, TweenInfo.new(1), {
- Size = Vector3.new(20, 0.2, 20),
- Transparency = 1
- })
- Bullet:FindFirstChildOfClass("ParticleEmitter").Enabled = false
- delay(2, function()
- TrueWait(2)
- Bullet:Destroy()
- end)
- end)
- for i = 0, 1, 0.4 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.0371810719, -0.0916759372, 0.0555628389, 0.173646986, 7.89200172E-8, -0.984808028, -0.0757439956, 0.997037828, -0.0133555364, 0.981890857, 0.0769124404, 0.173132628) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(4.70876694E-6, 1.49999893, 9.49949026E-7, 0.173646986, -0.127147749, 0.97656554, 7.89200172E-8, 0.991630316, 0.129109159, -0.984808028, -0.0224193409, 0.172193646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.41647792, 0.793092906, -0.503830075, 0.873067975, 0.238252163, 0.425427288, 0.404830575, -0.840503573, -0.360091627, 0.27178055, 0.486610502, -0.830268502) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.53123009, 0.920753717, 0.412293106, 0.173673794, 0.755895317, -0.631236732, -0.0197145827, -0.638180494, -0.769634366, -0.984605968, 0.146109894, -0.0959330574) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.943028688, -1.89446342, -0.152141273, 0.76292628, -0.262643695, 0.590730071, 0.150626719, 0.960823894, 0.232656628, -0.628693342, -0.0885201246, 0.772598863) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.776076019, -1.98845387, 0.0550327301, 0.611349344, -0.0793843865, 0.787369251, 0.0129989199, 0.995828986, 0.0903088525, -0.791254163, -0.0449753068, 0.609831393) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.Angles(math.rad(-10), 0, 0), i)
- wait()
- end
- for i = 0, 1, 0.1 / ButterAnim do
- RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, RootPart.Position.Y, Mouse.Hit.p.Z))
- PlayAnimation({
- CFrame.new(0.037171457, 2.38418579E-7, -0.256055087, 0.173647001, -6.11343428E-30, -0.984807968, 2.35301634E-29, 1, -2.05876908E-30, 0.984807968, -2.2815192E-29, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.49999881, 0, 0.173647001, 0, 0.984807968, 0, 1, 0, -0.984807968, 0, 0.173647001) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.47277927, 0.681755602, -0.719712377, 0.918022335, 0.153215319, 0.365732372, 0.299565017, -0.872276664, -0.386515439, 0.259799719, 0.464390397, -0.846667409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.75520515, 0.449866802, 0.183949098, 0.173612967, 0.984779298, 0.00827241503, -0.0197960008, 0.0118879974, -0.999733448, -0.984614968, 0.173402935, 0.0215586033) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.782128096, -1.98295033, -0.00245207548, 0.788971424, -0.0778202266, 0.609481871, 0.033998996, 0.99595654, 0.0831547603, -0.613488555, -0.0448849611, 0.788427055) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.775989532, -1.98967838, 0.0550791621, 0.611664891, 0.0225228406, 0.79079634, -0.0722769871, 0.997005224, 0.0275088716, -0.787808359, -0.0739825889, 0.611460984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, i, false)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.Angles(math.rad(9), 0, 0), i)
- wait()
- end
- Attacking = false
- end
- }
- local FootstepSounds = {
- "rbxassetid://1508320672",
- "rbxassetid://1508320756",
- "rbxassetid://1508320839",
- "rbxassetid://1508320932",
- "rbxassetid://1508320993",
- "rbxassetid://1508320672"
- }
- Sine = 0
- CSine = 0
- JumpNum = 0
- ManaGen = true
- BeamStart = tick()
- StepSound = false
- Beat.Event:connect(function()
- Char.Humanoid.MaxHealth = 80 * Stat.Defense
- Char.Humanoid.WalkSpeed = 16 * Stat.Speed
- Val.Text = Stat.Attack
- Val_2.Text = Stat.Defense
- Val_3.Text = Stat.Speed
- Val_4.Text = math.floor(Char.Humanoid.Health / Char.Humanoid.MaxHealth * 100) .. "%"
- Sine = Sine + (0.5 + 0.5 * (120 / FramesFiredPerSecond) - 0.5)
- CSine = tick() / (ButterAnim * (120 / FramesFiredPerSecond))
- CSine = CSine * 11 / (ButterAnim * (120 / FramesFiredPerSecond))
- if Attacking == false then
- if ManaGen == true and Stat.Mana <= 260 then
- Stat.Mana = Stat.Mana + 0.30 / ButterAnim
- ZCool_5:TweenSize(UDim2.new(1, 0, -(Stat.Mana / 110), 0), 1, 4, 0.2, true)
- end
- ZCool_5:TweenSize(UDim2.new(1, 0, -(Stat.Mana / 110), 0), 1, 4, 0.2, true)
- if Cooldowns.Z.Current < Cooldowns.Z.Max then
- Cooldowns.Z.Current = Cooldowns.Z.Current + 0.03 / ButterAnim
- ZCooldown:TweenSize(UDim2.new(Cooldowns.Z.Current / Cooldowns.Z.Max, 0, 1, 0), 1, 4, 0.2, true)
- end
- if Cooldowns.X.Current < Cooldowns.X.Max then
- Cooldowns.X.Current = Cooldowns.X.Current + 0.03 / ButterAnim
- XCooldown:TweenSize(UDim2.new(Cooldowns.X.Current / Cooldowns.X.Max, 0, 1, 0), 1, 4, 0.2, true)
- end
- if Cooldowns.C.Current < Cooldowns.C.Max then
- Cooldowns.C.Current = Cooldowns.C.Current + 0.03 / ButterAnim
- CCooldown:TweenSize(UDim2.new(Cooldowns.C.Current / Cooldowns.C.Max, 0, 1, 0), 1, 4, 0.2, true)
- end
- if Cooldowns.V.Current < Cooldowns.V.Max then
- Cooldowns.V.Current = Cooldowns.V.Current + 0.03 / ButterAnim
- VCooldown:TweenSize(UDim2.new(Cooldowns.V.Current / Cooldowns.V.Max, 0, 1, 0), 1, 4, 0.2, true)
- end
- if Cooldowns.E.Current < Cooldowns.E.Max then
- Cooldowns.E.Current = Cooldowns.E.Current + 0.03 / ButterAnim
- end
- local TVec = (RootJoint.Parent.Velocity * Vector3.new(1, 0, 1)).magnitude
- local JumpVec = (RootJoint.Parent.Velocity * Vector3.new(0, 1, 0)).magnitude
- local hitfloor, posfloor = rayCast(RootJoint.Parent.Position, RootJoint.Parent.CFrame.upVector, -4, Char)
- local CAnim = ""
- if 1 <= RootJoint.Parent.Velocity.y and hitfloor == nil then
- CAnim = "Jump"
- PlayAnimation({
- CFrame.new(-1.12012891E-29, -0.0111799557, -0.0804864019, 1, -1.89445905E-29, 1.38866266E-28, 6.11343504E-30, 0.995775461, 0.0918230414, -1.40019127E-28, -0.0918230414, 0.995775461) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.5142101, -0.0657982975, 1, 0, 0, 0, 0.98581636, 0.167828411, 0, -0.167828411, 0.98581636) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.68163621, 0.667070091, 0.301444858, 0.548277974, -0.802017391, -0.236979887, 0.819695473, 0.571547687, -0.0378521755, 0.165803403, -0.173497841, 0.970777094) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.58769262, 0.519780576, 0.369925946, 0.569910884, 0.737910151, 0.361511141, -0.719557762, 0.660613418, -0.214072242, -0.3967852, -0.13812606, 0.907459557) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.707064271, -1.82145953, 0.356725097, 0.976979613, -0.118949339, -0.17709282, 0.185890228, 0.881958961, 0.433120608, 0.104669183, -0.456069797, 0.883767426) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.792503774, -1.8221221, -0.00282472372, 0.975874662, 0.161554188, 0.146863565, -0.195329204, 0.946552038, 0.256682932, -0.0975458026, -0.279177129, 0.955272436) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, 0.1, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(20 + math.sin(tick() * 6) * 10), math.rad(5), 0), 0.1)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.Angles(math.rad(20 + math.sin(tick() * 6) * 10), math.rad(-5), 0), 0.1)
- elseif RootJoint.Parent.Velocity.y <= -1 and hitfloor == nil then
- CAnim = "Falling"
- PlayAnimation({
- CFrame.new(8.85836218E-30, -6.31400384E-4, 0.0632378012, 1, 2.44490562E-29, 1.38003533E-28, 6.11343504E-30, 0.976120234, -0.217231035, -1.40019127E-28, 0.21723105, 0.976120234) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.57274389, -0.171027005, 1, 0, 0, 0, 0.938469291, 0.345362902, 0, -0.345362902, 0.938469291) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(1.73278558, 0.888524592, 0.252154469, 0.377220899, -0.908421993, -0.180205151, 0.914757431, 0.395861, -0.0807038844, 0.144649416, -0.134400785, 0.980312765) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-1.7448889, 0.842163503, 0.298191041, 0.272370964, 0.947656095, 0.166619569, -0.89304167, 0.313438565, -0.322851062, -0.358176768, -0.0608629659, 0.931667984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0.654052377, -1.65137398, 0.549477458, 0.976980567, -0.0505371317, -0.207256272, 0.185886964, 0.678343773, 0.710841596, 0.10466709, -0.73300463, 0.672122836) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(-0.695510209, -1.50978971, -0.363630146, 0.975874901, 0.161553174, 0.146862999, -0.150243282, 0.984974563, -0.0851614028, -0.158414394, 0.061041683, 0.985484123) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0)
- }, 0.1, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(20 + math.sin(tick() * 6) * 10), math.rad(5), 0), 0.1)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.Angles(math.rad(20 + math.sin(tick() * 6) * 10), math.rad(-5), 0), 0.1)
- elseif TVec >= 1 and TVec <= 25 and hitfloor ~= nil then
- CAnim = "Walking"
- if not StepSound then
- StepSound = true
- TrompUtility.Create("Sound")({
- SoundId = FootstepSounds[math.random(1, #FootstepSounds)],
- Volume = 1,
- Pitch = 1 + math.random(),
- Parent = Torso,
- function(s)
- s:Play()
- wait(46.3)
- s:Destroy()
- StepSound = false
- end
- })
- end
- PlayAnimation({
- CFrame.new(-0.184873492, -0.339640886, -0.386451542, 0.774520099, -4.27026265E-7, -0.632549405, 0.165614009, 0.965116978, 0.202784076, 0.610484064, -0.261819363, 0.747502506) * CFrame.new(0, 0.1 + 0.1 * math.cos(Sine / 4), 0) * CFrame.Angles(0, 0 - 0.1 * math.cos(Sine / 8), 0),
- CFrame.new(0.0415066406, 1.49597037, 0.0525177717, 0.78457427, 0.0970193148, 0.612397492, 4.94159758E-6, 0.98768127, -0.156480074, -0.620035112, 0.122773245, 0.774908662) * CFrame.new(0, 0, 0) * CFrame.Angles(0 - 0.05 * math.cos(Sine / 4), 0 + 0.1 * math.cos(Sine / 8), 0),
- CFrame.new(0.576921582, 0.286114782, -1.00435781, 0.0644228756, 0.746003151, 0.662819028, 0.911147952, 0.22692807, -0.343966842, -0.407012641, 0.62608552, -0.665099859) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.1 * math.cos(Sine / 8), 0 + 0.1 * math.cos(Sine / 8), 0),
- CFrame.new(-1.49424994, 0.69870317, -0.142548054, 0.739977777, 0.148612529, -0.656008661, -0.130020902, -0.925289094, -0.356279016, -0.65994513, 0.348933399, -0.665370584) * CFrame.new(0, 0, 0) * CFrame.Angles(0 - 0.1 * math.cos(Sine / 8), 0 - 0.1 * math.cos(Sine / 8), 0),
- CFrame.new(0.500000119, -1.99999976, 1.92225002E-6, 1.00000024, 1.49011612E-8, 2.98023224E-8, 1.49011612E-8, 1.00000012, 0, 2.98023224E-8, 0, 1.00000012) * CFrame.new(0.14, 0.1 + 0.2 * math.cos(Sine / 8), 0 - 0.8 * math.sin(Sine / 8)) * CFrame.Angles(math.rad(40 * math.sin(Sine / 8)), math.rad(30), 0),
- CFrame.new(-0.500009656, -1.99999642, 1.81049127E-5, 1.00000024, 1.49011612E-8, 2.98023224E-8, 1.49011612E-8, 1.00000012, 0, 2.98023224E-8, 0, 1.00000012) * CFrame.new(-0.14, 0.1 - 0.2 * math.cos(Sine / 8), 0 + 0.8 * math.sin(Sine / 8)) * CFrame.Angles(math.rad(-40 * math.sin(Sine / 8)), math.rad(30), 0)
- }, 0.1, false)
- elseif TVec >= 50 and hitfloor ~= nil then
- CAnim = "Running"
- PlayAnimation({
- CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, math.sin(CSine * 2) / 8, 0) * CFrame.Angles(math.rad(-20), 0, 0),
- CFrame.new(0, 1.49999261, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20 + Sine / 6 / 25), 0, 0),
- CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1) * CFrame.new(-0.03, 0.05, 0 - 0.9 * math.cos(Sine / 6)) * CFrame.Angles(math.rad(0) + 0.9 * math.cos(Sine / 6), 0, 0),
- CFrame.new(-1.5, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1) * CFrame.new(-0.03, 0.05, 0 - 0.9 * -math.cos(Sine / 6)) * CFrame.Angles(math.rad(0) + 0.9 * -math.cos(Sine / 6), 0, 0),
- CFrame.new(0.54, -1, 0) * CFrame.new(0, 0.25 * math.sin(Sine / 6), -0.125 - 0.25 * math.sin(Sine / 6)) * CFrame.Angles(math.rad(-10 - 60 * math.cos(Sine / 6)), math.rad(0), 0) * CFrame.new(0, -1, 0),
- CFrame.new(-0.54, -1, 0) * CFrame.new(0, -0.25 * math.sin(Sine / 6), -0.125 + 0.25 * math.sin(Sine / 6)) * CFrame.Angles(math.rad(-10 + 60 * math.cos(Sine / 6)), math.rad(0), 0) * CFrame.new(0, -1, 0)
- }, 0.1, false)
- elseif TVec < 1 and hitfloor ~= nil then
- CAnim = "Idle"
- PlayAnimation({
- CFrame.new(0.0538532697, -0.12984103, -0.0836975873, 0.86602509, 3.5488128E-8, -0.500000656, 0.0435780026, 0.996194661, 0.0754792392, 0.498098046, -0.0871559456, 0.86272949) * CFrame.new(0, -0.1 + 0.1 * math.sin(Sine / 20), 0 + 0.1 * math.sin(Sine / 20)) * CFrame.Angles(0, 0, 0),
- CFrame.new(-9.87201929E-7, 1.49999928, -5.40167093E-8, 0.864377618, -0.0318633392, 0.501832902, 0.0435784087, 0.998982251, -0.0116319433, -0.500951469, 0.0319234505, 0.864886463) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + 0.05 * math.sin(Sine / 20), 0, 0),
- CFrame.new(0.608186781, 0.262578517, -1.01786757, 0.27089864, 0.659728169, 0.700979948, 0.88596952, 0.113859661, -0.449548453, -0.37639308, 0.742828906, -0.553654671) * CFrame.new(0, 0 - 0.1 * math.sin(Sine / 20), 0) * CFrame.Angles(0 + 0.1 * math.sin(Sine / 20), 0 - 0.1 * math.sin(Sine / 20), 0),
- CFrame.new(-1.49696839, 0.546166897, -0.35875091, 0.862730026, 0.0754803866, -0.499999821, -0.131513715, -0.921275914, -0.365998387, -0.488263428, 0.381514579, -0.784885705) * CFrame.new(0, 0 - 0.1 * math.sin(Sine / 20), 0) * CFrame.Angles(0 + 0.1 * math.sin(Sine / 20), 0 + 0.1 * math.sin(Sine / 20), 0),
- CFrame.new(0.66636616, -1.99062788, -0.0347823501, 0.996416688, -0.0643353164, 0.0549082458, 0.0645003766, 0.997916937, -0.0012377277, -0.0547142625, 0.00477489084, 0.998490691) * CFrame.new(0 - 0.02 * math.sin(Sine / 20), 0.1 - 0.1 * math.sin(Sine / 20), 0 - 0.1 * math.sin(Sine / 20)) * CFrame.Angles(0 + 0.02 * math.sin(Sine / 20), 0 - 0.02 * math.sin(Sine / 20), 0 - 0.03 * math.sin(Sine / 20)),
- CFrame.new(-0.857055426, -1.87998962, -0.347434849, 0.936116934, 0.111396968, 0.333580643, -0.0871555805, 0.992403924, -0.0868245214, -0.340718687, 0.0522044897, 0.938714802) * CFrame.new(0 + 0.02 * math.sin(Sine / 20), 0.1 - 0.1 * math.sin(Sine / 20), 0 - 0.1 * math.sin(Sine / 20)) * CFrame.Angles(0 + 0.02 * math.sin(Sine / 20), 0 + 0.02 * math.sin(Sine / 20), 0 + 0.03 * math.sin(Sine / 20))
- }, 0.05, false)
- HandleWR.C0 = Animate(HandleWR.C0, DefaultGun * CFrame.Angles(math.rad(10), 0, 0), 0.1)
- HandleWL.C0 = Animate(HandleWL.C0, DefaultGun * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.1)
- end
- end
- end)
- for i, v in pairs(script.Gunslinger:GetDescendants()) do
- if v.className == "Part" or v.className == "UnionOperation" or v.className == "MeshPart" then
- v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- end
- WepL = script.Gunslinger:Clone()
- WepR = script.Gunslinger:Clone()
- local HandleR = WeldWeapon(WepR)
- local HandleLeft = WeldWeapon(WepL)
- HandleWL = Create("Weld")({
- Parent = LArm,
- Part0 = LArm,
- Part1 = HandleLeft
- })
- HandleWR = Create("Weld")({
- Parent = RArm,
- Part0 = RArm,
- Part1 = HandleR
- })
- DefaultGun = CFrame.Angles(math.rad(115), math.rad(0), math.rad(180)) * CFrame.new(0, -0.3, 0.9)
- WepR.Parent = Char
- WepL.Parent = Char
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement