#I can't get Proximity Prompt to execute a function when the E button is clicked

23 messages · Page 1 of 1 (latest)

uneven hull
#

Help ; (

faint tulip
#

i dont think you can do it with startergui

#

like that

elfin fulcrum
#

OMG SAME THING

uneven hull
#

do you know how to do something like that?

faint tulip
#

yes

#

put the gui in replicated storage

#

and

#

also is it a server script

#

@uneven hull

uneven hull
#

I will try to do that if it ends up not working I open another help, thanks

faint tulip
#

no

#

i can do it

uneven hull
#

Uh okk

faint tulip
#

like this?

#

if so

uneven hull
faint tulip
#
local replicatedstorage = game:GetService("ReplicatedStorage")
script.Parent.ProximityPrompt.TriggerEnded:Connect(function(player)
    local gui = replicatedstorage.someguiuputhere:Clone()
    gui.Parent = player.PlayerGui
end)```
#

to close it just gui:destroy()

steep pike
#

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