MADE BY 1x1x1x1C00lKid
FEATURE:
- CHECKING TEXT MESSAGES IN THE RANGE OF YOUR BOOTH
- .
- https://www.roblox.com/games/7115420363/The-Booth-Plaza
SCRIPT:
local Players = game:GetService('Players');
local ReplicatedStorage = game:GetService('ReplicatedStorage');
local Plr = Players.LocalPlayer;
local Char = Plr.Character or Plr.Character:Wait();
local Root = Char:FindFirstChild("HumanoidRootPart");
ReplicatedStorage.DefaultChatSystemChatEvents.OnNewMessage.OnClientEvent:Connect(function(info)
local message = info.Message;
local player = info.FromSpeaker;
local pchar = player.Character or player.Character:Wait();
local proot = pchar:FindFirstChild("HumanoidRootPart");
if proot then
if (proot.Position - Root.Position).Magnitude < 15 then
print(('%s just said %s in range of booth.'):format(player, message));
end
end
end)