Okay I have no idea why it is doing this. In studio it works fine, but in solo mode it says that in the title. There is a textbutton that when you press it,(server script) this script happens
local p = game.Players.LocalPlayer p.PlayerGui.MapSele.Frame.Enter.MouseButton1Click:connect(function() local p = game.Players.LocalPlayer local c = p.Character c.Torso.Anchored = true local h = Instance.new("Message",p.PlayerGui) h.Text = "Please Wait.." p.PlayerGui.MapSele.Frame.Enter.Visible = false local TeleportService = game:GetService("TeleportService") local level1Id = 932155277 TeleportService:Teleport(level1Id, p) end)
but it just says the title in the output. any idea why?
Now, I know this has happened to me before, try putting a space so that
Instance.new("Message",p.PlayerGui)
Becomes
Instance.new("Message", p.PlayerGui)
Or it reads the 2 arguments as one.
Why is this in a server script?? Local player can only be accessed through a local script..
If this fixed your problem pls accept this answer!