Advertisement
RandomNewbieScripter

Untitled

Aug 30th, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. -- Objects
  2. plr = game.Players.LocalPlayer
  3. local HintCreator = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local mh = Instance.new("TextButton")
  6. local ht = Instance.new("TextBox")
  7. local dh = Instance.new("TextButton")
  8.  
  9. -- Properties
  10.  
  11. HintCreator.Name = "HintCreator"
  12. HintCreator.Parent = plr.PlayerGui
  13. HintCreator.ResetOnSpawn = false
  14.  
  15. Frame.Parent = HintCreator
  16. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  17. Frame.BackgroundTransparency = 0.40000000596046
  18. Frame.Draggable = true
  19. Frame.Position = UDim2.new(0.0024783148, 0, 0.241784036, 0)
  20. Frame.Size = UDim2.new(0, 346, 0, 249)
  21.  
  22. mh.Name = "mh"
  23. mh.Parent = Frame
  24. mh.BackgroundColor3 = Color3.new(0, 0, 0)
  25. mh.BackgroundTransparency = 0.40000000596046
  26. mh.Position = UDim2.new(0.0621387288, 0, 0.742971897, 0)
  27. mh.Size = UDim2.new(0, 134, 0, 30)
  28. mh.Font = Enum.Font.SciFi
  29. mh.FontSize = Enum.FontSize.Size14
  30. mh.Text = "Create Hint"
  31. mh.TextColor3 = Color3.new(0, 1, 0)
  32. mh.TextSize = 14
  33. mh.MouseButton1Click:connect(function()
  34.     if workspace:FindFirstChildOfClass("Hint") then
  35.         local h = workspace:FindFirstChildOfClass("Hint")
  36.         h.Text = ht.Text
  37.     else
  38.      h = Instance.new("Hint", game:GetService("Workspace"))
  39.         h.Text = ht.Text
  40.         end
  41. end)
  42.  
  43. ht.Name = "ht"
  44. ht.Parent = Frame
  45. ht.BackgroundColor3 = Color3.new(0, 0, 0)
  46. ht.BackgroundTransparency = 0.30000001192093
  47. ht.Position = UDim2.new(0.0635838136, 0, 0.0481927693, 0)
  48. ht.Size = UDim2.new(0, 306, 0, 166)
  49. ht.Font = Enum.Font.SciFi
  50. ht.FontSize = Enum.FontSize.Size14
  51. ht.Text = "Hint Text"
  52. ht.TextColor3 = Color3.new(1, 1, 1)
  53. ht.TextSize = 14
  54.  
  55. dh.Name = "dh"
  56. dh.Parent = Frame
  57. dh.BackgroundColor3 = Color3.new(0, 0, 0)
  58. dh.BackgroundTransparency = 0.40000000596046
  59. dh.Position = UDim2.new(0.530346811, 0, 0.742971897, 0)
  60. dh.Size = UDim2.new(0, 134, 0, 30)
  61. dh.Font = Enum.Font.SciFi
  62. dh.FontSize = Enum.FontSize.Size14
  63. dh.Text = "Delete Hint"
  64. dh.TextColor3 = Color3.new(1, 0, 0)
  65. dh.TextSize = 14
  66. dh.MouseButton1Click:connect(function()
  67.     h:Destroy()
  68. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement