Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local InvertBtn = Instance.new("TextButton")
- local InvertTxt = Instance.new("TextLabel")
- local RangeSubtractBtn = Instance.new("TextButton")
- local RangeAddBtn = Instance.new("TextButton")
- local RangeTxt = Instance.new("TextLabel")
- local ToggleBtn = Instance.new("TextButton")
- local ToggleTxt = Instance.new("TextLabel")
- local OpenArrowFrame = Instance.new("Frame")
- local OpenArrowBtn = Instance.new("TextButton")
- local BackArrowFrame = Instance.new("Frame")
- local BackArrowBtn = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Position = UDim2.new(-0.13, 0, 0.349999994, 0)
- Frame.Size = UDim2.new(0.125, 0, 0.300000012, 0)
- Frame.Style = Enum.FrameStyle.RobloxRound
- InvertBtn.Name = "InvertBtn"
- InvertBtn.Parent = Frame
- InvertBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InvertBtn.Position = UDim2.new(0.649999976, 0, 0.75, 0)
- InvertBtn.Size = UDim2.new(0.349999994, 0, 0.25, 0)
- InvertBtn.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- InvertBtn.Font = Enum.Font.Cartoon
- InvertBtn.Text = "Off"
- InvertBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- InvertBtn.TextSize = 18.000
- InvertBtn.TextWrapped = true
- InvertTxt.Name = "InvertTxt"
- InvertTxt.Parent = Frame
- InvertTxt.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InvertTxt.BackgroundTransparency = 1.000
- InvertTxt.Position = UDim2.new(0, 0, 0.75, 0)
- InvertTxt.Size = UDim2.new(0.649999976, 0, 0.25, 0)
- InvertTxt.Font = Enum.Font.Cartoon
- InvertTxt.Text = "Invert:"
- InvertTxt.TextColor3 = Color3.fromRGB(255, 255, 255)
- InvertTxt.TextSize = 18.000
- RangeSubtractBtn.Name = "RangeSubtractBtn"
- RangeSubtractBtn.Parent = Frame
- RangeSubtractBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RangeSubtractBtn.Position = UDim2.new(0.714999974, 0, 0.449999988, 0)
- RangeSubtractBtn.Rotation = 90.000
- RangeSubtractBtn.Size = UDim2.new(0.224999994, 0, 0.275000006, 0)
- RangeSubtractBtn.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- RangeSubtractBtn.Font = Enum.Font.Cartoon
- RangeSubtractBtn.Text = ">"
- RangeSubtractBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- RangeSubtractBtn.TextSize = 14.000
- RangeSubtractBtn.TextWrapped = true
- RangeAddBtn.Name = "RangeAddBtn"
- RangeAddBtn.Parent = Frame
- RangeAddBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RangeAddBtn.Position = UDim2.new(0.714999974, 0, 0.25, 0)
- RangeAddBtn.Rotation = 90.000
- RangeAddBtn.Size = UDim2.new(0.224999994, 0, 0.275000006, 0)
- RangeAddBtn.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- RangeAddBtn.Font = Enum.Font.Cartoon
- RangeAddBtn.Text = "<"
- RangeAddBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- RangeAddBtn.TextSize = 14.000
- RangeAddBtn.TextWrapped = true
- RangeTxt.Name = "RangeTxt"
- RangeTxt.Parent = Frame
- RangeTxt.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- RangeTxt.BackgroundTransparency = 1.000
- RangeTxt.Position = UDim2.new(0, 0, 0.375, 0)
- RangeTxt.Size = UDim2.new(0.649999976, 0, 0.25, 0)
- RangeTxt.Font = Enum.Font.Cartoon
- RangeTxt.Text = "Range: 8"
- RangeTxt.TextColor3 = Color3.fromRGB(255, 255, 255)
- RangeTxt.TextSize = 18.000
- ToggleBtn.Name = "ToggleBtn"
- ToggleBtn.Parent = Frame
- ToggleBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleBtn.Position = UDim2.new(0.649999976, 0, 0, 0)
- ToggleBtn.Size = UDim2.new(0.349999994, 0, 0.25, 0)
- ToggleBtn.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- ToggleBtn.Font = Enum.Font.Cartoon
- ToggleBtn.Text = "Off"
- ToggleBtn.TextColor3 = Color3.fromRGB(0, 0, 0)
- ToggleBtn.TextSize = 18.000
- ToggleBtn.TextWrapped = true
- ToggleTxt.Name = "ToggleTxt"
- ToggleTxt.Parent = Frame
- ToggleTxt.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ToggleTxt.BackgroundTransparency = 1.000
- ToggleTxt.Size = UDim2.new(0.649999976, 0, 0.25, 0)
- ToggleTxt.Font = Enum.Font.Cartoon
- ToggleTxt.Text = "Toggle:"
- ToggleTxt.TextColor3 = Color3.fromRGB(255, 255, 255)
- ToggleTxt.TextSize = 18.000
- OpenArrowFrame.Name = "OpenArrowFrame"
- OpenArrowFrame.Parent = Frame
- OpenArrowFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- OpenArrowFrame.Position = UDim2.new(1.10000002, 0, 0.300000012, 0)
- OpenArrowFrame.Size = UDim2.new(0.300000012, 0, 0.400000006, 0)
- OpenArrowFrame.Style = Enum.FrameStyle.RobloxRound
- OpenArrowBtn.Name = "OpenArrowBtn"
- OpenArrowBtn.Parent = OpenArrowFrame
- OpenArrowBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- OpenArrowBtn.BackgroundTransparency = 1.000
- OpenArrowBtn.Size = UDim2.new(1, 0, 1, 0)
- OpenArrowBtn.Font = Enum.Font.Cartoon
- OpenArrowBtn.Text = ">"
- OpenArrowBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- OpenArrowBtn.TextSize = 25.000
- OpenArrowBtn.TextWrapped = true
- BackArrowFrame.Name = "BackArrowFrame"
- BackArrowFrame.Parent = Frame
- BackArrowFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BackArrowFrame.Position = UDim2.new(-0.400000006, 0, 0.300000012, 0)
- BackArrowFrame.Size = UDim2.new(0.300000012, 0, 0.400000006, 0)
- BackArrowFrame.Style = Enum.FrameStyle.RobloxRound
- BackArrowBtn.Name = "BackArrowBtn"
- BackArrowBtn.Parent = BackArrowFrame
- BackArrowBtn.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BackArrowBtn.BackgroundTransparency = 1.000
- BackArrowBtn.Size = UDim2.new(1, 0, 1, 0)
- BackArrowBtn.Font = Enum.Font.Cartoon
- BackArrowBtn.Text = "<"
- BackArrowBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
- BackArrowBtn.TextSize = 25.000
- BackArrowBtn.TextWrapped = true
- local range = 4 -- DO RANGE IN 4S
- local thing = 0
- local toggle = false
- local opened = false
- local invert = false
- local checkPosOnce = false
- OpenArrowBtn.MouseButton1Click:Connect(function()
- if opened == false then
- opened = true
- OpenArrowFrame.Visible = false
- Frame:TweenPosition(UDim2.new(0.04, 0, 0.35, 0), "Out", "Quad", .25)
- end
- end)
- BackArrowBtn.MouseButton1Click:Connect(function()
- if opened == true then
- OpenArrowFrame.Visible = true
- Frame:TweenPosition(UDim2.new(-.13, 0, 0.35, 0), "Out", "Quad", .25)
- wait(.25)
- opened = false
- end
- end)
- ToggleBtn.MouseButton1Click:Connect(function()
- if toggle == false then
- checkPosOnce = false
- toggle = true
- ToggleBtn.Text = "On"
- elseif toggle == true then
- toggle = false
- ToggleBtn.Text = "Off"
- end
- end)
- InvertBtn.MouseButton1Click:Connect(function()
- if invert == false then
- invert = true
- InvertBtn.Text = "On"
- elseif invert == true then
- invert = false
- InvertBtn.Text = "Off"
- end
- end)
- RangeAddBtn.MouseButton1Click:Connect(function()
- range = range + 1
- RangeTxt.Text = "Range: " .. tostring(range + 4)
- end)
- RangeSubtractBtn.MouseButton1Click:Connect(function()
- if range + 3 < 4 then else
- range = range - 1
- RangeTxt.Text = "Range: " .. tostring(range + 4)
- end
- end)
- local lastOne = false
- game:GetService"RunService".RenderStepped:Connect(function()
- if toggle == true then
- pcall(function()
- local addVal = -4 * (thing / 4)
- if lastOne == true then
- addVal = -((range - thing) + (4 * (thing / 4)))
- end
- if game:GetService("Workspace")[game.Players.LocalPlayer.Name]:FindFirstChild("Sword") then
- game:GetService("Workspace")[game.Players.LocalPlayer.Name].Sword.GripPos=Vector3.new(0, 0, -2 + addVal)
- end
- if game:GetService("Workspace")[game.Players.LocalPlayer.Name]:FindFirstChild("MatSword") then
- game:GetService("Workspace")[game.Players.LocalPlayer.Name].MatSword.GripPos=Vector3.new(0, 0, -2 + addVal)
- end
- if lastOne == true then
- thing = 0
- lastOne = false
- if invert == true then
- thing = -range / 2
- end
- elseif lastOne == false then
- if thing + 4 < range then
- thing = thing + 4
- else
- lastOne = true
- end
- end
- end)
- elseif toggle == false then
- pcall(function()
- if checkPosOnce == false then
- checkPosOnce = true
- if game:GetService("Workspace")[game.Players.LocalPlayer.Name]:FindFirstChild("Sword") then
- game:GetService("Workspace")[game.Players.LocalPlayer.Name].Sword.GripPos=Vector3.new(0, 0, -2)
- end
- if game:GetService("Workspace")[game.Players.LocalPlayer.Name]:FindFirstChild("MatSword") then
- game:GetService("Workspace")[game.Players.LocalPlayer.Name].MatSword.GripPos=Vector3.new(0, 0, -2)
- end
- end
- end)
- end
- end)
Add Comment
Please, Sign In to add comment