Advertisement
AvidMalignus

Global function describing script (Lua 5.1)

May 11th, 2015
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. --Global function messaging script created by Curtis Joseph Winkler
  2. --Method: _G.describe("Hi player", "Hint") < or message
  3. --5/12/2015 @ 10:43 AM
  4. -------------------------------------------------------------------
  5. local Players = game:GetService('Players')
  6. local Workspace = game:GetService('Workspace')
  7. local StarterGui = game:GetService('StarterGui')
  8. ---
  9. local Message = Instance.new("Message")
  10. local Hint = Instance.new("Hint")
  11. local Destination = Workspace
  12. ---
  13. local _G.describe = function(message, type)
  14. if type.string.match("Message") then
  15. local Message = Message:Clone(Destination)
  16. Message.Text = string.match(message)
  17. elseif type.string.match("Hint") then
  18. local Hint = Hint:Clone(Destination)
  19. Hint.Text = string.match(message)
  20.     end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement