I am currently creating a project to teleport users from place a to b. Pretty straight forward, however I have noticed that there is a rescaling process that occurs in between leaving the place and the second between places as seen below.
My code changed multiple times but same concept tried from both client and server produces same results.
-- client --
local TeleportService = game:GetService("TeleportService")
event.OnClientEvent:Connect(function()
TeleportService:SetTeleportGui(plr.PlayerGui.GUI)
end)
-- Server --
event:FireClient(plr,"TELEPORTING")
wait(2)
game:GetService("TeleportService"):TeleportAsync(PlaceId,{plr})
As seen above there is time between SetTeleportGui and the actual teleporting of players. I also want to note that the frame is currently in PlayerGui, but I have tried it in both ReplicatedStorages and generating the frame from code (no parent).
I also want to note the properties below, the frame being size = 1,0,1,0
I have searched up other tutorials and all of which focus on the second half of the teleport (which I am 99%confiden’t isn’t my problem), I have also read all the user documentation on SetTeleportGui and it doesn’t seem like I am doing anything wrong. Any advice would mean alot.
What I want to achieve (Yes I tried his code and same problem): SetTeleportGui - How to make the GUI appear both in the start and end server? - #10 by FlebleYT