#can any1 help me script a working touch ball
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
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
@warm trench This forum is only for help, please refrain from asking for entire scripts.
I've made a script but it ain't working
then send it so we can try helping
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)
Please provide more context.
What is not working?