Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would i enable pvp when touching a brick?

How would i enable somone to be able to damage another player after touching a brick, and then disable his ability to attack when touching the brick a second time. This is in an RPG setting so a force field will not work due to it causing immunity to creatures.

2 answers

Or you remove the scripts in an item and put the script in serverstorage and clone it out whenever someone touches the brick to enable pvp and delete the scripts when someone touches another brick that disables pvp.

Make it so the weapon checks if the humanoid it is about to damage "has pvp enabled". You could put a BoolValue inside the players character, and change it depending on whether pvp should be enabled

This discussion is preserved as it was. New answers, comments, and votes are closed.