#how can i disable all proximity prompts when the player dies?
13 messages · Page 1 of 1 (latest)
i am here
oh hello
i made this ```lua
local players = game:GetService("Players")
local plr = players.LocalPlayer
local character = plr.Character or plr.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
for i, v in pairs(workspace:GetDescendants()) do
if v:IsA("ProximityPrompt") then
v.Enabled = true
end
end
humanoid.Died:Connect(function()
print("hello")
for i, v in pairs(workspace:GetDescendants()) do
if v:IsA("ProximityPrompt") then
v.Enabled = false
end
end
end)
** You are now Level 6! **
(local script btw)
ty where do i put it
put it in starter character scripts
alright ill try it
tell me if it works