local Blacksaber = script.Parent.Parent.Parent.Sabers:WaitForChild("Black Saber")
local Whitesaber = script.Parent.Parent.Parent.Sabers:WaitForChild("White Saber")
function Unlock()
if Blacksaber.Bought.Value == true then
script.Parent.Visible = false
Whitesaber.TextButton.Visible = true
else
print("You dont have this Saber!")
end
end
What im trying to achieve here is im trying to make it so if the Black Saber.Boughts value is true then the scripts parent is visible and the White Saber .TestButton is visible but everything works except these lines: script.Parent.Visible = false Whitesaber.TextButton.Visible = true else print("You dont have this Saber!") end end

5 comments
If theres no errors. Then there aren't any syntax problems. What is the thing your trying to do whit your script?
-- im trying to make it so if blacksaber.bought.value is true then the scripts parent is not visible and the whitesaber.textbutton is visible but everything works but the two lines -- script.Parent.Visible = false -- Whitesaber.TextButton.Visible = true
do not work properly
Where do you call the function "lol"? You need to describe in detail what you're trying to accomplish and how your script is set up. Please use the edit feature to do so.
edited