if x.X > x.Y and x.X > x.Z then
local e = tonumber(x.X)
script.Parent.MaxActivationDistance = e / 2
elseif x.Y > x.X and x.Y > x.Z then
local e = tonumber(x.Y)
script.Parent.MaxActivationDistance = e / 2
elseif x.Z > x.X and x.Z > x.Y then
local e = tonumber(x.Z)
script.Parent.MaxActivationDistance = e / 2
elseif x.X == x.Y and x.X == x.Z then
local e = tonumber(x.X)
script.Parent.MaxActivationDistance = e / 2
end
Makes the ProximityPrompt appear no matter which wall you’re facing on.
Thanks, but this will simply expand the radius to the size of the widest face.
This will cause ProximityPrompt to fire too far when the player approaches a narrower face.
What if you increase the range of MaxActivationDistance? Place the largest number in size, that is, if the piece measures 6, 10, 14, 14 would be the number for MaxActivationDistance.