Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i enable pvp when touching a brick?

Asked by
nicros 165
8 years ago

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

Log in to vote
3
Answered by 8 years ago

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.

Ad
Log in to vote
1
Answered by
Validark 1580 Snack Break Moderation Voter
8 years ago

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

Answer this question