Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:WaitForChild("Humanoid")
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.CoreGui
- local frame = Instance.new("Frame")
- frame.Size = UDim2.new(0, 300, 0, 150) -- Увеличен размер панели
- frame.Position = UDim2.new(0.5, -150, 0.5, -75) -- Центрирование на экране с учётом нового размера
- frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- frame.Draggable = true
- frame.Active = true
- frame.Parent = screenGui
- local jumpPowerBox = Instance.new("TextBox")
- jumpPowerBox.Size = UDim2.new(0, 150, 0, 50)
- jumpPowerBox.Position = UDim2.new(0, 0, 0, 0)
- jumpPowerBox.PlaceholderText = "Jump Power"
- jumpPowerBox.Parent = frame
- local walkSpeedBox = Instance.new("TextBox")
- walkSpeedBox.Size = UDim2.new(0, 150, 0, 50)
- walkSpeedBox.Position = UDim2.new(0, 150, 0, 0)
- walkSpeedBox.PlaceholderText = "Walk Speed"
- walkSpeedBox.Parent = frame
- local applyButton = Instance.new("TextButton")
- applyButton.Size = UDim2.new(0, 300, 0, 50)
- applyButton.Position = UDim2.new(0, 0, 0, 100)
- applyButton.Text = "Apply"
- applyButton.Parent = frame
- local function applySettings()
- local jumpPower = tonumber(jumpPowerBox.Text)
- local walkSpeed = tonumber(walkSpeedBox.Text)
- if jumpPower then
- humanoid.JumpPower = jumpPower
- end
- if walkSpeed then
- humanoid.WalkSpeed = walkSpeed
- end
- end
- applyButton.MouseButton1Click:Connect(applySettings)
- player.CharacterAdded:Connect(function(newCharacter)
- character = newCharacter
- humanoid = character:WaitForChild("Humanoid")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement