#Making a Proximity Prompt only enable if a player is a "Medic"

1 messages · Page 1 of 1 (latest)

cinder nacelle
#

I'm coding an asymmetrical game based on the Jurassic World series, and one of the "survivor" classes is the Medic.
The medic is supposed to heal injured team members with a proximity prompt that only the Medic can see and use.
However no matter how I code it, it always disables the Prompt, even if I'm playing as a Medic.
I even tried getting help from the AI assistant, but none of it's edits seemed to do anything to fix the issue.

Does anyone know what could be causing this? I'm currently using a local script inside the proximity prompt.

small roost
#

Yeah

#

Wait, where are you putting this local script

cinder nacelle
#

As of now it's in a default part just to make sure it works properly

small roost
#

Default part?

cinder nacelle
#

yea like the basic part

sudden moss
#

I think he is asking whether the script is local or sever

small roost
#

Local scripts don't run in parts within the workspace

sudden moss
#

Oh he placed it in the part

#

I misunderstood

cinder nacelle
#

Oh ok i see
Well then how can i make the proximity prompt only appear for ppl playing as Medic?

nocturne scaffoldBOT
#

studio** You are now Level 1! **studio

small roost
#

The overall idea is relatively correct. You'll just have to move the local script to something like StarterPlayerScripts to make it run, and you'll have to grab the proximity prompt(s) through other means than script.Parent

#

I'd also recommend a different method than placing an object in the character named "IsMedic" to determine if they're a medic. Like adding a tag, for example.