Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

[SOLVED] StarterGui has a blue line under it?!

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

0

bruh

0

oops sorry I forgot to make yours the answer, im rlly sorry i didnt know i didnt

0

its k

1 answer

✓ Accepted answer

local player = game.Players.LocalPlayer

local StarterGui = player.PlayerGui

This discussion is preserved as it was. New answers, comments, and votes are closed.