I have a WWI battleground in a map that I want you to be able to get gear from a base camp in a separate place. I don't know how to make you keep your gear or team, though. Or if that's even possible. If it is, I'd be super grateful to anyone who could tell me how it's possible.
Here's the place teleportation script I've got so far:
PlaceId = 20158067
Part = script.Parent
Players = Game:GetService("Players")
Part.Touched:connect(function(Hit)
Player = Players:GetPlayerFromCharacter(Hit.Parent)
if Player then
Game:GetService("TeleportService"):Teleport(PlaceId, Player.Character)
end
end)
Thinking about it, I could just have it be from the same place if I have to, but it wouldn't be as pretty to try and use separate effects. I'd also like to have the opportunity to add separate battle zones later, but that's not as important as getting this one map to work.
Thanks! -Bubblehead12

1 comment
As a possible sidenote, I would also like to know a site that teaches scripting. I am NOT very good, and I'd like to have a simple start to doing it by myself, so if anyone knows a good site and sees this, feel free to comment please.