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

How can I stop a gun from attacking players and only attack NPC's?

Hello Scripters! I want to edit the script in the AR kit gun so that it can only damage and kill NPC's, even if the NPC's have humanoids. The gun kit is here I am using the AR gun: https://www.roblox.com/library/3932803955/Auto-Rifle (Paste in broswer top bar as it wont work as a link for some reason.) The script that does damage is the WeaponsSystem. Get the gun kit and put it in studio to try and help me. I have tried to make it so that it says:

if target IsA Player then
--Do Damage

but it didnt work at all so can someone please help me. Please get the gun to understand how it is made and to get the full script(s). If anyone can help me, thankyou so much!!

3 comments

0

If you can please help me!!!

0

Why have you downgraded my post

0

is anyone writing an answer?

1 answer

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