Posts: 1,553
Threads: 201
Joined: May 2011
Reputation:
0
I can't find a Start UI folder or anything like that.
Oh and are the UI's similar to roblox's?
Posts: 5,683
Threads: 413
Joined: Aug 2012
Reputation:
0
I'd assume you start by adding a Character, building the UI in the PlayerUI of it, then when you're done, put it inside a Script in the workspace that copies it into their PlayerUI.
Posts: 2,843
Threads: 382
Joined: Jul 2012
Reputation:
0
You can store the UI anywhere, then use a script to copy it into new players, or just generate it with a script every time someone joins.
Posts: 1,553
Threads: 201
Joined: May 2011
Reputation:
0
Can someone post a script for this? xD
I'm not to good at lua lol
Posts: 1,926
Threads: 133
Joined: Apr 2011
Reputation:
0
I don't get it... Where does UI have to be so that a player can see it on-screen?
Posts: 1,926
Threads: 133
Joined: Apr 2011
Reputation:
0
Thanks!
Also, I already made a health bar UI, the only problem is after dying, the script won't run again, so the bar just stays red. Help?
Posts: 1,926
Threads: 133
Joined: Apr 2011
Reputation:
0
06-03-2011, 03:48 PM
(This post was last modified: 06-03-2011, 03:49 PM by 2Drobloxrocker64.)
[lua]
function onEnter( c )
if c:isA("Character") then
local player = game.Players[c.Name]
local HealthScript = script.Parent.HealthScript:clone()
HealthScript.Parent = player.UI
end
end
link(game.World.ChildAdded, onEnter)
[/lua]
But it won't work. (I'll work on the updater later)