ok so, im trying to make a tutorial for my game that is releasing August 1st, but i have a problem, my localscript doesn't work and no errors are going to the output
Code (LocalScript)
local place = game:GetService("Players").LocalPlayer.IsTutorialFinished
local textplace = script.Parent.Text.Text
local button = script.Parent.OK.MouseButton1Click
local sound = script.Parent["OK.last"].ding
local button1 = script.Parent["OK.last"].Visible
local button2 = script.Parent.OK.Visible
local message1 = "Welcome to "..game.Name.." ! This is the tutorial which will help you to play the game! Press Ok to continue, press X to not read it."
local message2 = "Touch a PC to pick it up! Then press OK to continue."
local message3 = "After that, you can press the???? button at the top left! After that, press OK to continue."
local message4 = "Now, you can go to the SELL building, or you can click the ???? Sell button at the top left! Then touch the building, then press OK to continue."
local message5 = "Press the ?????????? button at the top left to upgrade your pc space! Then click 'Upgrade to maximum possible pc space with that amount of money', and that will make you have more pc space! Press OK to continue."
local message6 = "Thats pretty much it, you can press the ???? button at the top left to have more stuff. Gamepasses are permanent and one time use only, products are temporary and can use it an infinite amount of time. Press finish to finish the tutorial."
while wait() do
if place.Value == false then
textplace = message1
button:Connect(function()
sound:Play()
if textplace == message1 then
textplace = message2
end
if textplace == message2 then
textplace = message3
end
if textplace == message3 then
textplace = message4
end
if textplace == message4 then
textplace = message5
end
if textplace == message5 then
textplace = message6
button1 = true
button2 = false
end
end)
end
end
the question marks at the messages are emojis in my game.

1 comment
You called the TextLabel Text which is it's property then the script gets confused, MAybe change the TextLabels name