How do I solve this? It isnt printing when it hits something
local tool = script.Parent
local rf = game.ReplicatedStorage.remotes:WaitForChild("bullet")
local shooting = false
tool.Activated:Connect(function()
if shooting == false then
shooting = true
local player = game.Players:GetPlayerFromCharacter(tool.Parent)
local mousehitvec = rf:InvokeClient(player)
print("ez")
local rayparams = RaycastParams.new()
rayparams.FilterType = Enum.RaycastFilterType.Blacklist
local raynew = workspace:Raycast(tool.Pointgun.Position, mousehitvec, rayparams)
print("not ez")
if raynew then
print("The thing that the ray touched was " .. raynew.Instance:GetFullName())
print("not ez")
else print("u bad iam")
print("not ez")
end
wait(1)
shooting = false
end
end)