Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to save item when teleporting? [closed]

Asked by 3 years ago

hi im making a game that have game teleport in it. theres also tool in the game. id like to know how do you make it so that the player's backpack item will still be in the player's backpack when he or she teleported to the other game? (im still new to the whole scripting stuff)

0
You will need to make a game universe. Under your main place, create a new place. You will need to go into studio to actually make a place that correlates with the first place. You then can call the same datastore and your data is transferable between both places DarkDanny04 407 — 3y

Closed as Not Constructive by alexfinger21, IAmNotTheReal_MePipe, killerbrenden, and Dovydas1118

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by
VAHMPIN 277 Moderation Voter
3 years ago
Edited 3 years ago

You can achieve this by doing 2 things:

if it's a tool that EVERY player has just make a simple script like this in the game you teleport to:

game.Players.PlayerAdded:Connect(function(player)
game.Lighting.TOOL:Clone().Parent = player.Backpack
end)
or you can use the DataStoreService to save data and load data in the new game.
https://developer.roblox.com/en-us/api-reference/class/DataStoreService
0
thanks IEatToaster 9 — 3y
Ad