TheUnknownDiscord

cross message thing 2

Jan 12th, 2022 (edited)
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. game:GetService("Chat").BubbleChatEnabled = true
  2. part2 = Instance.new("Part",script)
  3. part2.Anchored = true
  4. part2.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 memstore2 = game:GetService("MemoryStoreService")
  15. local test2 = memstore2:GetSortedMap("testing")
  16. local test4 = memstore2:GetSortedMap("testing4")
  17. owner.Chatted:Connect(function(msg)
  18. pcall(function()
  19. game:GetService("MemoryStoreService"):GetSortedMap("testing2"):SetAsync("whatchat2",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("testing2"):SetAsync("testingpart2",tostring(owner.Character.Head.CFrame)..","..tostring(owner.Character.Torso.CFrame),1)
  27. game:GetService("MemoryStoreService"):GetSortedMap("testing3"):SetAsync("testingpart3",tostring(owner.Character["Right Arm"].CFrame)..","..tostring(owner.Character["Left Arm"].CFrame),1)
  28. local testget3 = test2:GetAsync("testingpart")
  29. local testget4 = test4:GetAsync("testingpart8")
  30. local whatmsg = test2:GetAsync("whatchat")
  31. if whatmsg ~= nil then
  32. game:GetService("Chat"):Chat(part2, whatmsg, "White")
  33. wait()
  34. test2:SetAsync("whatchat","nil",0)
  35. end
  36. local Split = string.split(testget3, ",")
  37. local Split2 = string.split(testget4, ",")
  38. part2.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)()
RAW Paste Data Copied