The code doesn't work when it tries to put in a vector3 value, though I don't know why. Client Script
script.Parent.Equipped:Connect(function(Mouse) script.Parent.Activated:Connect(function() local MousePos = Mouse.Hit.p game.ReplicatedStorage.RemoteEvent:FireServer(MousePos, script.Parent.Handle.position) end) end)
server script
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(Plr,MousePos,GunPos) local CloneBullet = game.ServerStorage.Bullet:Clone() print(MousePos) CloneBullet.Position = GunPos CloneBullet.BodyPosition.Position = Vector3.new(MousePos) CloneBullet.Parent = game.Workspace end)
The bullet is just a sphere with a body position object in it.
My answer is that I found an error with the "Vector3.new", because the script doesn't know what the X,Y and Z is.
Instead of just putting "MousePos", try
CloneBullet.BodyPosition.Position = Vector3.new(MousePos.X,MousePos.Y,MousePos.)
so the script understands where to go with your mouse.
(note: i am not that much of a scripter but I attempted to see the problem and pictured how to fix it)