xvc200

0 gravity gui

Feb 2nd, 2025
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local Gravity0gui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9. local close = Instance.new("TextButton")
  10. local TextLabel = Instance.new("TextLabel")
  11.  
  12. --Properties:
  13.  
  14. Gravity0gui.Name = "Gravity0gui"
  15. Gravity0gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  16. Gravity0gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  17. Gravity0gui.ResetOnSpawn = false
  18.  
  19. Frame.Parent = Gravity0gui
  20. Frame.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  21. Frame.BackgroundTransparency = 0.800
  22. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  23. Frame.BorderSizePixel = 0
  24. Frame.Position = UDim2.new(0.416666687, 0, 0.324275374, 0)
  25. Frame.Size = UDim2.new(0, 140, 0, 64)
  26. Frame.Active = true
  27. Frame.Draggable = true
  28.  
  29. TextButton.Parent = Frame
  30. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  31. TextButton.BackgroundTransparency = 1.020
  32. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  33. TextButton.BorderSizePixel = 0
  34. TextButton.Position = UDim2.new(0, 0, 0.203125, 0)
  35. TextButton.Size = UDim2.new(0, 140, 0, 51)
  36. TextButton.Font = Enum.Font.SourceSans
  37. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  38. TextButton.TextSize = 14.000
  39.  
  40. close.Name = "close"
  41. close.Parent = Frame
  42. close.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  43. close.BorderColor3 = Color3.fromRGB(0, 0, 0)
  44. close.Position = UDim2.new(1.08571434, 0, -0.268075943, 0)
  45. close.Size = UDim2.new(0, 17, 0, 17)
  46. close.Font = Enum.Font.SourceSans
  47. close.Text = "X"
  48. close.TextColor3 = Color3.fromRGB(255, 255, 255)
  49. close.TextScaled = true
  50. close.TextSize = 14.000
  51. close.TextWrapped = true
  52.  
  53. TextLabel.Parent = Frame
  54. TextLabel.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
  55. TextLabel.BackgroundTransparency = 0.300
  56. TextLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  57. TextLabel.BorderSizePixel = 0
  58. TextLabel.Size = UDim2.new(0, 140, 0, 13)
  59. TextLabel.Font = Enum.Font.SourceSans
  60. TextLabel.Text = ""
  61. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
  62. TextLabel.TextSize = 14.000
  63.  
  64. -- Scripts:
  65.  
  66. local function AQYMHHH_fake_script() -- TextButton.LocalScript
  67. local script = Instance.new('LocalScript', TextButton)
  68.  
  69. local button = script.Parent
  70. local gravityOn = false
  71.  
  72. button.Text = "0 Gravity: Off"
  73. button.TextColor3 = Color3.new(1, 0, 0) -- Kırmızı yazı rengi
  74.  
  75. button.MouseButton1Click:Connect(function()
  76. gravityOn = not gravityOn
  77.  
  78. if gravityOn then
  79. game.Workspace.Gravity = 0
  80. button.Text = "0 Gravity: On"
  81. button.TextColor3 = Color3.new(0, 1, 0) -- Yeşil yazı rengi
  82. else
  83. game.Workspace.Gravity = 196.2 -- Varsayılan yerçekimi
  84. button.Text = "0 Gravity: Off"
  85. button.TextColor3 = Color3.new(1, 0, 0) -- Kırmızı yazı rengi
  86. end
  87. end)
  88.  
  89. end
  90. coroutine.wrap(AQYMHHH_fake_script)()
  91. local function OELZOKV_fake_script() -- close.LocalScript
  92. local script = Instance.new('LocalScript', close)
  93.  
  94. local button = script.Parent
  95. local gui = button.Parent.Parent -- Gravity0gui'yi alır
  96.  
  97. button.MouseButton1Click:Connect(function()
  98. gui.Enabled = false -- GUI'yi kapat
  99. end)
  100.  
  101. end
  102. coroutine.wrap(OELZOKV_fake_script)()
  103.  
Advertisement
Add Comment
Please, Sign In to add comment