Rapster2
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 1865 |
|
|
| 19 Jan 2014 08:05 PM |
| How exactly would I do this? Right now I am just teleporting the player to the spawn, but I want to do something similar to how Kohl's does it. |
|
|
| Report Abuse |
|
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 19 Jan 2014 08:06 PM |
| What exactly is a 'WO'?.. Wipe Out? |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 19 Jan 2014 08:07 PM |
Oh I see what you mean.
The script to respawn a player is;
game.Players.PlayerName:LoadCharacter()
Manipulate that to your needs. |
|
|
| Report Abuse |
|
|
Rapster2
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 1865 |
|
|
| 19 Jan 2014 08:07 PM |
Yes, a Wipeout.
And I need to figure out how to script that, not just use the Kohl's command. |
|
|
| Report Abuse |
|
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 19 Jan 2014 08:09 PM |
| So what are you trying to do? |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
| |
|
Goulstem
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 7177 |
|
|
| 19 Jan 2014 08:29 PM |
I don't think he knows how to manipulate that to his needs.. I'm guessing he wants it for all characters, if so;
for i,v in pairs(game.Players:GetChildren()) do v:LoadCharacter() end |
|
|
| Report Abuse |
|
|
Rapster2
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 1865 |
|
|
| 19 Jan 2014 09:13 PM |
No, I got it to work in Studio. When I play it solo, it works (I made a Spectate Gui for a SF game I'm making, when you click it you are put onto the Spectators team and respawned). But, when I test it in game, it doesn't work.. Here's the code:
player = script.Parent.Parent.Parent.Parent.Parent
if player.TeamColor == BrickColor.new("Institutional white") then script.Parent.Text = "Fight" else script.Parent.Text = "Spectate" end
script.Parent.MouseButton1Click:connect(function() if script.Parent.Text == "Spectate" then local plyr = script.Parent.Parent.Parent.Parent.Parent.Parent.LocalPlayer plyr.TeamColor = BrickColor.new("Institutional white") plyr:LoadCharacter() end end)
script.Parent.MouseButton1Click:connect(function() if script.Parent.Text == "Fight" then local plyr = script.Parent.Parent.Parent.Parent.Parent.Parent.LocalPlayer plyr.TeamColor = BrickColor.new("Really black") plyr:LoadCharacter() end end) |
|
|
| Report Abuse |
|
|
Rapster2
|
  |
| Joined: 16 Oct 2009 |
| Total Posts: 1865 |
|
|
| 19 Jan 2014 09:14 PM |
| Btw, I know the code is poorly written, I'm kinda making this game really quickly. |
|
|
| Report Abuse |
|
|