#How in the heck do I get this proximity prompt to stop flickering last-second?

1 messages · Page 1 of 1 (latest)

proven trout
#

Hi,

I have a local script with a prompt.Triggered event which fires a Remote Event to the server. In the server script is where the model with the proximity prompt is destroyed.

Nothing has worked except for adding task.wait(0.05) (not even task.wait() alone without a number does it). But, this doesn't seem right, there should be a better way that I am missing.

Any help is greatly appreciated, thanks!

sour oar
proven trout
sour oar
#

task.wait should probably fix it tbh

#

That's more of a Roblox thing and not your fault

#

I'm assuming

sour oar
proven trout
sour oar
proven trout
#

it doesn't work

teal turtle
#

Probly client

proven trout
#

didn't work either

proven trout
#

I literally changed the entire system and it still does it

#

wtf

#

now the model is only deleted on the client side

clever flame
clever flame
proven trout
#

It is parented to the model's primary part.

clever flame
patent loomBOT
#

studio** You are now Level 4! **studio

clever flame
#

after the proximity prompt is activated, destroy the model while preserving the prompt, disable it, then destroy

#

try that

proven trout
#

Parent it to something else? If so, what exactly?

#

Just for testing, I parented it to the player instance and it's even worse 😭

clever flame
#

like Instance.new("Part") with the same model position temporarily

proven trout
#

Something like this?

#

It seemed to have made the prompt flicker further away.

#

Is this because of the tween maybe?

#

The prompt doesn't follow the model when it's tweening maybe?

clever flame
#

i mean yes destroy it, but you arent doing it the way i thought

proven trout
#

What were you thinking?

#

wtf

#

changing the model's parent to nil instead of destroying it works

#

I just don't know why

clever flame
#

sick

#

then just destroy it after some time

proven trout
#

okay so here is what i'll probably stick with

#

It doesn't work without the task.wait() or .Parent = nil

proven trout
clever flame