The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Universal gui script pastebin roblox
By Universal gui on 2024-11-25 08:00 am | Syntax: LUA | Views: 13



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. local library = loadstring(game:HttpGet(('https://raw.githubusercontent.com/AikaV3rm/UiLib/master/Lib.lua')))()
  2.  
  3. local w = library:CreateWindow("Universal Gui by ZeroFire#0340") -- Creates the window
  4.  
  5. local b = w:CreateFolder("Functions") -- Creates the folder(U will put here your buttons,etc)
  6.  
  7. b:Button("Return everything back to normal",function()
  8. game.Workspace.Gravity = 196.2
  9.  
  10. wait(0.1)
  11.  
  12. game.Players.LocalPlayer.Character.Head:Destroy()
  13.  
  14. end)
  15.  
  16. b:Button("Marble fly",function()
  17. local UserInputService = game:GetService("UserInputService")
  18. local RunService = game:GetService("RunService")
  19. local Camera = workspace.CurrentCamera
  20.  
  21. local SPEED_MULTIPLIER = 16
  22. local JUMP_POWER = 0
  23. local JUMP_GAP = 0
  24.  
  25. local character = game.Players.LocalPlayer.Character
  26.  
  27. for i,v in ipairs(character:GetDescendants()) do
  28.    if v:IsA("BasePart") then
  29.        v.CanCollide = false
  30.    end
  31. end
  32.  
  33. local ball = character.HumanoidRootPart
  34. ball.Shape = Enum.PartType.Ball
  35. ball.Size = Vector3.new(5,5,5)
  36. local humanoid = character:WaitForChild("Humanoid")
  37. local params = RaycastParams.new()
  38. params.FilterType = Enum.RaycastFilterType.Blacklist
  39. params.FilterDescendantsInstances = {character}
  40.  
  41. local tc = RunService.RenderStepped:Connect(function(delta)
  42.    ball.CanCollide = true
  43.    humanoid.PlatformStand = true
  44. if UserInputService:GetFocusedTextBox() then return end
  45. if UserInputService:IsKeyDown("W") then
  46. ball.RotVelocity -= Camera.CFrame.RightVector * delta * SPEED_MULTIPLIER
  47. end
  48. if UserInputService:IsKeyDown("A") then
  49. ball.RotVelocity -= Camera.CFrame.LookVector * delta * SPEED_MULTIPLIER
  50. end
  51. if UserInputService:IsKeyDown("S") then
  52. ball.RotVelocity += Camera.CFrame.RightVector * delta * SPEED_MULTIPLIER
  53. end
  54. if UserInputService:IsKeyDown("D") then
  55. ball.RotVelocity += Camera.CFrame.LookVector * delta * SPEED_MULTIPLIER
  56. end
  57. --ball.RotVelocity = ball.RotVelocity - Vector3.new(0,ball.RotVelocity.Y/50,0)
  58. end)
  59.  
  60. UserInputService.JumpRequest:Connect(function()
  61. local result = workspace:Raycast(
  62. ball.Position,
  63. Vector3.new(
  64. 0,
  65. -((ball.Size.Y/2)+JUMP_GAP),
  66. 0
  67. ),
  68. params
  69. )
  70. if result then
  71. ball.Velocity = ball.Velocity + Vector3.new(0,JUMP_POWER,0)
  72. end
  73. end)
  74.  
  75. Camera.CameraSubject = ball
  76. humanoid.Died:Connect(function() tc:Disconnect() end)
  77.  
  78. wait(1)
  79.  
  80. game.Workspace.Gravity = 0.3
  81.    
  82. end)
  83.  
  84. b:Slider("Walkspeed",{
  85.  
  86.     min = 8; -- min value of the slider
  87.     max = 100; -- max value of the slider
  88.     precise = true; -- max 2 decimals
  89. },function(value)
  90.     game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = (value)
  91. end)
  92.  
  93. b:Slider("Gravity",{
  94.  
  95.     min = 0; -- min value of the slider
  96.     max = 196.2; -- max value of the slider
  97.     precise = true; -- max 2 decimals
  98. },function(value)
  99. game.Workspace.Gravity = (value)
  100. end)
  101.  
  102. b:Slider("Jumppower",{
  103.  
  104.     min = 50; -- min value of the slider
  105.     max = 500; -- max value of the slider
  106.     precise = true; -- max 2 decimals
  107. },function(value)
  108. game.Players.LocalPlayer.Character.Humanoid.JumpPower = (value)
  109. end)
  110.  
  111. b:DestroyGui()



  • Recent Roblox Scripts