Advertisement
ExecutorForALLdomain

God Mod OC

Jun 18th, 2024
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local ImageLabel = Instance.new("ImageLabel")
  8. local UICorner = Instance.new("UICorner")
  9. local TextButton = Instance.new("TextButton")
  10. local UICorner_2 = Instance.new("UICorner")
  11. local TextButton_2 = Instance.new("TextButton")
  12. local UICorner_3 = Instance.new("UICorner")
  13. local TextButton_3 = Instance.new("TextButton")
  14. local UICorner_4 = Instance.new("UICorner")
  15.  
  16. --Properties:
  17.  
  18. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  19.  
  20. ImageLabel.Parent = ScreenGui
  21. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  22. ImageLabel.BorderColor3 = Color3.fromRGB(0, 0, 0)
  23. ImageLabel.BorderSizePixel = 0
  24. ImageLabel.Position = UDim2.new(0.0876249075, 0, 0.21129033, 0)
  25. ImageLabel.Size = UDim2.new(0, 248, 0, 255)
  26. ImageLabel.Image = "http://www.roblox.com/asset/?id=12970925459"
  27.  
  28. UICorner.Parent = ImageLabel
  29.  
  30. TextButton.Parent = ImageLabel
  31. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  32. TextButton.BorderColor3 = Color3.fromRGB(0, 0, 0)
  33. TextButton.BorderSizePixel = 0
  34. TextButton.Position = UDim2.new(0.0443548374, 0, 0.403921574, 0)
  35. TextButton.Size = UDim2.new(0, 225, 0, 67)
  36. TextButton.Font = Enum.Font.SourceSans
  37. TextButton.Text = "Normal"
  38. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  39. TextButton.TextSize = 14.000
  40.  
  41. UICorner_2.Parent = TextButton
  42.  
  43. TextButton_2.Parent = ImageLabel
  44. TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  45. TextButton_2.BorderColor3 = Color3.fromRGB(0, 0, 0)
  46. TextButton_2.BorderSizePixel = 0
  47. TextButton_2.Position = UDim2.new(0.0443548374, 0, 0.0392156877, 0)
  48. TextButton_2.Size = UDim2.new(0, 225, 0, 84)
  49. TextButton_2.Font = Enum.Font.SourceSans
  50. TextButton_2.Text = "God Mod"
  51. TextButton_2.TextColor3 = Color3.fromRGB(0, 0, 0)
  52. TextButton_2.TextSize = 14.000
  53.  
  54. UICorner_3.Parent = TextButton_2
  55.  
  56. TextButton_3.Parent = ImageLabel
  57. TextButton_3.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  58. TextButton_3.BorderColor3 = Color3.fromRGB(0, 0, 0)
  59. TextButton_3.BorderSizePixel = 0
  60. TextButton_3.Position = UDim2.new(0.0443548374, 0, 0.701960802, 0)
  61. TextButton_3.Size = UDim2.new(0, 225, 0, 67)
  62. TextButton_3.Font = Enum.Font.SourceSans
  63. TextButton_3.Text = "Reset"
  64. TextButton_3.TextColor3 = Color3.fromRGB(0, 0, 0)
  65. TextButton_3.TextSize = 14.000
  66.  
  67. UICorner_4.Parent = TextButton_3
  68.  
  69. -- Scripts:
  70.  
  71. local function GQPSN_fake_script() -- TextButton.LocalScript
  72. local script = Instance.new('LocalScript', TextButton)
  73.  
  74. local function OnClick()
  75. game:GetService("ReplicatedStorage").Events.ChangeMaxHealth:FireServer(100)
  76. end
  77. local button = script.Parent
  78. button.MouseButton1Click:Connect(OnClick)
  79. end
  80. coroutine.wrap(GQPSN_fake_script)()
  81. local function LBPOZHO_fake_script() -- TextButton_2.LocalScript
  82. local script = Instance.new('LocalScript', TextButton_2)
  83.  
  84. local function OnClick()
  85. game:GetService("ReplicatedStorage").Events.ChangeMaxHealth:FireServer(0/0)
  86. end
  87. local button = script.Parent
  88. button.MouseButton1Click:Connect(OnClick)
  89. end
  90. coroutine.wrap(LBPOZHO_fake_script)()
  91. local function OAXYDFX_fake_script() -- TextButton_3.LocalScript
  92. local script = Instance.new('LocalScript', TextButton_3)
  93.  
  94. local function OnClick()
  95. game:GetService("ReplicatedStorage").Events.ChangeMaxHealth:FireServer(0)
  96. end
  97. local button = script.Parent
  98. button.MouseButton1Click:Connect(OnClick)
  99. end
  100. coroutine.wrap(OAXYDFX_fake_script)()
  101. local function QRBV_fake_script() -- ImageLabel.LocalScript
  102. local script = Instance.new('LocalScript', ImageLabel)
  103.  
  104. local UserInputService = game:GetService("UserInputService")
  105.  
  106. local gui = script.Parent
  107.  
  108. local dragging
  109. local dragInput
  110. local dragStart
  111. local startPos
  112.  
  113. local function update(input)
  114. local delta = input.Position - dragStart
  115. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  116. end
  117.  
  118. gui.InputBegan:Connect(function(input)
  119. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  120. dragging = true
  121. dragStart = input.Position
  122. startPos = gui.Position
  123.  
  124. input.Changed:Connect(function()
  125. if input.UserInputState == Enum.UserInputState.End then
  126. dragging = false
  127. end
  128. end)
  129. end
  130. end)
  131.  
  132. gui.InputChanged:Connect(function(input)
  133. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  134. dragInput = input
  135. end
  136. end)
  137.  
  138. UserInputService.InputChanged:Connect(function(input)
  139. if input == dragInput and dragging then
  140. update(input)
  141. end
  142. end)
  143. end
  144. coroutine.wrap(QRBV_fake_script)()
  145.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement