Advertisement
Imakerblxscripts55

Speed Gui

Aug 26th, 2024 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. -- Erstelle ein ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  4.  
  5. -- Erstelle einen TextLabel für die GUI
  6. local textLabel = Instance.new("TextLabel")
  7. textLabel.Parent = screenGui
  8. textLabel.Text = "Speed Changer made by grappabroskiskibidilewandoski on dc"
  9. textLabel.Size = UDim2.new(0, 200, 0, 50)
  10. textLabel.Position = UDim2.new(0.5, -100, 0, 20)
  11. textLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
  12. textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  13. textLabel.TextScaled = true
  14.  
  15. -- Erstelle einen Slider (in diesem Fall ein TextBox als Eingabe)
  16. local textBox = Instance.new("TextBox")
  17. textBox.Parent = screenGui
  18. textBox.PlaceholderText = "Enter Speed"
  19. textBox.Size = UDim2.new(0, 200, 0, 50)
  20. textBox.Position = UDim2.new(0.5, -100, 0, 80)
  21. textBox.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  22. textBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  23. textBox.TextScaled = true
  24.  
  25. -- Verbindung der TextBox mit dem Speed-Wert
  26. textBox.FocusLost:Connect(function(enterPressed)
  27. if enterPressed then
  28. local speed = tonumber(textBox.Text)
  29. if speed then
  30. -- Setze die Geschwindigkeit des Charakters
  31. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = speed
  32. end
  33. end
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement