I want to create a TextBox inside a Screengui that I have in the Player's PlayerGui. However, when I run this LocalScript:
Sgui = game.Players.LocalPlayer.PlayerGui.Chat Txt = Instance.new("TextBox", Sgui)
Noting happens. I had a similar problem to this earlier, and I was advised to use a Script instead of a LocalScript (although I'm not sure why), and it worked. But this time I can't use a normal script because I don't know how to reference the correct Player without using LocalPlayer.
So what is wrong and what do I do?
--[[LOCALSCRIPT]]--
local localplayer=game:GetService('Players').LocalPlayer local playergui=localplayer:findFirstChild('PlayerGui')
--Boom Gui Done. THUMBS UP! ;D