so i'm making a script an d StarerGui has a blue line under it that says "unkown global" please help, I dont know how to define stuff, the script:
old script thats broken:
local UserInputService = game:GetService("UserInputService")
UserInputService.JumpRequest:Connect(function()
StarterGui.ScreenGui.Frame.Visible = true
wait(6)
StarterGui.ScreenGui.Frame.Visible = false
end)
new script:
local player = game.Players.LocalPlayer
local StarterGui = player.PlayerGui
local UserInputService = game:GetService("UserInputService")
UserInputService.JumpRequest:Connect(function()
StarterGui.ScreenGui.Frame.Visible = true
wait(6)
StarterGui.ScreenGui.Frame.Visible = false
end)

3 comments
bruh
oops sorry I forgot to make yours the answer, im rlly sorry i didnt know i didnt
its k