Advertisement
greggreggreg

draw it script

Apr 8th, 2018
35,135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. --[[
  2. made by: greggreggreg
  3. literally made this in notepad in 5 minutes lol
  4. ]]
  5.  
  6. local player = game:GetService("Players").LocalPlayer
  7. local Word = game:GetService("Workspace"):WaitForChild("Script"):WaitForChild("CurrentWord") --stringvalue
  8.  
  9. local screenGui = Instance.new("ScreenGui", player.PlayerGui)
  10. local mainFrame = Instance.new("Frame", screenGui)
  11. mainFrame.Size = UDim2.new(.66, 0, .1, 0)
  12. mainFrame.Position = UDim2.new(.33/2, 0, 0, 0)
  13. mainFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  14. mainFrame.BackgroundTransparency = .5
  15. local lblText = Instance.new("TextLabel", mainFrame)
  16. lblText.Size = UDim2.new(1, 0, 1, 0)
  17. lblText.BackgroundTransparency = 1
  18. lblText.TextColor3 = Color3.new(0, 0, 0)
  19. lblText.TextScaled = true
  20. lblText.Text = ("Current Word: "..Word.Value)
  21. game:GetService("Players"):Chat(Word.Value)
  22.  
  23. Word.Changed:connect(function()
  24. lblText.Text = ("Current Word: "..Word.Value)
  25. game:GetService("Players"):Chat(Word.Value)
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement