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: ***JOIN OUR DISCORD GROUP*** 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:** 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)

0/0


0/0

0/0

0/0