Roblox Studio Indonesia : Bahasa LUA - Remote Event - Server to All Client
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)
Other Videos By Roblox Studio Indonesia
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.