#Proximity prompt not understanding what to do

1 messages · Page 1 of 1 (latest)

late umbra
#

im trying to tell my proximity prompt to make a frame visible and its not understanding

script.Parent.Triggered:Connect(function()

game.StarterGui.ScreenGui.ShopGui.Visible = true

end)

peak fractal
#

You need to use the localplayee

#

game.Players.LocalPlayer.PlayerGui

#

StarterGui is just cloned into the players gui

#

But the playergui is what the player sees

late umbra
#

lemme see

peak fractal
#

Also

#

You need to set the scripts runcontext in the scripts proprieties to client

#

Since a localscript doesn't run in the workspace

#

But if you use many proximity promts I recommend using ProximityPromptService and a table with functions

peak fractal
#

Actually nvm

#

Hmm

#

U gotta delete the localscript and place a normal script

#

Then set the runcontext to client

split mist
#

Bro game.StarterGui crying

split mist
peak fractal
#

Yeah but then you got a lot of connections and performance goes down

split mist
#

A normal script set to run in client doesn't behave the same way as a local script

peak fractal
#

Ye

late umbra
#

thanks guys alot