I've tried this
mouse.KeyDown:connect(function(key)
key = key:lower()
if key == "e" then
local ball = Instance.new("Part")
ball.Shape = "Ball"
ball.BrickColor = BrickColor.new("Really black")
ball.Transparency = 0.5
ball.TopSurface = "Smooth"
ball.BottomSurface = "Smooth"
ball.CanCollide = false
ball.Anchored = false
ball.Material = "Neon"
ball.CFrame = torso.CFrame * CFrame.new(0,3,-12)
local velocity = Instance.new("BodyVelocity", thotbegone)
velocity.Velocity = torso.CFrame.lookVector * 90
velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
velocity.Parent = workspace
function onTouch(part)
local humanoid = ball.Parent:findFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = 0
end
end
end
end)
But the ball won't do damage, no errors or anything. I've tried using Touched and hit and everything I could do to see if anything else would work. But whatever I do the script won't work.
Ignore things like "torso", it's a variable farther up in the original script.
(at times i'll get an error that says the ball isnt a part of itself?)

1 comment
KeyDown is deprecated. See InputBegan: http://wiki.roblox.com/index.php?title=API:Class/UserInputService/InputBegan