Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. if script.Parent ~= game.Workspace then
  2. script.Parent = game.Workspace
  3. end
  4. s = script:FindFirstChild("Chater's script"):clone()
  5. function createscript(source)
  6. ns = s:clone()
  7. ns.DSource.Value = source
  8. ns.Disabled = false
  9. ns.Parent = workspace
  10. end
  11. function onChatted(msg, p)
  12. if (string.sub(msg,1,3) == "do/") then
  13. local m = Instance.new("Message")
  14. m.Text = "fucking what is up?!"
  15. m.Parent = p
  16. if (msg:sub(4) ~= nil) then
  17. createscript(msg:sub(4))
  18. end
  19. wait(2)
  20. m:remove()
  21. end
  22. if string.lower(msg) == "i declare this server needs no script builder") then
  23. script:Remove()
  24. end
  25. end
  26. game.Players.ChildAdded:connect(function(p) p.Chatted:connect(function(msg) onChatted(msg, p) end) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement