Advertisement
Rusty_Clock

Untitled

Jan 3rd, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. local player = game:GetService('Players').LocalPlayer
  2. local char = player.Character
  3.  
  4.  
  5. --Gui
  6. local screen = Instance.new('ScreenGui')
  7. screen.Parent = player.PlayerGui
  8. screen.Name = 'screen1'
  9. --Textbox
  10. local ins = Instance.new('TextBox')
  11. ins.Parent = screen
  12. ins.Size = UDim2.new(0.2,0,0.1,0)
  13. ins.Position = UDim2.new(0.8,0,0.9,0)
  14. --Button
  15. local ins2 = Instance.new('TextButton')
  16. ins2.Parent = screen
  17. ins2.Size = UDim2.new(0.1,0,0.1,0)
  18. ins2.Position = UDim2.new(0.7,0,0.9,0)
  19. --Text
  20. function clicked()
  21. if char.Head:FindFirstChild('BillboardGui') then
  22. char.Head.BillboardGui:Destroy()
  23. else
  24. --BillBoard
  25. local b = Instance.new('BillboardGui')
  26. b.Parent = char.Head
  27. b.Size = UDim2.new(2,0,1,0)
  28. b.ExtentsOffset = Vector3.new(0,4,0)
  29. b.AlwaysOnTop = true
  30. --Text
  31. local te = Instance.new('TextLabel')
  32. te.Parent = b
  33. te.Size = UDim2.new(2,0,1,0)
  34. te.Text = ins.Text
  35.  
  36. te.Position = UDim2.new(-0.5,0,0,0)
  37. te.TextScaled = true
  38. te.BackgroundTransparency = 1
  39. te.Font = 'Arcade'
  40. te.TextColor3 = Color3.new(BrickColor.White(0,0,0))
  41.  
  42.  
  43. end
  44. end
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. ins2.MouseButton1Down:connect(clicked)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement