Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Erstelle ein ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- -- Erstelle einen TextLabel für die GUI
- local textLabel = Instance.new("TextLabel")
- textLabel.Parent = screenGui
- textLabel.Text = "Speed Changer made by grappabroskiskibidilewandoski on dc"
- textLabel.Size = UDim2.new(0, 200, 0, 50)
- textLabel.Position = UDim2.new(0.5, -100, 0, 20)
- textLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
- textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- textLabel.TextScaled = true
- -- Erstelle einen Slider (in diesem Fall ein TextBox als Eingabe)
- local textBox = Instance.new("TextBox")
- textBox.Parent = screenGui
- textBox.PlaceholderText = "Enter Speed"
- textBox.Size = UDim2.new(0, 200, 0, 50)
- textBox.Position = UDim2.new(0.5, -100, 0, 80)
- textBox.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
- textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- textBox.TextScaled = true
- -- Verbindung der TextBox mit dem Speed-Wert
- textBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- local speed = tonumber(textBox.Text)
- if speed then
- -- Setze die Geschwindigkeit des Charakters
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speed
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement