Local Script won't change StringValue

Then you should just use a server script for the whole thing. The server script can detect if a player fires the ProximityPrompt.

FireServer only works from a Local Script, and Firing clients only works from a Server script.

I would recommend creating a folder in either ReplicatedStorage or workspace with multiple values, and name them after the player’s UserIds, as having a single value for each client is quite inefficient.

I also do recommend you look up some tutorials for remote events if you’re unfamilliar with them.

That being said,

A script inside of ServerScriptService which detects when the prompt is triggered, which then edits the stringValue for the associated player in ReplicatedStorage. This is more efficient and actually less complicated than your current setup.

2 Likes

I have an idea for what you said. Thank you

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.