How to make it so you can place blocks

Like Islands or Bedwars, I was wondering how I would create aa system where I could place blocks (and break them. Any idea?

1 Like

It would require 3 components:
LocalScript
RemoteEvent
ServerScript
You would have to write a code to detect a block on click and send it trough the remotevent to the server, then the server would check the block distance, cooldown etc to prevent exploiters and it would also engage destroying, stopping after X time or after another signal gets received.