i need help on changing the value of the bool value from false to true on a local script as of right now its not working and its breaking my game (there are no errors appearing it just doesnt change the value) the part where i need help is on line 26
local textLabel = script.Parent:WaitForChild("Frame") :WaitForChild('Text')
wait(1)
local function typewrite(object,text,length)
for i = 1, #text, 1 do
object.Text = string.sub(text,1,i)
wait(length)
end
end
local TypeSound = script.Parent.TypeSound
--TypeSound:Play()
--typewrite(textLabel, "Welcome To The button.",0.1)
--TypeSound:Stop()
--wait(3)
--TypeSound:Play()
--typewrite(textLabel, "This experience may not be suitable for some people.",0.1)
--TypeSound:Stop()
--wait(3)
TypeSound:Play()
typewrite(textLabel, "Click the button to continue.",0.1)
TypeSound:Stop()
local BoolValue = script.click1
BoolValue.Value = true
if script.click1.Value == true then
local button = script.Parent.Frame.Thebutton
button.MouseButton1Click:Connect(function()
TypeSound:Play()
typewrite(textLabel, "Click the button to continue.",0.1)
TypeSound:Stop()
end)
end
script.click1.Value = false
