So I have a couple of values in workspace, I have a script in StarterGui that when you right click, the value changes. However, my value does not change. Am I doing something wrong? The weld break code works.
Code in starter:
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.Button2Down:Connect(function()
if game.workspace.Values.have.Value == 1 then
game.workspace.Values.have.Value = 0
player.Character.Weld:Destroy()
end
end)
Is there anything wrong??

4 comments
You can use RemoteEvents.
How??
https://developer.roblox.com/api-reference/class/RemoteEvent
Thanks!! Now I am happy.