Roblox Studio: Player Notification System (Remote Event Fire Client / Fire All Clients)
Описание
Need music? Get professional, high quality, and royalty-free music used by vissequ for your very own videos! Use the link below to receive a discount:
https://aff.vidello.com/28454/138455
***JOIN OUR DISCORD GROUP***
https://vissequ.com/discord
Learn how to use Remote Events to fire on a one or all clients to send players messages about how they are interacting in their environment.
**Get the uncopylocked project file:**
https://www.roblox.com/games/3083392817/Notification-System-Tutorial
Localscript inside TextLabel:
local RS = game:GetService("ReplicatedStorage")
local REs = RS:WaitForChild("REs")
local rE = REs:WaitForChild("Notify")
local textLabel = script.Parent
local showMessageTime = 4
rE.OnClientEvent:Connect(function(msg)
textLabel.Text = msg
wait(showMessageTime)
textLabel.Text = ""
end)
Script inside touch brick:
local RS = game:GetService("ReplicatedStorage")
local REs = RS:WaitForChild("REs")
local rE = REs:WaitForChild("Notify")
debounce = false
script.Parent.Touched:Connect(function(hit)
if not debounce then
debounce = true
local h = hit.Parent:FindFirstChild("Humanoid")
if h then
local plr = game:GetService("Players"):FindFirstChild(h.Parent.Name)
if plr then
rE:FireClient(plr, "You touched this brick")
end
wait(4)
end
debounce = false
end
end)
Рекомендуемые видео



















