I'm practicing scripting and I am adding a feature where a GUI pops up when a player has joined. I am also using the script to resize it and when I do so this message pops up "No method name passed in __namecall for UDim2"
Here is my script. Can someone tell me what's wrong? I have tried looking for answers and attempting fixes but the same thing has happened.
game.Players.PlayerAdded:Connect(function(player)
Instance.new("ScreenGui", game.StarterGui)
local t = Instance.new("TextBox", game.StarterGui.ScreenGui)
t.Size = UDim2.new(300,0)(100,0)
end)

3 comments
dude. You didn't even see the main mistake... ._.
I did but it's so irrelevant compared to the bigger stuff
How do I specify a person without knowing the name? i know its like player.Name but when I write in the code it thinks i'm specifying a child. How do I get around this?