Help on a kill zombie for money script

Yes in a lot of places but it puts a blue line when putting it under the function but not when its above that function.

Can you show me what it says in output when ran or inside script analysis?

Wait where do I put the local Creator_Tag = target.Parent.creator? If I put it at the top it makes the gun disappear and if I put it under the function the gun dosent shoot.
Also it will make things faster if you get the gun: Auto Rifle - Roblox

inside the damage block but just before the damage

Ok so this is what I did to make player not have a blue line under it:
inside of the function i put player like this:
local function _defaultDamageCallback(system, target, amount, damageType, dealer, hitInfo, damageData,player)
if target:IsA(“Humanoid”) then
target:TakeDamage(amount)
Creator_Tag.Value = player
end
end

Ok I will put it there just before the damage

Ok, no blue lines now I hope this works!:pray:

No it didint work, the gun dosent do damage also this is the only red thing in the output:
creator is not a valid member of Model

It’s hard to tell the specific reason without being the one creating it myself but that tends to be from either misspelled creator, in the wrong spot, or wrong check for target.

What do you mean in the wrong spot or wrong check for target?
Also if you want I will give you acess to the game usng team create for now to help me.

Sure that would work, then I can check what’s erroring where

Wait what? Now I get this error when trying to open the place with team create and I cant open the place either and cant disable team create. This is the error: ---------------------------
Roblox Studio

Could not open the place “5459117253” with exception: “Unable to open the place. Please restart your application and try again. If you continue to encounter this error, please contact customer service.”.

OK

I have restarted studio already but it still says that.

NOOOOOOOOOOOOOOOOOOOOO what is wrong with studio I cant open my place!!!

Oof, Sorry that’s not something I know how to fix. Best I can suggest is make sure it’s closed in task manager and do a reboot.

Reboot my entire computer?

Btw I had to write this so its above 30 characters:
dhfuidjfdkfjghfjdksldkfjhdksdkjfhdkk

Ok ynow what, Ima restart my computer so Il be back in about 5 - 10 minutes

Ok actually it took only 3 minutes! Ima try opeing roblox studio now.

Ok since I dont have much on that place im gonna make a new one with everything in it ok?

Ok if your still on im going to enable team create now for you to help me ok?