Help making an Server Bullet

Hi Developers, so I posted this because I am normal scripter and sometimes I don’t know something, I’m searching some videos It does not like recommended to my simple bullet instance.


  1. What do you want to achieve? Keep it simple and clear!
    When you press LMB it shoots, so it fires the server and I need to know how do I make server bullet.

  1. What is the issue? Include screenshots / videos if possible!
    Much issues one error I found and tried to fix it.

Error:

Code: [server]

Code: [Client]
image


  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

No solutions I forgot my old code to show.


Explorer:

image


Let me know if you don’t understand what I’m saying.
Thank you.

Can you show me what line 23 is, for clarification?

1 Like

i was about to ask the same question, its like we are the same-

1 Like

sorry for being everywhere lol

1 Like

Lol. Im just bored, searching for people I can help or assist to my best ability.

1 Like

oh ok ill give you this one to help on

1 Like

On your client you could just use tool.Activated instead of equipped, activated fires when the player clicks with the tool equipped. This isn’t a solution just something to make your code a bit better.

1 Like

Also have you actually given Position a value, from what I can see its just nil.

1 Like

You don’t need to pass in the player by client. Simply remove the localplr parameter on the client and it should work.

1 Like

I think you would use Position not CFrame

1 Like

The error shows the same thing.

did you replace CFrame.new with Vector3.new?

1 Like

Is this what you talking about?

That is what im talking about,

1 Like

Oh error still show up. [3O characters]

Alright thanks for the note. [3O characters needed]

Alr It worked thank you so much, It worked, I fixed the code 34 replaced Vector3 with CFrame.

1 Like

Other people’s reply to me are useful also thank you too.