I am currently using Instance.New to make a ProximityPrompt inside of a part, although the issue is that I need to put it into several parts and it is currently not putting it into some of the specified parts, the code responsible for putting in the ProximityPrompt will be shown below
P.S I tried using Instance:Clone but it has the same result
for _, Regener in ipairs(RegenerFolder:GetChildren()) do
local prompt = script.ProximityPrompt:Clone()
prompt.Parent = Regener
prompt.ActionText = "Spawn " .. Regener.Model.Value.Name
end)
end
for _, Regener in ipairs(RegenerFolder:GetChildren()) do
local prompt = script.ProximityPrompt:Clone()
prompt.Parent = Regener
prompt.ActionText = "Spawn " .. Regener.Model.Value.Name
end
What exactly do you mean “specific parts”? I tried the script, with a few changes and it worked fine, all the proximity prompts we’re cloned, values we’re created too.