local player = game.Players.LocalPlayer local mouse = player:GetMouse() local targetsFolder = workspace:WaitForChild("Targets") local score = 0 mouse.Button1Down:Connect(function() local target = mouse.Target if target and target.Parent == targetsFolder then score += 1 print("Hit! Score:", score) -- respawn target somewhere random target.Position = Vector3.new( math.random(-50, 50), math.random(5, 20), math.random(-50, 50) ) end end)