Advertisement
Guest User

Roblox Star Script

a guest
Apr 29th, 2017
1,416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. --Spawns a Super Star on the map somewhere
  2.  
  3. function findPlayer(name)
  4. for _, player in ipairs(game.Players:GetPlayers()) do
  5. if player.Name:lower() == name:lower() then
  6. return player
  7. end
  8. end
  9. end
  10.  
  11. function makeStar(pos)
  12. local model = game:GetService("InsertService"):LoadAsset(757564530)
  13. model.Parent = workspace
  14. end
  15.  
  16. function onChatted(message, player)
  17. if message:sub(1, 5) ~= "star" then
  18. makeStar()
  19. end
  20. end
  21.  
  22.  
  23.  
  24.  
  25. game.Players.PlayerAdded:connect(function(player)
  26. player.Chatted:connect(function(message) onChatted(message, player) end)
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement