Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Spawns a Super Star on the map somewhere
- function findPlayer(name)
- for _, player in ipairs(game.Players:GetPlayers()) do
- if player.Name:lower() == name:lower() then
- return player
- end
- end
- end
- function makeStar(pos)
- local model = game:GetService("InsertService"):LoadAsset(757564530)
- model.Parent = workspace
- end
- function onChatted(message, player)
- if message:sub(1, 5) ~= "star" then
- makeStar()
- end
- end
- game.Players.PlayerAdded:connect(function(player)
- player.Chatted:connect(function(message) onChatted(message, player) end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement