Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to change values in the server side from StarterGui?

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

0

You can use RemoteEvents.

0

How??

0

Thanks!! Now I am happy.

1 answer

✓ Accepted answer

You need to use remote event!

Instance.new("RemoteEvent")

this should help you get started!

1 comment

1

Thanks!!

This discussion is preserved as it was. New answers, comments, and votes are closed.