What I mean is, would a Value from a path change in a line of code?
So,
local x = game.Workspace.BoolValue.Value
x = true
would this change the path from game.Workspace.BoolValue.Value to true, so now if we try to print this,
print(x)
would it print true from the path, or true from the value of x... as in would
x = true
instead of
x = game.Workspace.BoolValue.Value
So it doesn't changegame.Workspace.BoolValue.Value's value? Or would it? And it would keep the path instead of the value?
Answer:
Okay so, I just figured out how to check it, thanks to TurtleTowerz.
I added the following to Workspace:
BoolValue
Script
in ServerScriptService I put the following Script:
local x = game.Workspace.Value.Value
x = true
print(game.Workspace.Value.Value)
local z = game.Workspace.Script.Disabled
z = true
print(game.Workspace.Script.Disabled)
In the end they both were, sadly, printed as false
As such, I conclude...
If you try to give the full path of something, and then change the Value of this path, the path itself will be destroyed, and replaced with the new Value.
Here was my full output:
--[[
Output:
Hello world!
false
false
]]
Sadly, this is the case.
~ Taryo

2 comments
Oops my bad, i read it wrong.
However, the output would be true, but if you print script.Disabled and it was originally false, it will print false.