#I need help with proximity prompt

33 messages · Page 1 of 1 (latest)

wraith pulsar
#

The problem is the proximity prompt, i dont know how to make the proximity prompt accesible to others
when someone dies the proximity prompt appears in the body but only the one killed can see it.
Can someone help me to make the prompt accesible to others.

forest portal
#

Are you using a local script or a server script to create the prompt?

#

a server script is a regular script

wraith pulsar
#

yes its a local

forest portal
#

that’s the issue

#

do you understand filtering enabled?

#

anything done in the server is replicated to each client, but if something happens in the client, it doesn’t replicate back to the server

#

there’s a few videos on it

wraith pulsar
#

yeah i know about it

forest portal
#

ok

#

well, when you create the prompt, it shows up on the client, or the dead player, but it doesn’t go back to the server

#

you need a server script, then everyone will see it

wraith pulsar
#

so just change the local script into a normal?

forest portal
#

yea, that should work

wraith pulsar
#

im going to try it
thank you so much

forest portal
#

np!

#

lmk if it works

#

i have some ideas if it doesn’t work

wraith pulsar
#

one last problem
at the start is
local player = game.Players.LocalPlayer
i need some other way to get local player

forest portal
#

figured that would happen

#

where’s the script

#

is it in the player

#

no

wraith pulsar
#

character

forest portal
#

is it in the character

#

ok

#

you can get the player from the character

#

i’ll write the line

#

just a sec i’m opening my computer

#
local player = game:GetService("Players"):GetPlayerFromCharacter(script.Parent)
#

thats assuming the script is directly under the character, and not under the humanoid or anything

wraith pulsar
#

im gonna try it

forest portal
#

good luck!