local PlayerPosition = game.Workspace:WaitForChild(PlayerName).HumanoidRootPart.Position
local HardGoal = game.Workspace:WaitForChild('Finish')
local function GetDistance(GoalPart, Axis)
local Distance = PlayerPosition.Axis - GoalPart.Position.Axis
if Distance > -10 and Distance < 10 then
Active = false
end
end
end
GetDistance(HardGoal, Z)
local PlayerPosition = game.Workspace:WaitForChild(PlayerName).HumanoidRootPart.Position
local HardGoal = game.Workspace:WaitForChild('Finish')
local function GetDistance(GoalPart, Axis)
local Distance = PlayerPosition[Axis] - GoalPart.Position[Axis]
if Distance > -10 and Distance < 10 then
Active = false
end
end
GetDistance(HardGoal, "Z")