So I have a script that brings up text boxes with dialog (someone on this site helped to make it work). When I tested in ROBLOX studio, it worked perfectly, but when I play the game on https://web.roblox.com/games, it doesn't work. Here's the script...
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character
local player = game.Players.LocalPlayer
local pgui = player:WaitForChild('PlayerGui')
local sgui = pgui:WaitForChild('ScreenGui')
local text1 = sgui:WaitForChild('text1')
local text2 = sgui:WaitForChild('text2')
local text3 = sgui:WaitForChild('text3')
local text4 = sgui:WaitForChild('text4')
local text5 = sgui:WaitForChild('text5')
local text6 = sgui:WaitForChild('text6')
local text7 = sgui:WaitForChild('text7')
local text8 = sgui:WaitForChild('text8')
text1.Visible = true
wait(3)
text1.Visible = false
wait(2)
text2.Visible = true
wait(3)
text2.Visible = false
wait(2)
text3.Visible = true
wait(3)
text3.Visible = false
wait(2)
text4.Visible = true
wait(3)
text4.Visible = false
wait(2)
text5.Visible = true
wait(3)
text5.Visible = false
wait(2)
text6.Visible = true
wait(2)
text6.Visible = true
wait(3)
text6.Visible = false
wait(2)
text7.Visible = true
wait(3)
text7.Visible = false
wait(2)
text8.Visible = true
wait(3)
text8.Visible = false
Sorry it's so long, but do you have any suggestions on why it won't work on the actual site?

4 comments
Filtering enabled on or off? And Script or Local Script
Normal script, and filtering enabled is whatever the default is because I did not change it.
Make it a local script.
yes, im pretty sure you can only use "game.Player.LocalPlayer" in a local script only