So this script only works for one player, having only one variable meaning that one player can hover with mouse over and the other person doesnt have to do it. I can't use localscripts as this is ProximityPrompt. Any way I can do this?
Part of Script:
local isHovering = false
script.Parent.ClickDetector.MouseHoverEnter:Connect(function()
isHovering = true
end)
script.Parent.ClickDetector.MouseHoverLeave:Connect(function()
isHovering = false
end)
script.Parent.ProximityPrompt.PromptButtonHoldBegan:Connect(function(plr)
if isHovering == true then
local value = plr.PlayerGui.PickupCircle.ArcBar.CBar.Fill.Value
plr.PlayerGui.PickupCircle.ArcBar.Visible = true
Tween = ts:Create(value,Info,Goal)
Tween:Play()
end
end)

4 comments
Just switch to local scripts, it is the easiest and best method, ProximityPrompts can be used on the client, you would just need to use RemoteEvents (with simple anti remote exploits).
ProximityPrompts can't be used on Client
Why so? They can, the problem is that your script must be located in container in which it can run in (StarterPlayerScripts is the best), local scripts don't run in the workspace so if you change references to the Prompt and put it into any of the client containers it will work without any problems
https://developer.roblox.com/en-us/api-reference/class/LocalScript