Gun Script Im making

I am trying to make a script to where I can equip a gun and just simply shoot like a prop gun. No damage or anything.

Unfortunately the problem is the script I attempted.

Whenever I take out the gun the animation fails and I am unable to fire

image

Error
image

Its MouseButton1Down that’s the issue. You forgot to put Button in the name.

You don’t need to use UserInputService because the tool.Equipped function works when clicking without needing the UserInputService

getting this error?

It’s just Button1Down not Mouse1Down or MouseButton1Down.

1 Like


Nope stil not working

image

Ohh, sorry. Thought you were using mouse. If you’re using a tool, it’s just Activated. When I say activated, I mean use tool.Activated as a new function.

1 Like