so, the issue is that i made code, and i when i play my game it doesnt show my ui.
this is the code:
local function onClick()
local text_Gui = game:GetService("StarterGui").texty
local text_name = text_Gui.FrameText.name
text_Gui.Enabled = true
text_name = "cat"
end
script.Parent.ClickDetector.MouseClick:Connect(onClick)
so uhh ty for pointing out the text thingy lol but im not sure if my code is correct again:
local function onClick()
local text_Gui = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
local text_name = text_Gui.FrameText.name
text_Gui.Enabled = true
text_name.Text = "cat"
end
script.Parent.ClickDetector.MouseClick:Connect(onClick)