What do you want to achieve?
I would like the player’s inventory, hair, hat(s), accessories, face, shirt, and pants to be saved as they teleport to different Places within the Experience.
Here’s the scripts I’ve written so far; however, they’re not working I’m very new to scripting and have been researching TeleportData/Service for a while but it’s been a struggle.
Serverscript w/in proximity prompt/part in Orgin Game:
local ProximityPrompt = script.Parent
local Place = --ID
local teleportData = {
["HairAccessory"] = workspace.HumanoidDescription.HairAccessory,
["Hair"] = workspace.HumanoidDescription.Hair,
["Hat"] = workspace.HumanoidDescription.Hat,
["Face"] = workspace.HumanoidDescription.Face,
["Shirt"] = workspace.HumanoidDescription.Shirt
["Pants"] = workspace.HumanoidDescription.Pants,
["Inventory"] = workspace.Players.LocalPlayer.Backpack
}
ProximityPrompt.Triggered:Connect(function(plr)
TeleportService:Teleport(Place, plr, teleportData)
end)
LocalScript w/in StarterPlayerScripts in Destination Game:
local TeleportService = game:GetService("TeleportService")
local teleportData = TeleportService:GetLocalPlayerTeleportData()
if teleportData then
humanoid_Description.Name = "HumanoidDescription"
humanoid_Description.Parent = game.Workspace
humanoid_Description.HairAccessory = data["HairAccessory"]
humanoid_Description.Face = data["Hair"]
humanoid_Description.Face = data["Hat"]
humanoid_Description.Face = data["Face"]
humanoid_Description.Shirt = data["Shirt"]
humanoid_Description.Face = data["Pants"]
humanoid_Description.Face = data["Inventory"]
plr:LoadCharacterWithHumanoidDescription(workspace.HumanoidDescription)
end
end)
I’m sorry for my terrible scripts, I’m very new to scripting but truly enjoy using the DevForum as a resource for learning
Thank you!