So basically I am trying to make a gun,
if cooldown == false then
cooldown = true
print(hit)
game.ReplicatedStorage.shoot:FireServer(plr, hit)
wait(3)
cooldown = false
end
This will print a Vector3 Value to where I clicked
game.ReplicatedStorage.shoot.OnServerEvent:Connect(function(plr, hit)
local part = Instance.new("Part")
part.Parent = workspace
print(hit)
part.Position = Vector3.new(hit)
end)
But this only prints my username?
Im confused on why it does that, please help.

1 comment
Remove the plr when doing shoot:FireServer(hit) that is because player is already passed.