I making a calculator in roblox to practice my coding skills, but there seem to be a promblem
local Mainframe = script.Parent.Parent
local Value = Mainframe.GivenValue.Value
if Value == 0 then
script.Parent.Text = "+"
else
script.Parent.Text = "X"
end
local function onChanged(value)
if Value == 0 then
script.Parent.Text = "+"
else
script.Parent.Text = "X"
end
end
Mainframe.GivenValue.Changed:Connect(onChanged)
the script parent is the "Text" , if i change the value in the playerGui, the text isnt changing, the text parent is the "Mainframe" and a mainframe has a numbervalue children name "GivenValue" all i need is when the givenvalue changes its value to 0, the text became "+" and when it changes to 1 or so on, the text became "X" that represent multiply, but there seem to be a promblem, if you help, i really appreciate it!
