Roblox Studio Indonesia : Bahasa LUA - Remote Event - Server to All Client

Subscribers:
15,900
Published on ● Video Link: https://www.youtube.com/watch?v=14KlOc_pAMY



Roblox
Game:
Roblox (2006)
Duration: 6:22
458 views
17


Hi guys, kayanya ada masalah sama microphone utk rekam saya, mgkn nanti mau coba ganti microphone dl kedepannya.

Di video kali ini saya akan menjelaskan mengenai Remote Event, Server to All Client, dengan contoh Death Warning atau peringatan kalau ada salah satu player yang mati maka dia akan infokan ke semua player

Please Like and Subscribe

Script yang dipakai :
KILL BRICK :
kill = script.Parent
function cek(otherPart)
local human = otherPart.Parent:FindFirstChildWhichIsA("Humanoid")
if human then
otherPart.Parent:BreakJoints()
end

end

kill.Touched:Connect(cek)

TextLabel Local Script :
local label = script.Parent
label.Visible = false
local rs= game:GetService("ReplicatedStorage")
local re = rs:WaitForChild("RemoteEvent")

local function infoNama(name)
label.Visible = true
label.Text = tostring(name) .. ' Mati'
wait(5)
label.Visible = false
end

re.OnClientEvent:Connect(infoNama)


Server Script Service :
local rs= game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local re= rs:WaitForChild("RemoteEvent")

Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
re:FireAllClients(player, player.Name)
end)
end)
end)







Tags:
remote event server to all client
roblox studio tutorial bahasa indonesia mengenai remote event



Other Statistics

Roblox Statistics For Roblox Studio Indonesia

Roblox Studio Indonesia currently has 1,259,838 views spread across 247 videos for Roblox. There's over 2 days worth of watchable video for Roblox published on his channel, or 92.89% of the total watchable video on Roblox Studio Indonesia's YouTube channel.