Today I am Making Server Talk.
🐦 Follow me on Twitter: / gamingkingmatej 🐦
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source Code:
First Script:
local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
if not ChatService:GetChannel("All") then
while true do
local ChannelName = ChatService.ChannelAdded:Wait()
if ChannelName == "All" then
break
end
end
end
local bot = ChatService:AddSpeaker("SERVER")
bot:JoinChannel("All")
local Tag = {TagText = "BOT"; TagColor = Color3.fromRGB(255, 0, 0)}
bot:SetExtraData("Tags", {Tag})
bot:SetExtraData("NameColor", Color3.fromRGB(255, 138, 21))
bot:SetExtraData("ChatColor", Color3.fromRGB(0, 255, 50))
wait(5)
while true do
bot:SayMessage("TEST", "All")
wait(5)
end
Second Script:
local ChatService = require(game:GetService("ServerScriptService"):WaitForChild("ChatServiceRunner"):WaitForChild("ChatService"))
if not ChatService:GetChannel("All") then
while true do
local ChannelName = ChatService.ChannelAdded:Wait()
if ChannelName == "All" then
break
end
end
end
local bot = ChatService:AddSpeaker("SERVER")
bot:JoinChannel("All")
local Tag = {TagText = "BOT"; TagColor = Color3.fromRGB(255, 0, 0)}
bot:SetExtraData("Tags", {Tag})
bot:SetExtraData("NameColor", Color3.fromRGB(255, 138, 21))
bot:SetExtraData("ChatColor", Color3.fromRGB(0, 255, 50))
local click = game.Workspace:WaitForChild("Part").ClickDetector
click.MouseClick:Connect(function(plr)
bot:SayMessage("button was clicked by "..plr.Name, "All")
end)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Outro Song: Give 'EM the Love (ft. Dr Disrespect and Halifax)
Song Links:
SoundCloud: / giveemthelove
Spotify: https://open.spotify.com/album/4j9CO2...
-Apple Music: / give-em-the-love-feat-dr-disrespect-halifa...
-BandCamp: https://jplusone.bandcamp.com/track/g...
-Tidal: https://tidal.com/browse/track/116004330
Made by: J+1
Author Links:
-Twitter: / jplusnone
-SoundCloud: / jplusone
-Spotify: https://open.spotify.com/artist/66q9T...
-YouTube: / @jplusone
-Twitch: / jplusnone
-Reddit: / jplusone
-Steam: https://steamcommunity.com/id/jplusone
-Apple Music: / j-1
-BandCamp: https://jplusone.bandcamp.com/
-Tidal: https://listen.tidal.com/artist/10147087
-Google Play Music: https://play.google.com/store/music/a...
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -