So everytime a player scores a 3 points (75) studs away from the basket with a basketball then it should automatically add 3 points to the value.Why does this not work?
local threepointer = 75
local goal = workspace.HoopOne
goal.Touched:Connect(function(hit)
if hit.Parent == ("Basketball") then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if (player.Character.HumanoidRootPart.Position-goal.Position).magnitude <= 75 then
workspace.one.Value = workspace.one.Value + 3
end
end
end)
