#can any1 help me script a working touch ball

1 messages · Page 1 of 1 (latest)

warm trench
#

i just need help as im new to ts

#

.

somber waveBOT
#

studio** You are now Level 1! **studio

serene rover
#

what exactly do you mean by "touch ball" do you mean a script that detects if something touches a ball or do you mean the term touch ball from sports

#

@warm trench

silver whale
#

@warm trench This forum is only for help, please refrain from asking for entire scripts.

warm trench
serene rover
warm trench
#

local ball = script.Parent
local POWER = 65

ball.Touched:Connect(function(hit)
local char = hit.Parent
local root = char:FindFirstChild("HumanoidRootPart")

if root then
    local dir = (ball.Position - root.Position).Unit
    ball.AssemblyLinearVelocity = dir * POWER
end

end)

silver whale