-
What do you want to achieve? I am making something and I want to enable a proximity promt LOCALLY when you have a tool equipped in your backpack, and when the tool is taken out of your backpack the proximity promt to go away.
-
What is the issue? I have no Idea how to do it,
-
What solutions have you tried so far? I looked everywhere.
So, I did some experimenting and the below script will basically be a quick replication of how to do this:
To Enable:
tool.Equipped:Connect(function()
ProximityPrompt.Enabled = true;
end)
To Disable:
tool.Unequipped:Connect(function()
ProximityPrompt.Enabled = false;
end)
proxtest.rbxl (31.3 KB)
Well I know how to do that, but that would be serverside
Wait never mind I think I misread your question. Do you want to disable and enable the prompt on the server, but from a local script, or do you want the prompt disabled and enables only on the client?
I think you would put it in a local script
I want it to disable/enable only on clientside
I think putting it in a local script would do it, but I am not 100% sure. I cannot test it rn, sorry
Nope, mine works perfectly fine. While being on the client.
proxtest.rbxl (31.3 KB)
Do you put yours in a server script?
The proximity prompt its self is a serverscript although it fires a remote to the client where it allows everything to happen there. (:
The tool its self is client-sided to hide/show the proximity prompt.
I have one problem, I have no idea how to make a remote event that work with this and Ive been trying for a long time lol, how do I?
The file @BakDoor sent works fine, with the remote event and all from what I can see.