generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How can you make group role spawns?

Previous Thread :: Next Thread 
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 02:58 PM
I've been trying forever to figure this out but its not working

can someone please help me do this
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
05 Nov 2017 03:01 PM
game:GetService("Players").PlayerAdded:Connect(function(player)
if player:GetRoleInGroup(groupID) == "roleName" then
player.RespawnLocation = position
elseif player:GetRoleInGroup(groupID) == "roleName2" then
player.RespawnLocation = position2
end
end)


attempt to index global 'soul' (a nil value)
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 03:16 PM
Does not seem to be working
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 04:32 PM
bump
Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 04:35 PM
You could use teams? What kind of game is it for? If you don't want teams to show disable the leaderboard. If not, then you should consider just creating your own spawn system so it is more custom.


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 04:38 PM
I've been using teams, but I need a script that spawns you at a certain spawn depending on you're role in my group
Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 04:42 PM
Try this.

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
if Player:GetRankInGroup(id) == NumericalId then
Character.Humanoid:MoveTo(PartToTeleport)
end
end)
end)


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 04:51 PM
Does not seem to be working, I put the script in workspace is this script correct? game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) if ############################## ## ## then Character.Humanoid:MoveTo(Game.Workspace["HR spawn"]) end end) end)
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 04:52 PM
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) if ############################## ## ## then Character.Humanoid:MoveTo(Game.Workspace["HR spawn"]) end end) end) r+://651806908
Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 04:53 PM
I don't think the ### in game is supposed to be capitalized. Try that. Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 04:54 PM
The what in game? its tagged


Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 04:55 PM
The letter g.


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 04:57 PM
fixed it but still not working, I've been trying forever I guess theres no way to do it


Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 04:58 PM
Instead of using brackets try renaming it something simpler and just doing :FindFirstChild(part) instead.


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 05:02 PM
game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) if ############################## ## ### then Character.Humanoid:MoveTo(FindFirstChild(HRspawn)) end end) end) dident work
Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 05:02 PM
You need quotation marks. (")


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 05:06 PM
still not working


Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 05:07 PM
And you are using the correct group role id (ex. 12) without quotes in the if statement?


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 05:08 PM
Yes


Report Abuse
Smeers is online. Smeers
Joined: 14 Feb 2013
Total Posts: 797
05 Nov 2017 05:10 PM
At this point I think you're just looking at people's working scripts and when you copy-paste them without changing anything, you expect them to work.

It's a bit concerning. Try making your problem more clear and indicate errors and similar through the Output window.


Report Abuse
Nucl3arPlays is online. Nucl3arPlays
Joined: 31 Dec 2013
Total Posts: 141
05 Nov 2017 05:10 PM
Idk then.


Nuclear | Polar Arts Developer
Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 05:11 PM
Im not, I've done everything I can to explain the problem and theres no error in the output. I try spawning the spawn with the script linked to it and a normal spawn and it still spawns me at a random spawn


Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
05 Nov 2017 05:25 PM
here

uncopylocked

https://www.roblox.com/games/1157797946/memorycodes-Place-Number-157


Report Abuse
Iafy is online. Iafy
Joined: 03 Mar 2013
Total Posts: 803
05 Nov 2017 05:56 PM
thanks memory code, it works I've been trying forever to get this to work. thanks again


Report Abuse
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
05 Nov 2017 06:36 PM
no problemo


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image