Provide an overview of:
Right now I made a function that creates a bunch of proximity prompts locally and adds a connection to them
function module.AddPlacePrompts()
local CharacterStandsModel: Model = CoreFunctions.ReturnPlayerStand(player)
local PlacePrompt = ReplicatedStorage.ProximityPrompts.PlacePrompt
for i, StandPart in pairs(CharacterStandsModel:GetChildren()) do
local PromptClone = PlacePrompt:Clone()
PromptClone.Parent = StandPart
PromptClone.Enabled = false
PromptClone.Triggered:Connect(function()
Signal.FireServer("PlaceCharacter", StandPart)
end)
end
end
because These proximity prompts are only made locally so only the player can activate them I was wondering if these would cause a memory leak if the player left because of the leftover triggers or if the proximity prompts and triggers would be automatically deleted