Character Respawning
5 posters
Survival Project :: The game :: Concepts
Page 1 of 1
Character Respawning
I posted a thread before on something similar to this
I made a set of scripts in 15-20 minutes to demonstrate my idea
http://www.roblox.com/Stranded-Respawning-Test-Server-place?id=120273551
Take a look tell me what you think
(I know at the moment it seems obvious that I used loadcharacter and died event, but once this is implemented on jobro's character API it should look a lot better)
I made a set of scripts in 15-20 minutes to demonstrate my idea
http://www.roblox.com/Stranded-Respawning-Test-Server-place?id=120273551
Take a look tell me what you think
(I know at the moment it seems obvious that I used loadcharacter and died event, but once this is implemented on jobro's character API it should look a lot better)
Fattycat17- Posts : 116
Join date : 2013-06-02
Re: Character Respawning
Would you like to go back to the menu?
No.
*Respawns*
Oh yes, I like that.
No.
*Respawns*
Oh yes, I like that.
jobro13- Posts : 250
Join date : 2013-06-02
Re: Character Respawning
(For everyone that is confused on what it does reset after pressing play )
Fattycat17- Posts : 116
Join date : 2013-06-02
Re: Character Respawning
It's fairly simple. I tried to keep it organised using functions.
Game.Players.PlayerAdded:connect(function(np)
np.CharacterAutoLoads = false
GUI = Instance.new("ScreenGui", np.PlayerGui)
TEX = Instance.new("TextLabel", GUI)
TEX.Position = UDim2(0, 20, 0, 10)
TEX.Size = UDim2(1, 0, 30, 0)
TEX.BorderPixelSize = 0
TEX.Text = Stranded
etc.
This would give you an understanding. It doesn't really make a very configured textbox and it's only the title. It sure is alot of work. I would use "function joingame()
Game.Workspace.PlayerGui.ScreenGui:remove"
and it would teleport to the spawn point OR you could make it spawn in the spawnpoint.
When the player clicks the Play textlabel it would trigger joingame ex:"np.PlayerGui.ScreenGui.TextBox.Click1Button(Or something like that):connect(joingame)" and i think that would be enough of showing the script. Not that i hacked. I just improvised.
Game.Players.PlayerAdded:connect(function(np)
np.CharacterAutoLoads = false
GUI = Instance.new("ScreenGui", np.PlayerGui)
TEX = Instance.new("TextLabel", GUI)
TEX.Position = UDim2(0, 20, 0, 10)
TEX.Size = UDim2(1, 0, 30, 0)
TEX.BorderPixelSize = 0
TEX.Text = Stranded
etc.
This would give you an understanding. It doesn't really make a very configured textbox and it's only the title. It sure is alot of work. I would use "function joingame()
Game.Workspace.PlayerGui.ScreenGui:remove"
and it would teleport to the spawn point OR you could make it spawn in the spawnpoint.
When the player clicks the Play textlabel it would trigger joingame ex:"np.PlayerGui.ScreenGui.TextBox.Click1Button(Or something like that):connect(joingame)" and i think that would be enough of showing the script. Not that i hacked. I just improvised.
Last edited by coolieman2 on Wed Jun 26, 2013 4:49 am; edited 1 time in total (Reason for editing : Updated script.)
coolieman2- Posts : 78
Join date : 2013-06-21
Location : Europe meaning i'm in a good timezone :)
Re: Character Respawning
Umm no it is actually using PlayerAdded and LoadCharacter it's all hooked from a Script under workspace.
Fattycat17- Posts : 116
Join date : 2013-06-02
Re: Character Respawning
I made a new menu take a look at it
Fattycat17- Posts : 116
Join date : 2013-06-02
Re: Character Respawning
I like the new menu.
coolieman2- Posts : 78
Join date : 2013-06-21
Location : Europe meaning i'm in a good timezone :)
Re: Character Respawning
http://www.roblox.com/Stranded-Respawning-Test-Server-place?id=120273551
Take a look at starting GUI
Tell me what you think
No need for it? Needs a better color scheme? Be constructive ^--^
Take a look at starting GUI
Tell me what you think
No need for it? Needs a better color scheme? Be constructive ^--^
Fattycat17- Posts : 116
Join date : 2013-06-02
Re: Character Respawning
Thanks, it was fairly fast with my Gui+ library ;-)
Fattycat17- Posts : 116
Join date : 2013-06-02
Re: Character Respawning
I like it too, fancy and it functions too
Zokorio- Posts : 46
Join date : 2013-06-01
Location : The box at the end of the street. :c
Survival Project :: The game :: Concepts
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|