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

I Have No Idea how to script can you help?(Well i have some knowledge)

Asked by 9 years ago
Hey guys so this is what ive tried to do....

First Script.
1. I need a script to check admin.
2. When player==admin true then when player says !setmode sword... The system prepares to:
Add Swords to everyone.
Put everyone on a team Red or Blue while keeping teams balanced. 
Script will run when player==admin says start.
when player==admin says true then when player says !setmode rcl... Then system prepares to:
Add 2 guns (ill send you which ones) to each player(for now we can do one)
Put everyone on a team Red or Blue while keeping teams balanced. 
Script will run when player==admin says start.
3. Afterwards when the player==admin says !end Everything will stop each player will be sent back to team Trainee and the respawned at the main spawning point. They must no longer have the weapons.

Second script
1. Check for admin
2. If player==admin true then when player says !setoutscore (enter number here) the computer should know that when round starts and a player has been killed (the amount of times specified) the player should be changed to team trainee and sent back to main spawning point WITH NO WEAPONS.


Ok so I've tried a bunch of codes ill include them below. What am i doing wrong and how can I do what I'm trying to do. I'm not asking for someone to do all my work but to give me a start as i am not talented.(though if you can do the script for me then that would be great lol :)

Ok so here is what ive tried....

some of the stuff for team chager... 
local player = game.Players:GetChildren()

for i = 1, #player do
    if player[i].TeamColor == game.Teams.Red then
player[i].Character:MoveTo(game.Workspace.Field.RedSpawn.Position)
else if player[i].TeamColor == game.Teams.Blue then
player[i].Character:MoveTo(game.Workspace.Field.BlueSpawn.Position)
end
end
end

SOME for giving weapons(IM ALL OVER THE PLACE DONT REALLY KNOW HOW TO DO THIS)

function(player)
for weapon in pairs(game.Lighting.Tools[player.TeamColor.Red]:GetChildren() do
(IDK what to put here)
end
end
game.Players.PlayerAdded:connect

Yeah so please help me im lost
0
Roblox wiki. EzraNehemiah_TF2 3552 — 9y
0
This is not a request site nor is it a site for you to learn how to script. This website is intended to help you fix specific problems with an already developed script. Please use wiki.roblox.com to learn how to script. FearMeIAmLag 1161 — 9y

Answer this question