WOw thanks
โ Donโt mind โ
Alright, I canโt find it. However, I can make a script that replicates what it did.
It works by checking if a player chats and then checks their distance relative to a part. If it is within a certain distance then it displays the message to the server. Put this script inside the part you want to be the intercom
local MessageTime = 10 -- The amount of time you want the message displayed
local MaxDistance = 15 -- The maximum distance in studs away from the part you can be for it to work
local Microphone = script.Parent -- The part that is the microphone
local Players = game:GetService("Players")
local Chat = game:GetService("Chat")
local Debris = game:GetService("Debris")
Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
local RootPart = player.Character:WaitForChild("HumanoidRootPart")
if (Microphone.Position - RootPart.Position).magnitude <= MaxDistance then
local intercom = Instance.new("Message")
intercom.Text = Chat:FilterStringForBroadcast(msg,player)
intercom.Parent = workspace
Debris:AddItem(intercom,MessageTime)
end
end)
end)
Is it going make a server message?
Yes, as long as you put it inside a server script and put that script inside of a part.
Like duplicate the script, 1 in server storage and 1 n the part?
What I hear by Server message is a server chat message
Ok I found this script, that I modified a bit to include a cooldown :
function onChatted(msg, recipient, speaker)
local source = string.lower(speaker.Name)
msg = string.lower(msg)
local pos1 = script.Parent.Position
local pos2 = speaker.Character.Head.Position
dist=(pos1-pos2).magnitude
dist=dist-math.max(math.max(speaker.Character.Head.Size.x, speaker.Character.Head.Size.z), speaker.Character.Head.Size.y)
if (dist <= 5 and script.Parent.On.Value == true) then
script.Parent.On.Value = false
local m = Instance.new("Hint")
m.Parent = game.Workspace
m.Text = msg
wait(3)
m:remove()
wait(60)
script.Parent.On.Value = true
end
end
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
game.Players.ChildAdded:connect(onPlayerEntered)
But the problem is that is doesn't do a chat message, how can I modify it
Alright, I found the model! Here it is:
https://www.roblox.com/library/86463569/Microphone-Podium?Category=Models&SortType=Relevance&SortAggregation=AllTime&SearchKeyword=Microphone+Podium&CreatorId=0&Page=1&Position=2&SearchId=6519c00e-3294-41b0-91f8-198b3af11433
Just stand close to the microphone and talk.
Lmfao same script than above but thanks for yor time xD