Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- local ScreenGui = Instance.new("ScreenGui")
- local Frame2 = Instance.new("Frame")
- local TextButton3 = Instance.new("TextButton")
- local Frame = Instance.new("Frame")
- local TextButton2 = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- local CloseButton = Instance.new("TextButton") -- Кнопка закрытия
- -- Добавление элементов для изменения WalkSpeed
- local WalkSpeedFrame = Instance.new("Frame")
- local Num = Instance.new("TextBox")
- local Plus = Instance.new("TextButton")
- local Minus = Instance.new("TextButton")
- --Properties:
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame2.Name = "Frame2"
- Frame2.Parent = ScreenGui
- Frame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame2.Position = UDim2.new(0.422948062, 0, 0.37327823, 0)
- Frame2.Size = UDim2.new(0, 363, 0, 199)
- Frame2.Visible = false
- Frame2.Style = Enum.FrameStyle.RobloxRound
- TextButton3.Name = "TextButton3"
- TextButton3.Parent = Frame2
- TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton3.Size = UDim2.new(0, 200, 0, 50)
- TextButton3.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton3.Font = Enum.Font.SourceSans
- TextButton3.Text = "Allow teleport in sky / void"
- TextButton3.TextColor3 = Color3.fromRGB(17, 34, 136)
- TextButton3.TextScaled = true
- TextButton3.TextSize = 14.000
- TextButton3.TextWrapped = true
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.Position = UDim2.new(0.832495809, 0, 0.508264482, 0)
- Frame.Size = UDim2.new(0, 200, 0, 67)
- Frame.Style = Enum.FrameStyle.RobloxRound
- TextButton2.Name = "TextButton2"
- TextButton2.Parent = Frame
- TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton2.Position = UDim2.new(0.191600069, 0, 1.14903104, 0)
- TextButton2.Size = UDim2.new(0, 113, 0, 35)
- TextButton2.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton2.Font = Enum.Font.SourceSans
- TextButton2.Text = "Settings"
- TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton2.TextSize = 14.000
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextButton.Position = UDim2.new(-0.0449999981, 0, 0.025828898, 0)
- TextButton.Size = UDim2.new(0, 200, 0, 50)
- TextButton.Style = Enum.ButtonStyle.RobloxRoundButton
- TextButton.Font = Enum.Font.SourceSans
- TextButton.Text = "False"
- TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
- TextButton.TextSize = 14.000
- -- Добавляем кнопку "закрытия"
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = Frame2
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0) -- Красный цвет
- CloseButton.Size = UDim2.new(0, 30, 0, 30)
- CloseButton.Position = UDim2.new(1, -40, 0, 10) -- В правом верхнем углу
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.TextSize = 20
- CloseButton.Font = Enum.Font.SourceSansBold
- -- Добавление элементов для управления WalkSpeed
- WalkSpeedFrame.Size = UDim2.new(0, 200, 0, 100)
- WalkSpeedFrame.Position = UDim2.new(0.5, -100, 0.7, -50)
- WalkSpeedFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- WalkSpeedFrame.Parent = Frame2
- WalkSpeedFrame.Active = true
- WalkSpeedFrame.Draggable = true
- Num.Size = UDim2.new(0.6, 0, 0.6, 0)
- Num.Position = UDim2.new(0.2, 0, 0.3, 0)
- Num.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
- Num.TextColor3 = Color3.new(1, 1, 1)
- Num.TextScaled = true
- Num.Font = Enum.Font.SourceSans
- Num.ClearTextOnFocus = true
- Num.Parent = WalkSpeedFrame
- Plus.Size = UDim2.new(0.2, 0, 0.6, 0)
- Plus.Position = UDim2.new(0.8, 0, 0.3, 0)
- Plus.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- Plus.TextColor3 = Color3.new(1, 1, 1)
- Plus.TextScaled = true
- Plus.Font = Enum.Font.SourceSans
- Plus.Text = "+"
- Plus.Parent = WalkSpeedFrame
- Minus.Size = UDim2.new(0.2, 0, 0.6, 0)
- Minus.Position = UDim2.new(0, 0, 0.3, 0)
- Minus.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
- Minus.TextColor3 = Color3.new(1, 1, 1)
- Minus.TextScaled = true
- Minus.Font = Enum.Font.SourceSans
- Minus.Text = "-"
- Minus.Parent = WalkSpeedFrame
- -- Scripts:
- local function RVRTSG_fake_script() -- TextButton.LocalScript
- local script = Instance.new('LocalScript', TextButton)
- local frame = script.Parent.Parent -- Take out {}s, and put name of frame
- frame.Draggable = true
- frame.Active = true
- frame.Selectable = true
- local player = game.Players.LocalPlayer
- local mouse = player:GetMouse()
- local Toggle = false
- local Toggle2 = false
- local Toggle3 = false
- local isCtrlPressed = false
- local AV = nil
- local number
- local humanoid
- local EditingNum = false
- print("Script Launched")
- -- Обработчик для нажатия кнопки TextButton
- script.Parent.Activated:Connect(function()
- if Toggle == true then
- Toggle = false
- script.Parent.Text = ("False")
- print("Now False")
- elseif Toggle == false then
- Toggle = true
- script.Parent.Text = ("True")
- print("Now True")
- end
- end)
- -- Обработчик для нажатия клавиш и мыши
- UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
- if gameProcessedEvent then return end
- -- Проверка на нажатие Ctrl
- if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.LeftControl then
- isCtrlPressed = true
- end
- end)
- -- Обработчик для отпускания клавиш
- UserInputService.InputEnded:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.Keyboard and input.KeyCode == Enum.KeyCode.LeftControl then
- isCtrlPressed = false
- end
- end)
- -- Логика для левый клик мыши + левый Ctrl
- mouse.Button1Down:Connect(function()
- if Toggle == true and isCtrlPressed then
- if mouse.Target ~= AV then
- player.Character.HumanoidRootPart.CFrame = mouse.Hit
- print("Teleported!")
- end
- end
- end)
- -- Обработчик для кнопки настроек
- spawn(function()
- script.Parent.Parent:FindFirstChild("TextButton2").Activated:Connect(function()
- script.Parent.Parent.Parent:FindFirstChild("Frame2").Visible = Toggle2
- if Toggle2 == true then
- Toggle2 = false
- print("Now False")
- elseif Toggle2 == false then
- Toggle2 = true
- print("Now True")
- end
- end)
- end)
- -- Кнопка для "Allow teleport in sky / void"
- script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is false"
- script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Activated:Connect(function()
- if Toggle3 == true then
- Toggle3 = false
- AV = "hi"
- script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is true"
- print("Now True")
- elseif Toggle3 == false then
- Toggle3 = true
- AV = nil
- script.Parent.Parent.Parent:FindFirstChild("Frame2").TextButton3.Text = "Allow teleport in sky / void is false"
- print("Now False")
- end
- end)
- -- Обработчик для кнопки "закрытия"
- CloseButton.Activated:Connect(function()
- -- Удаляем интерфейс и скрипт
- print("Unloading script...")
- ScreenGui:Destroy()
- end)
- -- Управление WalkSpeed
- local function UpdateNum()
- Num.Text = tostring(number)
- if humanoid then
- humanoid.WalkSpeed = number
- end
- end
- local function onCharacterAdded(character)
- humanoid = character:WaitForChild("Humanoid")
- number = humanoid.WalkSpeed
- number = 34
- humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
- if humanoid.WalkSpeed ~= number then
- humanoid.WalkSpeed = number
- end
- end)
- UpdateNum()
- end
- player.CharacterAdded:Connect(onCharacterAdded)
- if player.Character then
- onCharacterAdded(player.Character)
- end
- Plus.MouseButton1Click:Connect(function()
- number = number + 3
- UpdateNum()
- end)
- Minus.MouseButton1Click:Connect(function()
- if number > 0 then
- number = number - 1
- UpdateNum()
- end
- end)
- Num.Focused:Connect(function()
- EditingNum = true
- end)
- Num.FocusLost:Connect(function(enterPressed)
- EditingNum = false
- if enterPressed then
- local Value = tonumber(Num.Text)
- if Value and Value > 0 then
- number = Value
- UpdateNum()
- else
- UpdateNum()
- end
- end
- end)
- end
- coroutine.wrap(RVRTSG_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement