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
#How can i make spawners for teams or players in general?
1 messages · Page 1 of 1 (latest)
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
np
You can also just simply make the team color of a spawn point the color of the corresponding team
yeah hes correct, totally forgot about that lol