Hello! I learned that velocity is getting remove but I have it in my code. Does anyone know how I can replace it?
script.Parent.Throw.OnServerEvent:Connect(function(player, lookvector)
local clone = script.Parent.Handle:Clone()
clone.Transparency = 0
clone.Parent = game.Workspace
local edit = lookvector+Vector3.new(0, 0.3, 0)
clone.Velocity = edit*script.Parent.Speed.Value
clone.CanCollide = true
local shot = false
clone.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and shot == false then
shot = true
hit.Parent.Humanoid.Health -= script.Parent.Damage.Value
clone.shot:Play()
clone["Slime Sloshing/ Blood Squirt sfx"]:Play()
wait(0.6)
clone:Destroy()
shot = false
end
spawn(function()
task.wait(3)
if clone then
clone:Destroy()
end
end)
end)
end)```