I am making a door system that is compatible with (or should be compatible with) my custom proximity prompts, but whenever I want to change the text of the prompt and apply it to the gui, the proximity prompt script prints this:
I get you, but even if its removed shouldn’t it not matter? Because I’m changing the prompt instance itself, and even when the prompt is hidden it will show up again with the changed value.
Ok I rmbered, though it isn’t related to urs.
I was trying to drop a tool from my character by pressing backspace, forgetting it was a core binding. So the core function ran first and deleted the part before mine ran, so my code couldn’t find the tool and caused the error
ObjectText and ActionText are both properties for the Proximity prompt itself.
Click on the Proximity prompt and look at the properties window.
–script inside the prompt for testing
local prompt = script.Parent
prompt.ObjectText=“objext”
prompt.ActionText=“action”
I mean why do you have text labels inside the prompt?
I’m sure it’s hitting that…
(maybe)
The Proximity prompt has a property named ObjectText but, you also have a text label within it by the same name … Making prompt.ObjectText not go to the property as it now hits the file within it.
Is this how you make Custom prompts vs Default? I’m talking about style = Default.
The text labels don’t go in the proximity prompt instance, they go into a billboardGUI which is a sibling of the instance, default proximity prompts use the default Roblox proximity prompt, and custom basically makes it invisible so you can modify it via the method I used. And I’m not having troubles referencing the proximity prompts, but only the ObjectText text label
I can try this, as well as the :Destroy() instead of :Remove() method, I am also thinking it might be possible the problem is that I’m changing the ProximityPrompt text values on a server script and then changing the GUI text on the local script, but even then it still changes the text so it cant be the issue
I also wanna note that the text indeed changes successfully, but these errors are just randomly showing up and I don’t know why and I’d rather have an empty error log rather than overflowing