example variable's value is "0" , localscript from startergui updates varibale to "1" and script from workspace.part takes the variable's value for something It looks like something like this:
Local variable = "0" --I don't know where to put this
for script 1 ; Script location : game.StarterGui ~~ Script Type : Local script
variable = "1"
for script 2 ; Script Location : game.Workspace.Part
game.Workspace.Part.ClickDetector.MouseClick:Connect(function(Player)
Local Answer = variable + "1"
print(variable.."+ 1 = " .. Answer)
end)
the print should be "1 + 1 = 2

2 comments
use IntValues
which is ... how ?