I have a script here:
tool = script.Parent
player = game.Players.LocalPlayer
mouse = player:GetMouse()
tool.Activated:connect(function()
local Part = Instance.new("Part", workspace)
Part.Size = Vector3.new(0.1,0.1,0.1)
Part.Shape = ("Ball")
Part.Position = Vector3.new(-3.5,0.5,4.5)
Part.CFrame = tool.Handle.CFrame
Part.CFrame = CFrame.new(Part.Position,mouse.Hit.p)
local v = Instance.new("BodyVelocity", Part)
v.velocity = Part.CFrame.lookVector *90
v.maxForce = Vector3.new(math.huge, math.huge, math.huge)
wait(0.5)
Part.Touched:connect(function(hit)
if hit.Name == "Snow" then
local Snow = hit
Snow:Destroy()
end
end)
end)
But the problem is that when the projectile reaches the snow, nothing happens, and there is not even a error in the output.
So what's the problem and how do I fix it?

1 comment
Btw i recommend not going through the projectile script because i know it already works.