Proximity Prompts not working when I change game to R6

This is a very strange problem, so far in my game I have 3 prompts 1 that works and 2 that don’t.


function Setup()
        --this controls the 2 that dont work
	for index, Stage in pairs(workspace.Ships:GetDescendants()) do
		if Stage:IsA("Folder") then
			if Stage.Name == "Stage" then
				print("Found stage")--gets printed
				Stage.Button.ButtonPart.ProximityPrompt.Triggered:Connect(function(Player)
					print("proxpromt triggered")--doesnt get printed
					if Player.Values.CanStart.Value == true then
						print("canstart = true")
						Player.Values.CanStart.Value = false
						local StageStats = Stage.Stats

						game.ReplicatedStorage.Remotes.Confirm:FireClient(Player, Stage)
					end
				end)
			end
		end
	end
       --this controls the 1 that does work
	for index, ColorFolder in pairs(workspace.Lobby.Walls.Sections:GetChildren()) do
		if ColorFolder:IsA("Folder") then
			if ColorFolder:FindFirstChild("Dashboard") then
				local Button = ColorFolder.Dashboard.Button

				Button.ProximityPrompt.Triggered:Connect(function(Player)
					local Camera = ColorFolder.Monitor.Camera

					Player.Character.Humanoid.WalkSpeed = 0
					game.ReplicatedStorage.Remotes.StartSelecting:FireClient(Player, Camera, ColorFolder.Name)
				end)
			end
		end
	end
end

Everything works in R15 but in R6 there is 1 prompt that works and 2 that doesn’t.

3 Likes

What is the proximity prompt parented to?

It is parented to that.
I saw someone who also had this problem: