Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Sword reach gui created by Taz.
- --This is the 4th version of it, and a complete revamp of my old one.
- --At the time of writing this, my discord is Taz#5441.
- --Enjoy.
- -- Objects
- local Swordreachv4 = Instance.new("ScreenGui")
- local Titlebar = Instance.new("Frame")
- local Title = Instance.new("TextLabel")
- local Minmise = Instance.new("TextButton")
- local Close = Instance.new("TextButton")
- local Mainframe = Instance.new("Frame")
- local Length = Instance.new("TextBox")
- local Width = Instance.new("TextBox")
- local Confirm = Instance.new("TextButton")
- local Lengthadd = Instance.new("TextButton")
- local Widthadd = Instance.new("TextButton")
- local Widthminus = Instance.new("TextButton")
- local Lengthminus = Instance.new("TextButton")
- local Menuchooser = Instance.new("Frame")
- local Mainbutton = Instance.new("TextButton")
- local Settingsbutton = Instance.new("TextButton")
- local Infobutton = Instance.new("TextButton")
- local Settings = Instance.new("Frame")
- local Annoy = Instance.new("TextButton")
- local Annoystatus = Instance.new("TextLabel")
- local Annoyvalue = Instance.new("TextBox")
- local Autovalue = Instance.new("TextButton")
- local Blueboxvalue = Instance.new("TextButton")
- local Doubleclickvalue = Instance.new("TextButton")
- local Auto = Instance.new("TextLabel")
- local Bluebox = Instance.new("TextLabel")
- local Doubleclick = Instance.new("TextLabel")
- local Destroytool = Instance.new("TextButton")
- local Blink = Instance.new("TextLabel")
- local Blinkvalue = Instance.new("TextButton")
- local Information = Instance.new("Frame")
- local Informationpage1 = Instance.new("Frame")
- local Informationauto = Instance.new("TextLabel")
- local Informationbluebox = Instance.new("TextLabel")
- local Informationannoy = Instance.new("TextLabel")
- local Informationdestroy = Instance.new("TextLabel")
- local Pageno1 = Instance.new("TextLabel")
- local Infoforward1 = Instance.new("TextButton")
- local Informationgeneral = Instance.new("TextLabel")
- local Informationpage2 = Instance.new("Frame")
- local Informationblink = Instance.new("TextLabel")
- local Pageno2 = Instance.new("TextLabel")
- local Infoback2 = Instance.new("TextButton")
- -- Properties
- Swordreachv4.Name = "Swordreachv4"
- Swordreachv4.Parent = game.StarterGui
- Titlebar.Name = "Titlebar"
- Titlebar.Parent = Swordreachv4
- Titlebar.Active = true
- Titlebar.BackgroundColor3 = Color3.new(1, 1, 1)
- Titlebar.BackgroundTransparency = 0.30000001192093
- Titlebar.Draggable = true
- Titlebar.Position = UDim2.new(0.32816872, 0, 0.0751252025, 0)
- Titlebar.Size = UDim2.new(0, 384, 0, 33)
- Title.Name = "Title"
- Title.Parent = Titlebar
- Title.BackgroundColor3 = Color3.new(1, 1, 1)
- Title.BackgroundTransparency = 1
- Title.BorderSizePixel = 0
- Title.Position = UDim2.new(0.2421875, 0, 0, 0)
- Title.Size = UDim2.new(0, 198, 0, 33)
- Title.ZIndex = 2
- Title.Font = Enum.Font.SciFi
- Title.Text = "Sword Reach"
- Title.TextSize = 30
- Title.TextWrapped = true
- Minmise.Name = "Minmise"
- Minmise.Parent = Titlebar
- Minmise.BackgroundColor3 = Color3.new(0.796079, 0.796079, 0.796079)
- Minmise.BorderColor3 = Color3.new(0.286275, 0.447059, 0.560784)
- Minmise.BorderSizePixel = 2
- Minmise.Position = UDim2.new(0.7578125, 0, 0, 0)
- Minmise.Size = UDim2.new(0, 33, 0, 33)
- Minmise.ZIndex = 2
- Minmise.Font = Enum.Font.SourceSans
- Minmise.Text = "-"
- Minmise.TextSize = 40
- Minmise.TextWrapped = true
- Close.Name = "Close"
- Close.Parent = Titlebar
- Close.BackgroundColor3 = Color3.new(0.796079, 0.796079, 0.796079)
- Close.BorderColor3 = Color3.new(0.286275, 0.447059, 0.560784)
- Close.BorderSizePixel = 2
- Close.Position = UDim2.new(0.9140625, 0, 0, 0)
- Close.Size = UDim2.new(0, 33, 0, 33)
- Close.ZIndex = 2
- Close.Font = Enum.Font.SourceSans
- Close.Text = "X"
- Close.TextSize = 35
- Close.TextWrapped = true
- Mainframe.Name = "Mainframe"
- Mainframe.Parent = Titlebar
- Mainframe.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
- Mainframe.BackgroundTransparency = 0.30000001192093
- Mainframe.BorderSizePixel = 0
- Mainframe.Position = UDim2.new(0.00260416674, 0, 2.75757575, 0)
- Mainframe.Size = UDim2.new(0, 383, 0, 270)
- Mainframe.Visible = false
- Length.Name = "Length"
- Length.Parent = Mainframe
- Length.BackgroundColor3 = Color3.new(1, 1, 1)
- Length.Position = UDim2.new(0.24151437, 0, 0.0732758492, 0)
- Length.Size = UDim2.new(0, 198, 0, 50)
- Length.Font = Enum.Font.Bodoni
- Length.Text = "Length"
- Length.TextSize = 40
- Width.Name = "Width"
- Width.Parent = Mainframe
- Width.BackgroundColor3 = Color3.new(1, 1, 1)
- Width.Position = UDim2.new(0.240208894, 0, 0.708205581, 0)
- Width.Size = UDim2.new(0, 198, 0, 50)
- Width.Font = Enum.Font.Bodoni
- Width.Text = "Width"
- Width.TextSize = 40
- Confirm.Name = "Confirm"
- Confirm.Parent = Mainframe
- Confirm.BackgroundColor3 = Color3.new(1, 1, 1)
- Confirm.Position = UDim2.new(0.302872062, 0, 0.407407433, 0)
- Confirm.Size = UDim2.new(0, 149, 0, 41)
- Confirm.Font = Enum.Font.Bodoni
- Confirm.Text = "Confirm"
- Confirm.TextSize = 25
- Lengthadd.Name = "Lengthadd"
- Lengthadd.Parent = Mainframe
- Lengthadd.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
- Lengthadd.Position = UDim2.new(0.785900772, 0, 0.0747126415, 0)
- Lengthadd.Size = UDim2.new(0, 50, 0, 50)
- Lengthadd.Font = Enum.Font.SourceSans
- Lengthadd.Text = "+"
- Lengthadd.TextColor3 = Color3.new(1, 1, 1)
- Lengthadd.TextSize = 50
- Widthadd.Name = "Widthadd"
- Widthadd.Parent = Mainframe
- Widthadd.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
- Widthadd.Position = UDim2.new(0.785900772, 0, 0.705938697, 0)
- Widthadd.Size = UDim2.new(0, 50, 0, 50)
- Widthadd.Font = Enum.Font.SourceSans
- Widthadd.Text = "+"
- Widthadd.TextColor3 = Color3.new(1, 1, 1)
- Widthadd.TextSize = 50
- Widthminus.Name = "Widthminus"
- Widthminus.Parent = Mainframe
- Widthminus.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
- Widthminus.Position = UDim2.new(0.0861618519, 0, 0.705938697, 0)
- Widthminus.Size = UDim2.new(0, 50, 0, 50)
- Widthminus.Font = Enum.Font.SourceSans
- Widthminus.Text = "-"
- Widthminus.TextColor3 = Color3.new(1, 1, 1)
- Widthminus.TextSize = 50
- Lengthminus.Name = "Lengthminus"
- Lengthminus.Parent = Mainframe
- Lengthminus.BackgroundColor3 = Color3.new(0.443137, 0.443137, 0.443137)
- Lengthminus.Position = UDim2.new(0.0861618519, 0, 0.0732758492, 0)
- Lengthminus.Size = UDim2.new(0, 50, 0, 50)
- Lengthminus.Font = Enum.Font.SourceSans
- Lengthminus.Text = "-"
- Lengthminus.TextColor3 = Color3.new(1, 1, 1)
- Lengthminus.TextSize = 50
- Menuchooser.Name = "Menuchooser"
- Menuchooser.Parent = Titlebar
- Menuchooser.BackgroundColor3 = Color3.new(0, 0, 0)
- Menuchooser.BackgroundTransparency = 0.5
- Menuchooser.Position = UDim2.new(0.00260416674, 0, 1, 0)
- Menuchooser.Size = UDim2.new(0, 383, 0, 58)
- Mainbutton.Name = "Mainbutton"
- Mainbutton.Parent = Menuchooser
- Mainbutton.BackgroundColor3 = Color3.new(0, 0, 0)
- Mainbutton.BackgroundTransparency = 0.5
- Mainbutton.BorderColor3 = Color3.new(1, 1, 1)
- Mainbutton.BorderSizePixel = 3
- Mainbutton.Position = UDim2.new(0, 0, 0.5, 0)
- Mainbutton.Size = UDim2.new(0, 77, 0, 29)
- Mainbutton.Font = Enum.Font.SourceSans
- Mainbutton.Text = "Reach"
- Mainbutton.TextColor3 = Color3.new(1, 1, 1)
- Mainbutton.TextScaled = true
- Mainbutton.TextSize = 14
- Mainbutton.TextWrapped = true
- Settingsbutton.Name = "Settingsbutton"
- Settingsbutton.Parent = Menuchooser
- Settingsbutton.BackgroundColor3 = Color3.new(0, 0, 0)
- Settingsbutton.BackgroundTransparency = 0.5
- Settingsbutton.BorderColor3 = Color3.new(1, 1, 1)
- Settingsbutton.BorderSizePixel = 3
- Settingsbutton.Position = UDim2.new(0.21671018, 0, 0.5, 0)
- Settingsbutton.Size = UDim2.new(0, 77, 0, 29)
- Settingsbutton.Font = Enum.Font.SourceSans
- Settingsbutton.Text = "Settings"
- Settingsbutton.TextColor3 = Color3.new(1, 1, 1)
- Settingsbutton.TextScaled = true
- Settingsbutton.TextSize = 14
- Settingsbutton.TextWrapped = true
- Infobutton.Name = "Infobutton"
- Infobutton.Parent = Menuchooser
- Infobutton.BackgroundColor3 = Color3.new(0, 0, 0)
- Infobutton.BackgroundTransparency = 0.5
- Infobutton.BorderColor3 = Color3.new(1, 1, 1)
- Infobutton.BorderSizePixel = 3
- Infobutton.Position = UDim2.new(0.43342036, 0, 0.5, 0)
- Infobutton.Size = UDim2.new(0, 77, 0, 29)
- Infobutton.Font = Enum.Font.SourceSans
- Infobutton.Text = "Info"
- Infobutton.TextColor3 = Color3.new(1, 1, 1)
- Infobutton.TextScaled = true
- Infobutton.TextSize = 14
- Infobutton.TextWrapped = true
- Settings.Name = "Settings"
- Settings.Parent = Titlebar
- Settings.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
- Settings.BackgroundTransparency = 0.30000001192093
- Settings.BorderSizePixel = 0
- Settings.Position = UDim2.new(0, 0, 2.75757575, 0)
- Settings.Size = UDim2.new(0, 384, 0, 380)
- Settings.Visible = false
- Annoy.Name = "Annoy"
- Annoy.Parent = Settings
- Annoy.BackgroundColor3 = Color3.new(1, 1, 1)
- Annoy.Position = UDim2.new(-0.00100000005, 0, 0.320526361, 0)
- Annoy.Size = UDim2.new(0, 182, 0, 40)
- Annoy.Font = Enum.Font.SourceSans
- Annoy.Text = "Annoy"
- Annoy.TextSize = 26
- Annoystatus.Name = "Annoystatus"
- Annoystatus.Parent = Annoy
- Annoystatus.BackgroundColor3 = Color3.new(1, 1, 1)
- Annoystatus.Size = UDim2.new(0, 200, 0, 50)
- Annoystatus.Visible = false
- Annoystatus.Font = Enum.Font.SourceSans
- Annoystatus.Text = "False"
- Annoystatus.TextSize = 14
- Annoyvalue.Name = "Annoyvalue"
- Annoyvalue.Parent = Settings
- Annoyvalue.BackgroundColor3 = Color3.new(1, 1, 1)
- Annoyvalue.Position = UDim2.new(0.536458313, 0, 0.322186232, 0)
- Annoyvalue.Size = UDim2.new(0, 178, 0, 40)
- Annoyvalue.Font = Enum.Font.SourceSans
- Annoyvalue.Text = "Interval"
- Annoyvalue.TextSize = 26
- Autovalue.Name = "Autovalue"
- Autovalue.Parent = Settings
- Autovalue.BackgroundColor3 = Color3.new(1, 1, 1)
- Autovalue.Position = UDim2.new(0.536458313, 0, 0.0220242888, 0)
- Autovalue.Size = UDim2.new(0, 178, 0, 40)
- Autovalue.Font = Enum.Font.SourceSans
- Autovalue.Text = "False"
- Autovalue.TextSize = 26
- Blueboxvalue.Name = "Blueboxvalue"
- Blueboxvalue.Parent = Settings
- Blueboxvalue.BackgroundColor3 = Color3.new(1, 1, 1)
- Blueboxvalue.Position = UDim2.new(0.536458313, 0, 0.177449375, 0)
- Blueboxvalue.Size = UDim2.new(0, 178, 0, 40)
- Blueboxvalue.Font = Enum.Font.SourceSans
- Blueboxvalue.Text = "False"
- Blueboxvalue.TextSize = 26
- Doubleclickvalue.Name = "Doubleclickvalue"
- Doubleclickvalue.Parent = Settings
- Doubleclickvalue.BackgroundColor3 = Color3.new(1, 1, 1)
- Doubleclickvalue.Position = UDim2.new(0.536458313, 0, 0.462307662, 0)
- Doubleclickvalue.Size = UDim2.new(0, 178, 0, 40)
- Doubleclickvalue.Font = Enum.Font.SourceSans
- Doubleclickvalue.Text = "False"
- Doubleclickvalue.TextSize = 26
- Auto.Name = "Auto"
- Auto.Parent = Settings
- Auto.BackgroundColor3 = Color3.new(1, 1, 1)
- Auto.Position = UDim2.new(0, 0, 0.0199999996, 0)
- Auto.Size = UDim2.new(0, 182, 0, 40)
- Auto.Font = Enum.Font.SourceSans
- Auto.Text = "Auto"
- Auto.TextSize = 26
- Bluebox.Name = "Bluebox"
- Bluebox.Parent = Settings
- Bluebox.BackgroundColor3 = Color3.new(1, 1, 1)
- Bluebox.Position = UDim2.new(0.00300000003, 0, 0.177368447, 0)
- Bluebox.Size = UDim2.new(0, 182, 0, 40)
- Bluebox.Font = Enum.Font.SourceSans
- Bluebox.Text = "Bluebox"
- Bluebox.TextSize = 26
- Doubleclick.Name = "Doubleclick"
- Doubleclick.Parent = Settings
- Doubleclick.BackgroundColor3 = Color3.new(1, 1, 1)
- Doubleclick.Position = UDim2.new(0, 0, 0.463684231, 0)
- Doubleclick.Size = UDim2.new(0, 182, 0, 40)
- Doubleclick.Font = Enum.Font.SourceSans
- Doubleclick.Text = "Doubleclick"
- Doubleclick.TextSize = 26
- Destroytool.Name = "Destroytool"
- Destroytool.Parent = Settings
- Destroytool.BackgroundColor3 = Color3.new(1, 1, 1)
- Destroytool.Position = UDim2.new(0.221354187, 0, 0.792105258, 0)
- Destroytool.Size = UDim2.new(0, 214, 0, 79)
- Destroytool.Font = Enum.Font.SourceSans
- Destroytool.Text = "Destroy Current Tool"
- Destroytool.TextScaled = true
- Destroytool.TextSize = 26
- Destroytool.TextWrapped = true
- Blink.Name = "Blink"
- Blink.Parent = Settings
- Blink.BackgroundColor3 = Color3.new(1, 1, 1)
- Blink.Position = UDim2.new(0.00260416674, 0, 0.608421087, 0)
- Blink.Size = UDim2.new(0, 182, 0, 40)
- Blink.Font = Enum.Font.SourceSans
- Blink.Text = "Blink"
- Blink.TextSize = 26
- Blinkvalue.Name = "Blinkvalue"
- Blinkvalue.Parent = Settings
- Blinkvalue.BackgroundColor3 = Color3.new(1, 1, 1)
- Blinkvalue.Position = UDim2.new(0.536458313, 0, 0.607044518, 0)
- Blinkvalue.Size = UDim2.new(0, 178, 0, 40)
- Blinkvalue.Font = Enum.Font.SourceSans
- Blinkvalue.Text = "False"
- Blinkvalue.TextSize = 26
- Information.Name = "Information"
- Information.Parent = Titlebar
- Information.BackgroundColor3 = Color3.new(1, 1, 1)
- Information.Position = UDim2.new(0, 0, 2.75757575, 0)
- Information.Size = UDim2.new(0, 384, 0, 38)
- Informationpage1.Name = "Informationpage1"
- Informationpage1.Parent = Information
- Informationpage1.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
- Informationpage1.BackgroundTransparency = 0.30000001192093
- Informationpage1.BorderSizePixel = 0
- Informationpage1.Position = UDim2.new(1.31924171e-05, 0, 1.00568724, 0)
- Informationpage1.Size = UDim2.new(0, 383, 0, 270)
- Informationauto.Name = "Informationauto"
- Informationauto.Parent = Informationpage1
- Informationauto.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Informationauto.BorderSizePixel = 0
- Informationauto.Position = UDim2.new(0, 0, 0.0296296328, 0)
- Informationauto.Size = UDim2.new(0, 160, 0, 50)
- Informationauto.Font = Enum.Font.SourceSansBold
- Informationauto.Text = "Auto makes it so that when you die, your reach is automatically applied."
- Informationauto.TextColor3 = Color3.new(1, 1, 1)
- Informationauto.TextScaled = true
- Informationauto.TextSize = 14
- Informationauto.TextWrapped = true
- Informationbluebox.Name = "Informationbluebox"
- Informationbluebox.Parent = Informationpage1
- Informationbluebox.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Informationbluebox.BorderSizePixel = 0
- Informationbluebox.Position = UDim2.new(0.582245409, 0, 0.0296296328, 0)
- Informationbluebox.Size = UDim2.new(0, 160, 0, 50)
- Informationbluebox.Font = Enum.Font.SourceSansBold
- Informationbluebox.Text = "Bluebox puts a blue selectionbox around your sword"
- Informationbluebox.TextColor3 = Color3.new(1, 1, 1)
- Informationbluebox.TextScaled = true
- Informationbluebox.TextSize = 14
- Informationbluebox.TextWrapped = true
- Informationannoy.Name = "Informationannoy"
- Informationannoy.Parent = Informationpage1
- Informationannoy.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Informationannoy.BorderSizePixel = 0
- Informationannoy.Position = UDim2.new(0, 0, 0.353703707, 0)
- Informationannoy.Size = UDim2.new(0, 160, 0, 60)
- Informationannoy.Font = Enum.Font.SourceSansBold
- Informationannoy.Text = "Annoy spams your sword so that it makes the annoying sheathing noise over and over again."
- Informationannoy.TextColor3 = Color3.new(1, 1, 1)
- Informationannoy.TextScaled = true
- Informationannoy.TextSize = 14
- Informationannoy.TextWrapped = true
- Informationdestroy.Name = "Informationdestroy"
- Informationdestroy.Parent = Informationpage1
- Informationdestroy.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Informationdestroy.BorderSizePixel = 0
- Informationdestroy.Position = UDim2.new(0.582245409, 0, 0.355555564, 0)
- Informationdestroy.Size = UDim2.new(0, 160, 0, 60)
- Informationdestroy.Font = Enum.Font.SourceSansBold
- Informationdestroy.Text = "If you find that you have more than one sword in your inventory and one of them is broken, destroytool should fix it."
- Informationdestroy.TextColor3 = Color3.new(1, 1, 1)
- Informationdestroy.TextScaled = true
- Informationdestroy.TextSize = 14
- Informationdestroy.TextWrapped = true
- Pageno1.Name = "Pageno1"
- Pageno1.Parent = Informationpage1
- Pageno1.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Pageno1.BorderSizePixel = 0
- Pageno1.Position = UDim2.new(0.43342036, 0, 0.6703704, 0)
- Pageno1.Size = UDim2.new(0, 57, 0, 60)
- Pageno1.Font = Enum.Font.SourceSansBold
- Pageno1.Text = "1"
- Pageno1.TextColor3 = Color3.new(1, 1, 1)
- Pageno1.TextScaled = true
- Pageno1.TextSize = 14
- Pageno1.TextWrapped = true
- Infoforward1.Name = "Infoforward1"
- Infoforward1.Parent = Informationpage1
- Infoforward1.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Infoforward1.Position = UDim2.new(0.634464741, 0, 0.67037034, 0)
- Infoforward1.Size = UDim2.new(0, 57, 0, 60)
- Infoforward1.Font = Enum.Font.SourceSans
- Infoforward1.Text = ">"
- Infoforward1.TextColor3 = Color3.new(1, 1, 1)
- Infoforward1.TextScaled = true
- Infoforward1.TextSize = 14
- Infoforward1.TextWrapped = true
- Informationgeneral.Name = "Informationgeneral"
- Informationgeneral.Parent = Information
- Informationgeneral.BackgroundColor3 = Color3.new(0.815686, 0.815686, 0.815686)
- Informationgeneral.BorderSizePixel = 0
- Informationgeneral.Size = UDim2.new(0, 384, 0, 38)
- Informationgeneral.Font = Enum.Font.SourceSans
- Informationgeneral.Text = "Thanks for using my GUI. These pages will give some information about certain functions of the gui."
- Informationgeneral.TextScaled = true
- Informationgeneral.TextSize = 14
- Informationgeneral.TextWrapped = true
- Informationpage2.Name = "Informationpage2"
- Informationpage2.Parent = Information
- Informationpage2.BackgroundColor3 = Color3.new(0.584314, 0.584314, 0.584314)
- Informationpage2.BackgroundTransparency = 0.30000001192093
- Informationpage2.BorderSizePixel = 0
- Informationpage2.Position = UDim2.new(0.00261735916, 0, 1.00568724, 0)
- Informationpage2.Size = UDim2.new(0, 383, 0, 270)
- Informationpage2.Visible = false
- Informationblink.Name = "Informationblink"
- Informationblink.Parent = Informationpage2
- Informationblink.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Informationblink.BorderSizePixel = 0
- Informationblink.Size = UDim2.new(0, 383, 0, 165)
- Informationblink.Font = Enum.Font.SourceSansBold
- Informationblink.Text = "Blink is a very strange function. When activated, your sword volume will go over 40, and you'll be frozen in place on the server. However on the client, you can move around freely, and kill people. They will be killed in real-time, unlike a lag switch, and you'll also be able to see them moving unlike a lag switch. (You can deactivate it if they get too close.) When deactivated, your character on the server is teleported to your position on the client."
- Informationblink.TextColor3 = Color3.new(1, 1, 1)
- Informationblink.TextScaled = true
- Informationblink.TextSize = 14
- Informationblink.TextWrapped = true
- Pageno2.Name = "Pageno2"
- Pageno2.Parent = Informationpage2
- Pageno2.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Pageno2.BorderSizePixel = 0
- Pageno2.Position = UDim2.new(0.43342036, 0, 0.6703704, 0)
- Pageno2.Size = UDim2.new(0, 57, 0, 60)
- Pageno2.Font = Enum.Font.SourceSansBold
- Pageno2.Text = "2"
- Pageno2.TextColor3 = Color3.new(1, 1, 1)
- Pageno2.TextScaled = true
- Pageno2.TextSize = 14
- Pageno2.TextWrapped = true
- Infoback2.Name = "Infoback2"
- Infoback2.Parent = Informationpage2
- Infoback2.BackgroundColor3 = Color3.new(0.258824, 0.258824, 0.258824)
- Infoback2.Position = UDim2.new(0.240208879, 0, 0.67037034, 0)
- Infoback2.Size = UDim2.new(0, 57, 0, 60)
- Infoback2.Font = Enum.Font.SourceSans
- Infoback2.Text = "<"
- Infoback2.TextColor3 = Color3.new(1, 1, 1)
- Infoback2.TextScaled = true
- Infoback2.TextSize = 14
- Infoback2.TextWrapped = true
- --Other
- Swordreachv4.Parent = game.CoreGui --Because i keep goddamn forgetting
- --Variables
- local targetSword
- local blueBox
- local reachLength = Length.Text
- local reachWidth = Width.Text
- local me = game:GetService('Players').LocalPlayer
- local blueBoxCheck
- local equippedCheck = false
- local myCharacter = me.character
- local myHumanoid = myCharacter.Humanoid
- local myMouse = me:GetMouse()
- local swordActivated = false
- local prevSwordGone = false
- --Scripting
- function getCharacterHumanoid()
- myCharacter = me.character
- myHumanoid = myCharacter.Humanoid
- end
- function setSwordReach()
- getCharacterHumanoid()
- for _,v in pairs(myCharacter:GetChildren()) do
- if v.ClassName == 'Tool' then
- equippedCheck = true
- end
- end
- if Length.Text == 'Length' then
- reachLength = 4
- else
- reachLength = Length.Text
- end
- if Width.Text == 'Width' then
- reachWidth = 1
- else
- reachWidth = Width.Text
- end
- getTargetTool()
- myHumanoid:EquipTool(targetSword)
- myHumanoid:UnequipTools()
- targetSword.Handle.Size = Vector3.new(reachWidth, 0, reachLength)
- if Blueboxvalue.Text == 'True' then
- blueBox = Instance.new('SelectionBox', targetSword.Handle)
- blueBox.Adornee = targetSword.Handle
- end
- if equippedCheck == true then
- getTargetTool()
- myHumanoid:EquipTool(targetSword)
- equippedCheck = false
- end
- end
- function getTargetTool()
- prevSwordGone = false
- for _,v in pairs(me.Backpack:GetChildren()) do
- if v.ClassName == 'Tool' then
- targetSword = v
- end
- end
- end
- Minmise.MouseButton1Down:connect(function()
- if Mainframe.Visible == true or Settings.Visible == true or Information.Visible == true then
- Mainframe.Visible = false
- Settings.Visible = false
- Information.Visible = false
- end
- end)
- Close.MouseButton1Down:connect(function()
- Swordreachv4:Destroy()
- script:Destroy()
- end)
- Mainbutton.MouseButton1Down:connect(function()
- Mainframe.Visible = true
- Settings.Visible = false
- Information.Visible = false
- end)
- Settingsbutton.MouseButton1Down:connect(function()
- Mainframe.Visible = false
- Settings.Visible = true
- Information.Visible = false
- end)
- Infobutton.MouseButton1Down:connect(function()
- Information.Visible = true
- Settings.Visible = false
- Mainframe.Visible = false
- end)
- Infoforward1.MouseButton1Down:connect(function()
- Informationpage1.Visible = false
- Informationpage2.Visible = true
- end)
- Infoback2.MouseButton1Down:connect(function()
- Informationpage1.Visible = true
- Informationpage2.Visible = false
- end)
- Autovalue.MouseButton1Down:connect(function()
- if Autovalue.Text == 'False' then
- Autovalue.Text = 'True'
- else
- Autovalue.Text = 'False'
- end
- end)
- Blueboxvalue.MouseButton1Down:connect(function()
- if Blueboxvalue.Text == 'False' then
- Blueboxvalue.Text = 'True'
- setSwordReach()
- else
- Blueboxvalue.Text = 'False'
- getTargetTool()
- blueBoxCheck = targetSword.Handle:FindFirstChild("SelectionBox")
- if blueBoxCheck then
- for _,v in pairs(targetSword.Handle:GetChildren()) do
- if v.ClassName == 'SelectionBox' then
- v:Destroy()
- end
- end
- end
- end
- end)
- Annoy.MouseButton1Down:connect(function()
- if Annoystatus.Text == 'False' then
- Annoy.Text = 'Annoy - True'
- Annoystatus.Text = 'True'
- while Annoystatus.Text == 'True' do
- getTargetTool()
- getCharacterHumanoid()
- myHumanoid:EquipTool(targetSword)
- wait(Annoyvalue.Text / 2)
- myHumanoid:UnequipTools()
- wait(Annoyvalue.Text / 2)
- if Annoystatus.Text == 'False' then
- break
- end
- end
- else
- Annoystatus.Text = 'False'
- Annoy.Text = 'Annoy - False'
- end
- end)
- Doubleclickvalue.MouseButton1Down:connect(function()
- if Doubleclickvalue.Text == 'True' then
- Doubleclickvalue.Text = 'False'
- elseif Doubleclickvalue.Text == 'False' then
- Doubleclickvalue.Text = 'True'
- getCharacterHumanoid()
- myHumanoid:UnequipTools()
- getTargetTool()
- while Doubleclickvalue.Text == 'True' do
- wait (0)
- targetSword.Activated:connect(function()
- if Doubleclickvalue.Text == 'False' then
- targetSword = nil
- elseif swordActivated == false then
- swordActivated = true
- wait (0.1)
- targetSword:Activate()
- wait(0)
- swordActivated = false
- end
- end)
- if Doubleclickvalue.Text == 'False' then
- break
- end
- end
- else
- Doubleclickvalue.Text = 'False'
- end
- end)
- Blinkvalue.MouseButton1Down:connect(function()
- if Blinkvalue.Text == 'False' then
- getTargetTool()
- getCharacterHumanoid()
- for _,v in pairs(myCharacter:GetChildren()) do
- if v.ClassName == 'Tool' then
- equippedCheck = true
- end
- end
- getTargetTool()
- myHumanoid:EquipTool(targetSword)
- myHumanoid:UnequipTools()
- targetSword.Handle.Size = Vector3.new(8, 0, 5)
- if Blueboxvalue.Text == 'True' then
- blueBox = Instance.new('SelectionBox', targetSword.Handle)
- blueBox.Adornee = targetSword.Handle
- end
- if equippedCheck == true then
- getTargetTool()
- myHumanoid:EquipTool(targetSword)
- equippedCheck = false
- end
- Blinkvalue.Text = 'True'
- elseif Blinkvalue.Text == 'True' then
- setSwordReach()
- Blinkvalue.Text = 'False'
- else
- Blinkvalue.Text = 'False'
- end
- end)
- Destroytool.MouseButton1Down:connect(function()
- targetSword:Destroy()
- getTargetTool()
- setSwordReach()
- end)
- Confirm.MouseButton1Down:connect(function()
- setSwordReach()
- end)
- Lengthadd.MouseButton1Down:connect(function()
- Length.Text = Length.Text + 1
- setSwordReach()
- end)
- Lengthminus.MouseButton1Down:connect(function()
- Length.Text = Length.Text - 1
- setSwordReach()
- end)
- Widthadd.MouseButton1Down:connect(function()
- Width.Text = Width.Text + 1
- setSwordReach()
- end)
- Widthminus.MouseButton1Down:connect(function()
- Width.Text = Width.Text - 1
- setSwordReach()
- end)
- me.CharacterAppearanceLoaded:connect(function()
- if Autovalue.Text == 'True' then
- getTargetTool()
- reachLength = 8
- reachWidth = 5
- setSwordReach()
- end
- end)
- me.Backpack.ChildAdded:connect(function(instance)
- if Autovalue.Text == 'True' and targetSword ~= instance then
- targetSword:Destroy()
- targetSword = instance
- wait(0)
- setSwordReach()
- end
- end)
- if game.Workspace.FilteringEnabled == false then
- Autovalue.Text = 'False'
- Blueboxvalue.Text = 'False'
- Doubleclickvalue.Text = 'False'
- Swordreachv4:Destroy()
- print("Fe is disabled")
- end
Add Comment
Please, Sign In to add comment