#need a scripter
82 messages · Page 1 of 1 (latest)
evry thing
like?
one sec
how i can make a system were player on a team spawn or wenn a map is voted and then teleportet guns stuff like that
** You are now Level 3! **
i mean
ig first off create a team instance
1 or 2 teams idk how much you want into the teams category
ok
then
Ill accept
create a script
a server script into serverscript service @sonic abyss
yes
Ok ya i can do everything
then say
game.Players.PlayerAdded:Connect(function(plr)
end)
how many teams did you add? @sonic abyss
2
actually wait hold up
then say this inside the function
for _, v in pairs(game.Teams:GetChildren()) do
end
i,m confused
you dm me or how?
ill send it here
ok
nvm
game.Players.PlayerAdded:Connect(function(plr)
local teams = game.Teams:GetChildren()
local randomTeam = teams[math.random(1, #teams)]
plr.Team = randomTeam
end)
@sonic abyss
this is the script
that picks the random team
ill brb
don't roblox alredy pick a random team
oh ok
cuz like what if you want the players to automatically be a no team
and then assign the team
after the click play button or something
you get it?
ill brb now
oh yea
back
ok
waht is your roblox username so i can pay
really?
lmk if you need anything else
ty
you said you wanted to spawn tools or something?
how i can make a system were player on a team spawn or wenn a map is voted and then teleportet guns stuff like that
this?
yeah i can help with that
ok and the team script?
whatever you need i can help with
ok
but also one thing, you shouldnt rely on someone else, id prefer learning how to script
i know but evry time i wanna learn that my head just says no or i can't remember anythin afther 2 day
so waht code do i use for the teams?
you know how many times i wanted to give up when i was learning
and i took so many pauses
wym
this:
oh
one sec
game.Players.PlayerAdded:Connect(function(plr)
local teams = game.Teams:GetChildren()
local randomTeam = teams[math.random(1, #teams)]
plr.Team = randomTeam
end)
or this
game.Players.PlayerAdded:Connect(function(plr)
end)
make the teams you want to give when spawning like red and blue
autoassignable = false
and make the main menu team or like no team autoassignable = true
i gotta do some other things rn ill help you later ok? @sonic abyss
ok