@Valkyrop is correct. Here’s how the result would look:
print("wsp man1")
local function playerdata(player)
print("wsp man2")
while true do
wait(1)
local amazingfolder = Instance.new("Folder")
amazingfolder.Parent = player
end
end
print("wsp man3")
game.Players.PlayerAdded:Connect(playerdata)