Its been a while since i've coded... So I have these two scripts: They are both local scripts.
--THROW SNOWBALL SCRIPT
local debounce = true
local tool = script.Parent.Parent
local snowball = script.Parent
local Player = game.Players.LocalPlayer
local Speed = 75
local Height = 50
tool.Activated:Connect(function()
if not debounce then
return
end
debounce = false
--Do a throw--
local snowballclone = snowball:Clone()
snowballclone.Parent = workspace
snowballclone.Name = "ThrownSnowball"
snowballclone.CanCollide = true
snowballclone.Velocity = snowball.CFrame.LookVector*Speed + Vector3.new(0,Height,0)
wait(2)
debounce = true
end)
And this is my kill with snowball script
--KILL WHEN HIT
script.Parent.Touched:Connect(function(plr)
print(hit) -- this prints as the actual Cloned snowball as if it's hitting itself and not anything else Im comfoosed?
if plr.Parent.Humanoid then -- this obviously wont work if the hit is the snowball itself
plr.Parent.Humanoid.Health = plr.Parent.Humanoid.Health - 30
end
end)
In the output it says: ThrownSnowball
So how do I actually make it print the player instead of the snowball itself?

1 comment
Sir I don't think you can kill another player with a local script >.>