Advertisement
MaxproGlitcher

Auto chats survival disaster

Sep 4th, 2022 (edited)
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. local Character = game:GetService("Players").LocalPlayer.Character
  2. local Tag = Character:FindFirstChild("SurvivalTag")
  3. if Tag then
  4. local args = {
  5. [1] = "" .. Tag.Value,
  6. [2] = "All"
  7. }
  8. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
  9. end
  10. local function Repeat(R)
  11. R.ChildAdded:connect(
  12. function(Find)
  13. if Find.Name == "SurvivalTag" then
  14. local args = {
  15. [1] = "" .. Find.Value,
  16. [2] = "All"
  17. }
  18. game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest:FireServer(unpack(args))
  19. end
  20. end
  21. )
  22. end
  23. Repeat(Character)
  24. game:GetService("Players").LocalPlayer.CharacterAdded:connect(
  25. function(R)
  26. Repeat(R)
  27. end
  28. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement