TheUnknownDiscord

cross message thing

Jan 12th, 2022 (edited)
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. game:GetService("Chat").BubbleChatEnabled = true
  2. part = Instance.new("Part",script)
  3. part.Anchored = true
  4. part.Size = Vector3.new(1,1,1)
  5. part3 = Instance.new("Part",script)
  6. part3.Anchored = true
  7. part3.Size = Vector3.new(2,2,1)
  8. part4 = Instance.new("Part",script)
  9. part4.Anchored = true
  10. part4.Size = Vector3.new(1,2,1)
  11. part5 = Instance.new("Part",script)
  12. part5.Anchored = true
  13. part5.Size = Vector3.new(1,2,1)
  14. local memstore = game:GetService("MemoryStoreService")
  15. local test = memstore:GetSortedMap("testing2")
  16. local test3 = memstore:GetSortedMap("testing3")
  17. owner.Chatted:Connect(function(msg)
  18. pcall(function()
  19. game:GetService("MemoryStoreService"):GetSortedMap("testing"):SetAsync("whatchat",game:GetService("Chat"):FilterStringForBroadcast(msg, owner),5)
  20. end)
  21. end)
  22. coroutine.wrap(function()
  23. while true do
  24. task.wait()
  25. pcall(function()
  26. game:GetService("MemoryStoreService"):GetSortedMap("testing"):SetAsync("testingpart",tostring(owner.Character.Head.CFrame)..","..tostring(owner.Character.Torso.CFrame),1)
  27. game:GetService("MemoryStoreService"):GetSortedMap("testing4"):SetAsync("testingpart8",tostring(owner.Character["Right Arm"].CFrame)..","..tostring(owner.Character["Left Arm"].CFrame),1)
  28. local testget = test:GetAsync("testingpart2")
  29. local testget3 = test3:GetAsync("testingpart3")
  30. local whatmsg2 = test:GetAsync("whatchat2")
  31. if whatmsg2 ~= nil then
  32. game:GetService("Chat"):Chat(part, whatmsg2, "White")
  33. wait()
  34. test:SetAsync("whatchat2","nil",0)
  35. end
  36. local Split = string.split(testget, ",")
  37. local Split2 = string.split(testget3, ",")
  38. part.CFrame = CFrame.new(Split[1],Split[2],Split[3],Split[4],Split[5],Split[6],Split[7],Split[8],Split[9],Split[10],Split[11],Split[12])
  39. part3.CFrame = CFrame.new(Split[13],Split[14],Split[15],Split[16],Split[17],Split[18],Split[19],Split[20],Split[21],Split[22],Split[23],Split[24])
  40. part4.CFrame = CFrame.new(Split2[1],Split2[2],Split2[3],Split2[4],Split2[5],Split2[6],Split2[7],Split2[8],Split2[9],Split2[10],Split2[11],Split2[12])
  41. part5.CFrame = CFrame.new(Split2[13],Split2[14],Split2[15],Split2[16],Split2[17],Split2[18],Split2[19],Split2[20],Split2[21],Split2[22],Split2[23],Split2[24])
  42. end)
  43. end
  44. end)()
Add Comment
Please, Sign In to add comment