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??
You need to use remote event!
Instance.new("RemoteEvent")
this should help you get started!