trying to make a gui appear with key code but no work (btw its in startercharacter)
how do i do this i need help
script:
local uis = game:GetService(“UserInputService”)
local frame = script.Parent
uis.InputBegan:Connect(function(Input)
if Input.KeyCode == Enum.KeyCode.Q then
--Code
end)
end
I tried multiple ways like put the screengui and frame and the local script in startercharacter but no work
Xacima
(Xacima)
3
Can a gui appear without startergui
If you want a ScreenGui to be visible, it must be placed in either CoreGui or the PlayerGui.
Other than that you can use a SurfaceGui.
More information here: SurfaceGui | Roblox Creator Documentation
trying to make a gui appear with key code but no work (btw its in startercharacter)
how do i do this i need help
You’ll need to set the property of what you’re using to true (ex. TextBox.Visible = true
).
1 Like
You can parent it to the PlayerGui of the player.
1 Like
Man … i wish roblox added a multiple solution button XD
and how do u do that do u need to have local player = game.Players.LocalPlayer ?
Yes, in a local script that’ll fetch the local player.