Script not working

My script that makes a script appear after using proxmity prompt doesn’t work help. It doesn’t print anything either

local plr = game.Players.LocalPlayer
local detect = script.Parent
detect.Triggered:Connect(function()
	print(plr, plr.PlayerGui:FindFirstChild("Terminal Gui"))
    plr.PlayerGui:FindFirstChild("Terminal Gui").Enabled = true
end)

try this

local detect = script.Parent
detect.Triggered:Connect(function(plr)
	print(plr, plr.PlayerGui:FindFirstChild("Terminal Gui"))
    plr.PlayerGui:FindFirstChild("Terminal Gui").Enabled = true
end)

put the script in your proximity prompt

Capture

I am using local script, and it still doesn’t work

you need to use a server script

But i want it to appear for one person

when you trigger the proximity prompt it gets the player that triggered it in this line

detect.Triggered:Connect(function(plr)