Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
|
| 15 Mar 2015 09:13 AM |
I need the player to respawn (NOT DIE) after pressing this guibtton, how do I do this?
script.Parent.MouseEnter:connect(function() script.Parent.TextColor3 = Color3.new(255, 0, 0) end)
script.Parent.MouseLeave:connect(function() script.Parent.TextColor3 = Color3.new(255, 255, 255) end)
script.Parent.MouseButton1Click:connect(function() for i = 0,1,0.1 do script.Parent.Parent.BackgroundTransparency = i wait(0.1) end script.Parent.Parent.Visible = false game.Players.LocalPlayer:WaitForChild("PlayerGui").Music:Stop() end)
|
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 09:14 AM |
| game.Players.LocalPlayer:LoadCharacter() |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 09:17 AM |
already tested and it works
script.Parent.MouseButton1Click:connect(function() for i = 0,1,0.1 do script.Parent.Parent.BackgroundTransparency = i wait(0.1) end script.Parent.Parent.Visible = false game.Players.LocalPlayer:WaitForChild("PlayerGui").Music:Stop() game.Players.LocalPlayer:Kick() game.Players.LocalPlayer:LoadCharacter() end) |
|
|
| Report Abuse |
|
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
|
| 15 Mar 2015 09:31 AM |
| @both that kicks you from the game -_- |
|
|
| Report Abuse |
|
|
| |
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
| |
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
|
| 15 Mar 2015 09:33 AM |
| and your one does nothing pp |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 15 Mar 2015 09:37 AM |
script.Parent.MouseEnter:connect(function() script.Parent.TextColor3 = Color3.new(255, 0, 0) end)
script.Parent.MouseLeave:connect(function() script.Parent.TextColor3 = Color3.new(255, 255, 255) end)
script.Parent.MouseButton1Click:connect(function() for i = 0,1,0.1 do script.Parent.Parent.BackgroundTransparency = i wait(0.1) end script.Parent.Parent.Visible = false game.Players.LocalPlayer:WaitForChild("PlayerGui").Music:Stop() game.Players.LocalPlayer:LoadCharacter() end) |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 09:39 AM |
| I believe you can only use Load character in a script not a Local script. |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 15 Mar 2015 09:40 AM |
| You can use LoadCharacter() in LocalScript |
|
|
| Report Abuse |
|
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
|
| 15 Mar 2015 09:40 AM |
| This just removes the gui it dosen't respawn the player. |
|
|
| Report Abuse |
|
|
|
| 15 Mar 2015 09:44 AM |
Oh when I did a while ago I got a weird output |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
| |
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
|
| 15 Mar 2015 09:46 AM |
| Hm, I need it to respawn as the intro GUI makes the camera glitchy as the hats flicker, killing fixes but in the place killing respawn time is a lot longer. |
|
|
| Report Abuse |
|
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
| |
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 15 Mar 2015 10:14 AM |
Use :LoadCharacter() This respawns the player, but won't add any deaths.
for i,v in pairs(game.Players:GetChildren() v:LoadCharacter() end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 15 Mar 2015 10:15 AM |
sorry had a typo**
for i,v in pairs(game.Players:GetChildren()) do v:LoadCharacter() end |
|
|
| Report Abuse |
|
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
| |
|
AnimeWiki
|
  |
| Joined: 26 Oct 2014 |
| Total Posts: 460 |
|
|
| 15 Mar 2015 10:22 AM |
@BothAngles
Bakka
you told that respawn player !!!
criiii* |
|
|
| Report Abuse |
|
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
| |
|
Arrow242
|
  |
| Joined: 05 Apr 2014 |
| Total Posts: 227 |
|
|
| 15 Mar 2015 11:41 AM |
| Just make it Teleport you to the spawn when you press on The GUI. |
|
|
| Report Abuse |
|
|
Sckaar
|
  |
| Joined: 26 Nov 2008 |
| Total Posts: 2185 |
|
|
| 15 Mar 2015 12:06 PM |
| I don't need a teleport I need a quick "death". So it kills you then respawns you straight away that you barely notice. |
|
|
| Report Abuse |
|
|
Arrow242
|
  |
| Joined: 05 Apr 2014 |
| Total Posts: 227 |
|
|
| 15 Mar 2015 12:11 PM |
| Ok I get it. That's a hard one. |
|
|
| Report Abuse |
|
|
| |
|