Proximity Prompt won't open ui anymore

I’ll go onto a test place right now to see if I can replicate the problems

2 Likes

okay, thank you. do you want me to give you the youtubers name? it’s the only videos they have published and therefor you’d have the same script as me

1 Like

they have a downloadable model so it’d be easy to replicate

1 Like

Not necessary, the error is most likely just a roblox thing

1 Like

alr, I’ll be trying to see if I can fix it too. thanks again for your help

1 Like

Im not getting anything abnormal with this quick code snippet:

-- Services --

local ReplicatedStorage = game:GetService("ReplicatedStorage")

-- Variables --

local stand = ReplicatedStorage.Stand
local proximityPrompt = stand.ProximityPrompt

-- RunTime --

stand.Parent = workspace -- Initalizes stands

proximityPrompt.Triggered:Connect(function()
	
	print("Prompt Triggered")
	
end)

Could you send me the link to the model?

2 Likes

I’ll try that rn and lyk. yes, here

I couldn’t replicate what has happened there, even after it being initialized in ReplicatedStorage it still showed the ui

1 Like

I just tried that and it worked to an extent. where I handed the moving the podiums out of replicated storage into the workspace was in a local script. when I tried to put everything that was inside the proximity prompt script it wouldn’t work because the proximity prompt script was a server script which held an event that fired to the client and one that fired from a local script to that proximity prompt server script(the try on outfits event). so I copied and pasted everything from that local script that I mention and put it into a server script located in server script service and the prompt showed up, when I clicked it, it opened the UI but the issue is that inside the Character model it doesn’t load a single asset that was in the character model at all.

1 Like

Yeah, that would be an issue, serverside Scripts cant register stuff that happens locally without intervention with a RemoteEvent or RemoteFunction, change the script to be server sided (regular script).

2 Likes

can prompts only be triggered via a server sided script? would I just have to work around the character model not loading in with the server script and fix that?

1 Like

Its not that, the models simply didn’t exist in workplace (workplace :skull:) to the server

1 Like

can you explain that a little more? because I really don’t understand. because the podium model existed and it shows the podium model even though the podium model gets dragged out of replicated storage the exact same way the character model gets dragged out.

1 Like

Yeah this is a thing that most starter scripters don’t understand, what you see in your game directory is the client side (running on your local computer), which is different from serverside, which runs on a server hosted by roblox. Here is an article that goes deeper into this:

2 Likes

My grammar is amazing.

wordfillllllllllll

1 Like

so what I’d have to do is drag the podiums from replicated storage via a local script and then use a remote event to connect the local script to a server script and run the rest of the necessary code there?

1 Like

Yes, but considering that the only thing that the local script is doing is looping through and firing a remote event hundreds of times it is way more resource efficient to do it all on the server

2 Likes

alright I should be able to do that. I’d do it now but my girl wanted to play with my sister tonight and I don’t wanna make her reschedule that. thank you so much for your time and solutions, seriously. you’re a life saver man. Thanks again!!!

1 Like

Just one thing, some events can only run on certain sides, for example, for GUI related events you should use LocalScripts because it is only for one player, and you can’t even run GUI related things serverside.

Example: button.Activated cannot run on the server, and only on the client

1 Like

yes I’m aware of that. all I have to do is drag the podiums from replicated storage into workspace, type out the prompt script and I should be good to go with minor tweaking.

1 Like