This looting script I have makes it so that the loot cooldown applies to everyone. That’s why it uses a server script. The problem is that I want to add a GUI that shows that looting something like “Looting…” but I need it to be in a local script so that it doesn’t replicate to everyone else. I want to do that with remote events, but I’m not sure if they would work. Help?
yeah a server event can be fired to the client or vise versa
Yes, RemoteEvents would work for this. Specifically, you could investigate usage of :FireAllClients. FireAllClients ensures that all clients within the game receive all the information. Here is an example. Mind how weird this might look, I’m on mobile.
--server side
local Example = “hi”
game.ReplicatedStorage.RemoteEvent:FireAllClients(Example)
-- client side
local function onFired(Variable)
print(Variable)
end
game.ReplicatedStorage.RemoteEvent.OnClientEvent:Connect(onFired)