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 to respawn?

Previous Thread :: Next Thread 
Sckaar is not online. 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
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
15 Mar 2015 09:14 AM
game.Players.LocalPlayer:LoadCharacter()
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
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 is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 09:31 AM
@both that kicks you from the game -_-
Report Abuse
Happywalker is not online. Happywalker
Joined: 05 Mar 2010
Total Posts: 3672
15 Mar 2015 09:31 AM
He said it worked
Report Abuse
Sckaar is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 09:32 AM
he lied
Report Abuse
Sckaar is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 09:33 AM
and your one does nothing pp
Report Abuse
Graidlyz is not online. 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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
15 Mar 2015 09:39 AM
I believe you can only use Load character in a script not a Local script.
Report Abuse
Graidlyz is not online. Graidlyz
Joined: 25 Dec 2011
Total Posts: 13357
15 Mar 2015 09:40 AM
You can use LoadCharacter() in LocalScript
Report Abuse
Sckaar is not online. 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
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
15 Mar 2015 09:44 AM
Oh when I did a while ago I got a weird output
Report Abuse
Graidlyz is not online. Graidlyz
Joined: 25 Dec 2011
Total Posts: 13357
15 Mar 2015 09:44 AM
Works fine for me
Report Abuse
Sckaar is not online. 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 is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 09:56 AM
b
Report Abuse
Sckaar is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 10:10 AM
b
Report Abuse
TimeTicks is not online. 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 is not online. 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 is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 10:19 AM
Still isn't working :L
Report Abuse
AnimeWiki is not online. 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 is not online. Sckaar
Joined: 26 Nov 2008
Total Posts: 2185
15 Mar 2015 11:39 AM
b
Report Abuse
Arrow242 is not online. 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 is not online. 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 is not online. 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
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
15 Mar 2015 12:14 PM
OP comfirmed idiotic twit
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