Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- plr = game.Players.LocalPlayer
- local HintCreator = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local mh = Instance.new("TextButton")
- local ht = Instance.new("TextBox")
- local dh = Instance.new("TextButton")
- -- Properties
- HintCreator.Name = "HintCreator"
- HintCreator.Parent = plr.PlayerGui
- HintCreator.ResetOnSpawn = false
- Frame.Parent = HintCreator
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BackgroundTransparency = 0.40000000596046
- Frame.Draggable = true
- Frame.Position = UDim2.new(0.0024783148, 0, 0.241784036, 0)
- Frame.Size = UDim2.new(0, 346, 0, 249)
- mh.Name = "mh"
- mh.Parent = Frame
- mh.BackgroundColor3 = Color3.new(0, 0, 0)
- mh.BackgroundTransparency = 0.40000000596046
- mh.Position = UDim2.new(0.0621387288, 0, 0.742971897, 0)
- mh.Size = UDim2.new(0, 134, 0, 30)
- mh.Font = Enum.Font.SciFi
- mh.FontSize = Enum.FontSize.Size14
- mh.Text = "Create Hint"
- mh.TextColor3 = Color3.new(0, 1, 0)
- mh.TextSize = 14
- mh.MouseButton1Click:connect(function()
- if workspace:FindFirstChildOfClass("Hint") then
- local h = workspace:FindFirstChildOfClass("Hint")
- h.Text = ht.Text
- else
- h = Instance.new("Hint", game:GetService("Workspace"))
- h.Text = ht.Text
- end
- end)
- ht.Name = "ht"
- ht.Parent = Frame
- ht.BackgroundColor3 = Color3.new(0, 0, 0)
- ht.BackgroundTransparency = 0.30000001192093
- ht.Position = UDim2.new(0.0635838136, 0, 0.0481927693, 0)
- ht.Size = UDim2.new(0, 306, 0, 166)
- ht.Font = Enum.Font.SciFi
- ht.FontSize = Enum.FontSize.Size14
- ht.Text = "Hint Text"
- ht.TextColor3 = Color3.new(1, 1, 1)
- ht.TextSize = 14
- dh.Name = "dh"
- dh.Parent = Frame
- dh.BackgroundColor3 = Color3.new(0, 0, 0)
- dh.BackgroundTransparency = 0.40000000596046
- dh.Position = UDim2.new(0.530346811, 0, 0.742971897, 0)
- dh.Size = UDim2.new(0, 134, 0, 30)
- dh.Font = Enum.Font.SciFi
- dh.FontSize = Enum.FontSize.Size14
- dh.Text = "Delete Hint"
- dh.TextColor3 = Color3.new(1, 0, 0)
- dh.TextSize = 14
- dh.MouseButton1Click:connect(function()
- h:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement