Soo, Basically everytime a player shoots with a basketball and is exactly 75 studs away from the basket/hoop/part then it should add 3 to the value.
local threepointer = 75
local goal = workspace.HoopOne
for i,v in pairs(game.Players:GetChildren()) do
if v.Character:FindFirstChild("Basketball") then
ballposition = v.Character.Basketball.Handle.Position
end
end
goal.Touched:Connect(function(hit)
if hit.Parent == ("Basketball") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if (ballposition.Position -goal.Position).magnitude <= 75 then
workspace.one.Value = workspace.one.Value + 3
end
end
end)

4 comments
doesnt work xd
Should be fixed now. You were getting the distance between the ball's pos (Which is probably near the goal) and the goal's position. The initial position should be the character.
wait how do i make it if you are 75 studs and further?
Line 1, you change that two what ever you want it to.