#How can i make spawners for teams or players in general?

1 messages · Page 1 of 1 (latest)

ashen pebble
#

I wanna make a spawner for when you die or when you re-enter the game, like in Blox Fruits, but also make it so if lets say, you are a marine, you spawn in the left-most side if you go to that area, or if you are a pirate, you spawn at the right-most area? since I'm trying to make different classes for a One Piece game like pirates, marines, revolutionary etc

scenic wadi
#

use conditonal logic to tp them to a specific spawn locatiom based on the team, so make a script that will read the team and determine what point to be sent to

#
game.Players.PlayerAdded:Connect(function(player)
    player.CharacterAdded:Connect(function(character)
        local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
        
        if player.Team == game.Teams.Red then
            humanoidRootPart.CFrame = workspace.RedSpawn.CFrame
        elseif player.Team == game.Teams.Blue then
            humanoidRootPart.CFrame = workspace.BlueSpawn.CFrame
        end
    end)
end)

just for example

#

@ashen pebble

ashen pebble
#

Oh ok

#

That makes sense

#

Thank you

scenic wadi
#

np

vivid goblet
scenic wadi
#

yeah hes correct, totally forgot about that lol