Teleport Data not working

  1. **What do you want to achieve?
    so i was making a teleport data system .
  2. **What is the issue?
    i dont know why but the script keep getting error , i dont even know what is the error
  3. **What solutions have you tried so far?
    i even look at DevForum and found nothing…

Here’s my script (local script).

local TeleportService = game:GetService(“TeleportService”)
local PlaceId = 7067639851
local Player = game.Players.LocalPlayer

local TeleportData = {
Flashlight = game.Players.LocalPlayer.Settings.Flashlight.Value
Phone = game.Players.LocalPlayer.Settings.PhoneControl.Value
Softness = game.Players.LocalPlayer.Settings.ShadowSoftness.Value
Shadows = game.Players.LocalPlayer.Settings.Shadows.Value
FPS = game.Players.LocalPlayer.Settings.ShowFPS.Value
Ping = game.Players.LocalPlayer.Settings.ShowPing.Value
}

script.Parent.MouseButton1Click:Connect(function()
TeleportService:Teleport(PlaceId, Player, TeleportData)
end)

here is an error pic
Capturekkkkkk

Seems like the Script should work Fine,
It Sends the Data.

Do you have a Script which Receives the Data?
If So, Please
Show the Script which Gets the Data (Not Send)

i haven’t make the receive script cuz i was fixing this script . for some reason , the script keep saying the “phone” section error

What error? Please List the Complete Description
Such as the Error | Scripts | Etc

Capturekkkkkk

local TeleportService = game:GetService(“TeleportService”)
local PlaceId = 7067639851
local Player = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()
	TeleportService:Teleport(PlaceId, Player, {
		Flashlight = game.Players.LocalPlayer.Settings.Flashlight.Value,
		Phone = game.Players.LocalPlayer.Settings.PhoneControl.Value,
		Softness = game.Players.LocalPlayer.Settings.ShadowSoftness.Value,
		Shadows = game.Players.LocalPlayer.Settings.Shadows.Value,
		FPS = game.Players.LocalPlayer.Settings.ShowFPS.Value,
		Ping = game.Players.LocalPlayer.Settings.ShowPing.Value
	})
end)

You forgot to Add A , (Comma) at the End of Each Table Value

oh its such a small mistake , thanks for the help!

1 Like