Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService('Players').LocalPlayer
- local char = player.Character
- --Gui
- local screen = Instance.new('ScreenGui')
- screen.Parent = player.PlayerGui
- screen.Name = 'screen1'
- --Textbox
- local ins = Instance.new('TextBox')
- ins.Parent = screen
- ins.Size = UDim2.new(0.2,0,0.1,0)
- ins.Position = UDim2.new(0.8,0,0.9,0)
- --Button
- local ins2 = Instance.new('TextButton')
- ins2.Parent = screen
- ins2.Size = UDim2.new(0.1,0,0.1,0)
- ins2.Position = UDim2.new(0.7,0,0.9,0)
- --Text
- function clicked()
- if char.Head:FindFirstChild('BillboardGui') then
- char.Head.BillboardGui:Destroy()
- else
- --BillBoard
- local b = Instance.new('BillboardGui')
- b.Parent = char.Head
- b.Size = UDim2.new(2,0,1,0)
- b.ExtentsOffset = Vector3.new(0,4,0)
- b.AlwaysOnTop = true
- --Text
- local te = Instance.new('TextLabel')
- te.Parent = b
- te.Size = UDim2.new(2,0,1,0)
- te.Text = ins.Text
- te.Position = UDim2.new(-0.5,0,0,0)
- te.TextScaled = true
- te.BackgroundTransparency = 1
- te.Font = 'Arcade'
- te.TextColor3 = Color3.new(BrickColor.White(0,0,0))
- end
- end
- ins2.MouseButton1Down:connect(clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement