Roblox Scripting Tutorial: RPG Action Chat Messages

Channel:
Subscribers:
2,110
Published on ● Video Link: https://www.youtube.com/watch?v=mxG7BctOz3U



The Elder Scrolls Online
Category:
Tutorial
Duration: 9:25
361 views
14


What I mean by the title is that we are going to be learning how to add action chat messages to the chat box. For example, when I would type *kicks John* in the chat, the chatbox would show: "Rrrrry123 kicks John".

Don't forget to add your RemoteEvent!
Scripts:
Chat Module:
function Run(ChatService)
ChatService:RegisterProcessCommandsFunction("Actions", function(speakerName, message, channel)
if string.sub(message, 1, 1) == "*" and string.sub(message, -1) == "*" then
game:GetService("ReplicatedStorage"):WaitForChild("ChatActions"):FireAllClients(speakerName, message)
return true
end
return false
end)
end

return Run

LocalScript:
game:GetService("ReplicatedStorage"):WaitForChild("ChatActions").OnClientEvent:connect(function(speakerName, message)
pcall(function()
game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
Text = speakerName .. " " .. string.sub(message, 2, -2);
Color = Color3.new(255, 255, 255);
Font = Enum.Font.SourceSansBold;
FontSize = Enum.FontSize.Size18;
})
end)
end)

Be sure to follow me on Twitter after subscribing!
https://twitter.com/Rrrrry123

Also, follow me on Twitch for some live streams!
http://www.twitch.tv/Rrrrry123







Tags:
Rrrrry123
RyGuyGaming
Ryan
Roblox
Minecraft
Runescape
PS
PlayStation
Let's
Play
Talk
Nostalgia
HTML
Script
Tutorial
Web
design
Lua
help
Dark
Souls
Destiny
Xbox
Scripting
Gaming
Actions
Chat
Messages
ChatMakeSystemMessage
Filtering
Enabled
Asterik



Other Statistics

The Elder Scrolls Online Statistics For RyGuyGaming

At present, RyGuyGaming has 361 views spread across 1 video for The Elder Scrolls Online, and less than an hour worth of The Elder Scrolls Online videos were uploaded to his channel. This is less than 0.10% of the total video content that RyGuyGaming has uploaded to YouTube.