Do anyone know what those things mean?

So basically i was making a script that if you activate the proximity prompt in enables the screengui, but for some reason it just wouldnt work.

i made it simple but i dont know why it dosent work

script.Parent.ProximityPrompt.Triggered:Connect(function()
game.StarterGui.areyousurescreen.Enabled = true
end)

and when i try to trigger the proximity prompt, it says this

Capture d'écran 2026-02-04 101231

Ok so when i tested it again it showed the UI in the client but not the server

It means literally what it means, the script was destroyed. Idk what else there is to say

Also it seems unrelated because it says “studio” so it isnt anything to do with your code and rather some plugin making this error

Okay two things, number 1 it means a script has been destroyed so the code in it has failed. In this case a callback.

2: Your code wouldn’t work anyway because you’re accessing the startergui service instead of LocalPlayer.PlayerGui. Anything that is placed into startergui is cloned into each player’s playergui.

1 Like

are you trying to make the “areyousure” screen pop up for only the player who triggered the proximity prompt? if so then you would do

script.Parent.ProximityPrompt.Triggered:Connect(function(PlayerWhoTriggered)
    PlayerWhoTriggered.PlayerGui.areyousurescreen.Enabled = true
end)

Something to note is that the StarterGui service serves as a sort of “template”, it’s replicated to all players’ PlayerGui when they join the game or respawn. If you’re trying to edit a certain player’s Gui then you would edit the PlayerGui and not the StarterGui

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.