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 |
|
|
|
| 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
|
  |
| Joined: 03 Mar 2013 |
| Total Posts: 803 |
|
|
| 05 Nov 2017 03:16 PM |
| Does not seem to be working |
|
|
| Report Abuse |
|
|
Iafy
|
  |
| Joined: 03 Mar 2013 |
| Total Posts: 803 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 03 Mar 2013 |
| Total Posts: 803 |
|
|
| 05 Nov 2017 04:54 PM |
The what in game? its tagged
|
|
|
| Report Abuse |
|
|
|
| 05 Nov 2017 04:55 PM |
The letter g.
Nuclear | Polar Arts Developer |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 05 Nov 2017 05:02 PM |
You need quotation marks. (")
Nuclear | Polar Arts Developer |
|
|
| Report Abuse |
|
|
Iafy
|
  |
| Joined: 03 Mar 2013 |
| Total Posts: 803 |
|
| |
|
|
| 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
|
  |
| Joined: 03 Mar 2013 |
| Total Posts: 803 |
|
| |
|
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 |
|
|
|
| 05 Nov 2017 05:10 PM |
Idk then.
Nuclear | Polar Arts Developer |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 05 Nov 2017 05:25 PM |
here
uncopylocked
https://www.roblox.com/games/1157797946/memorycodes-Place-Number-157
|
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|