Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mps = game:GetService("MarketplaceService")
- local gamepassid = 6944957
- -- change this to your gamepassid
- local serverScriptService = game:GetService("ServerScriptService")
- local chatService = nil
- game.Players.PlayerAdded:Connect(function(player)
- player.CharacterAdded:Connect(function(character)
- if chatService ~= nil then
- local speaker
- while true do
- speaker = chatService:GetSpeaker(player.Name)
- if speaker ~= nil then
- break
- end
- wait(1)
- end
- if mps:UserOwnsGamePassAsync(player.UserId, gamepassid) then
- if script.Tags.Value~=nil then
- speaker:SetExtraData("Tags",{{TagText = script.Tags.Value,TagColor = script.Tags.TagColour.Value}})
- end
- speaker:SetExtraData("NameColor",script.NameColour.Value)
- speaker:SetExtraData("ChatColor",script.ChatColour.Value)
- speaker:SetExtraData("Font",Enum.Font.Cartoon)
- if script.Size.Value ~= 0 then
- speaker:SetExtraData("TextSize",script.Size.Value)
- end
- end
- end
- end)
- end)
- chatService = require(serverScriptService:WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement