Idc about how bad the code is I just need to urgently now why this won’t work with my local script, local script is in starterplayerscripts, and photo 2 that piece of code is repeated for all keys 24 times. PLEASE HELP ME, just tell me why this won’t work and the simplest way to fix
#Need URGENT Help with local script proximity prompts Jesus Christ.
1 messages · Page 1 of 1 (latest)
Why so serious where are you going that you need it urgently? And you dont specify the issue either
it looks like you want to make it so that when you trigger one proximity prompt all the others get disabled unless im wrong?
to organize, id start by grouping all of the proxmity prompts in a folder and then reference those proximity prompts by calling get children on the folder
then you can create a function that disables all of the other proximity prompts except the one that you pass in as an argument
Yes basically when a player picks up a key all other key proximity prompts will be disabled for that player, I don’t have time to organise it just tell me what to do to get it working, the script is in starterplayerscripts
Local script not working code something that it needs to be a child of something I don’t get this local scripts in starterplayerscripts currently
local ProximityPromptService = game:GetService("ProximityPromptService")
local proximityPrompts = ProximityPromptService:GetDescendants()
ProximityPromptService.PromptTriggered:Connect(function(prompt)
-- Disable all other proximity prompts
for _, otherPrompt in pairs(proximityPrompts) do
if otherPrompt ~= prompt then
otherPrompt.Enabled = false
end
end
end)
will this work?
since u are trying to disable all other prompts when u trigger one
I don’t need like code snippets thx tho I just need to understand why it’s doing this why won’t local scripts not work on proximity prompts when I put it in starterplayerscripts?
damn bro what is that
The syntax is correct and it's placed in starterplayerscripts so it should be working. Try adding a task.wait(1) after it's triggered. I don't really know what else you can do tbh
is there any other script which could be interfering maybe?
** You are now Level 1! **
that's.... really bad advice. proxy prompts dont have an adornee property and must be parented to a part in order to show in the right spot, so you literally cannot put them in a folder. why not just collectionservice. but i think you meant to say put them in a table and use for loops.
yea i meant to say put it into a table i just kind of rushed into giving a solution
what's the rush / urgency?
you still haven't explained whats broken with it. like grandpa seabolt said they probably havent loaded in so use waitforchild. either that or you got one of the numbers wrong and to fix it you'd have to organize it into a table so you can just use a loop
Oke
Roblox squid game tournament
Is it sorted?
HOYL SHIT
Wtf is that feet tag next to your name