Regen Model Help With Proximity Prompt

Hi i have been trying to use Proximity Prompt for a model Regen but it doesnt work heres the code

model = script.Parent.Parent.Parent.UFO

backup = model:clone()

enabled = true

function regenerate()

model:remove()

wait(3)

model = backup:clone()

model.Parent = game.Workspace

model:makeJoints()

script.Disabled = true

wait(5)

script.Disabled = false

end

function onHit(hit)

if (hit.Parent:FindFirstChild(“Humanoid”) ~= nil) and enabled then

regenerate()

end

end

script.Parent.Triggered:Connect(onHit)

He’s referring to the new beta feature that came out yesterday:

Is the beta feature in studio enabled? Can you also show where the script is located? Your code seems fine.

Well i cant use it because it doesnt show in games :frowning:

That’s the problem then. Here is what you should do:

image

Go to beta features and scroll down until you find Proximity Prompt Beta, select it and then click save.

image

No in ROBLOX client it doesnt work

It’s Roblox Studio, not client.

  1. Please indent your codes correctly.

  2. Why didn’t you use local before making variables?