DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 05 Jul 2014 11:27 PM |
I basically just need to create two spawns + teams. One spawn - Specific group+allies only Other spawn - raiders
How do I do this? Every time I've tried I end up breaking it. |
|
|
| Report Abuse |
|
|
Laedere
|
  |
| Joined: 17 Jun 2013 |
| Total Posts: 23601 |
|
| |
|
|
| 05 Jul 2014 11:30 PM |
| Insert the service named "Teams" and insert a Team object for each team you want. Make sure each color team is what you want and set the TeamColors in the spawns accordingly. |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 05 Jul 2014 11:32 PM |
stfu x 2
Thanks, I'll give it a go. No doubt I'll be back for more help about the same thing e.e |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 05 Jul 2014 11:53 PM |
Frost, surprisingly that went a long way, completed all my problems apart from one. Now I spawn in the right place due to group ID. But I joined on my alt, I spawned in Raiders area, but on the group team.
Is there any way I can make them spawn as a 'Raider' first. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 05 Jul 2014 11:56 PM |
game.Players.PlayerAdded:connect(function(plr) if plr:IsInGroup(idkwhateverthehellisyourgroupid) then v.TeamColor = game.Teams:FindFirstChild("TeamNameHere").TeamColor else v.TeamColor = game.Teams:FindFirstChild("Raiders").TeamColor print('btw the first question wasnt even a script question scrub') end end) |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 05 Jul 2014 11:59 PM |
So with that, insert blank script, paste, edit details in there? Do I leave that in workspace |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:07 AM |
| serverscriptservice after replacing some variables WHICH SHOULD BE OBVIOUS |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:09 AM |
I changed variables, not that dumb. fortunately.
It's killing me this, should of learned this, been here long enough to of. Used the script with changed variables, still nothing. Just realised it's also spawning me in raiders+group spawn+still starting off in group team, on my alt
qq wish i could script
|
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:11 AM |
Change v.TeamColor to plr.TeamColor
I was thinking for i, v in pairs for some reason |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
| |
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:16 AM |
| Changed to Plr, still same outcome |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:17 AM |
print 'game.Players.PlayerAdded:connect(function(plr) if plr:IsInGroup(132765) then plr.TeamColor = game.Teams:FindFirstChild("KRINK/Allies").Dark stone grey else plr.TeamColor = game.Teams:FindFirstChild("Raiders").Bright red print('btw the first question wasnt even a script question scrub') end end)'
Just checking, see anything wrong? |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:19 AM |
WHY IS THIS IN A PRINT
game.Players.PlayerAdded:connect(function(plr) if plr:IsInGroup(132765) then plr.TeamColor = game.Teams:FindFirstChild("KRINK/Allies").TeamColor else plr.TeamColor = game.Teams:FindFirstChild("Raiders").TeamColor end end) |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
| |
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:21 AM |
I've put it in, no print, still same outcome. I've got the teams right haven't I?
Auto assign KRINK - Off Auto assign Raiders- On |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:23 AM |
| Try making all AutoAssignable to off. And if it doesnt work check the output window for errors. |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:25 AM |
| Turned them both to off, when joining made a new team 'Neutural' think I'm best off keeping it on raiders |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:27 AM |
Here's the script I've put in the group only spawns, which doesn't seem to work ,-.
local groupId = 132765-- Enter your group number here! local groupId = 132765 function RegisterPlayer( player ) if CheckInGroup(player, groupId) then HoldThreadForCharacter(player) player.Character:MoveTo(script.Parent.Position + Vector3.new(0,3,0)) end end
function CheckInGroup( player, id ) if player:IsInGroup(id) then return true end return false end
function HoldThreadForCharacter( player ) repeat wait() until Workspace:FindFirstChild(player.Name) end
Game.Players.PlayerAdded:connect(RegisterPlayer) for i,v in pairs(Game.Players:GetPlayers()) do RegisterPlayer(v) end
|
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:31 AM |
@dark could you just give me the output it makes things so much easier.
Also
local groupId = 132765 function RegisterPlayer( player ) if CheckInGroup(player, groupId) then player.CharacterAdded:connect(function(char) wait(.5) char:MoveTo(script.Parent.Position + Vector3.new(0,3,0)) end) end end
function CheckInGroup( player, id ) if player:IsInGroup(id) then return true end return false end
Game.Players.PlayerAdded:connect(RegisterPlayer) for i,v in pairs(Game.Players:GetPlayers()) do RegisterPlayer(v) end
|
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:34 AM |
06:16:35.565 - DataModel Loading http://www.roblox.com/asset/?id=25670970 06:21:26.664 - Auto-Saving... 06:26:26.651 - Auto-Saving... 06:31:26.668 - Auto-Saving... 06:33:18.932 - Auto-Saving... 06:33:20.134 - Flag is not a valid member of Workspace 06:33:20.135 - Script 'Workspace.FlagManager', Line 4 06:33:20.136 - Stack End 06:33:20.146 - Workspace.Script:1: unfinished string near ''game.Players.PlayerAdded:connect(function(plr)' Close button loaded 06:33:20.163 - Flag is not a valid member of Workspace 06:33:20.163 - Script 'Workspace.Capture', Line 6 06:33:20.164 - Stack End source doesnt exist, your command script may malfunction 06:33:20.193 - Attempt to connect failed: Passed value is not a function 06:33:20.194 - Script 'Workspace.Stuff.HRScript', Line 7 06:33:20.195 - Stack End 06:33:20.196 - Teams is not a valid member of Model 06:33:20.198 - Script 'Workspace.Stuff.Extras', Line 16 06:33:20.199 - Stack End Hello world! 06:33:21.686 - Workspace.Team Only Spawn:2: ')' expected near 'ID' 06:33:22.141 - httpGet http://www.roblox.com/asset/?id=100808216&serverplaceid=0&clientinsert=0 failed. Trying again. Error: Asset is not trusted for this place. Elapsed time: 0.323007 06:33:22.142 - httpGet failed. Trying again. Elapsed time: 0.323007 06:33:22.143 - Content failed for http://www.roblox.com/Asset/?id=100808216&serverplaceid=0&clientinsert=0 because Asset is not trusted for this place 06:33:22.144 - Content failed because Asset is not trusted for this place LinkedLeaderboard script version 5.00 loaded
That's le output, sorry I just don't understand this stuff. |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:37 AM |
OK. Delete the old script with game.Players.PlayerAdded and add in the new one I've made. |
|
|
| Report Abuse |
|
|
DarkCon
|
  |
| Joined: 11 Sep 2008 |
| Total Posts: 5616 |
|
|
| 06 Jul 2014 12:41 AM |
The first one where you took away print or the one you posted just then |
|
|
| Report Abuse |
|
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 06 Jul 2014 12:43 AM |
| The one where I took away print. |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2014 01:04 AM |
| laedre if you ain't going to help then gtfo ;) |
|
|
| Report Abuse |
|
|