06-01-2011, 02:12 PM
I can't find a Start UI folder or anything like that.
Oh and are the UI's similar to roblox's?
Oh and are the UI's similar to roblox's?
How do I insert a UI?
|
06-01-2011, 02:12 PM
I can't find a Start UI folder or anything like that.
Oh and are the UI's similar to roblox's?
06-01-2011, 02:53 PM
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.
06-01-2011, 05:49 PM
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.
06-03-2011, 02:33 PM
I don't get it... Where does UI have to be so that a player can see it on-screen?
06-03-2011, 03:08 PM
game.Players.Player.UI
06-03-2011, 03:16 PM
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?
06-03-2011, 03:17 PM
06-03-2011, 03:34 PM
(This post was last modified: 06-03-2011, 03:34 PM by Jacob__mybb_import1.)
(06-03-2011, 03:16 PM)AK-47 Wrote: Thanks! Wouldn't something like this work? [lua] link(game.World.ChildAdded, function( c ) if c:isA("Character") then local player = game.Players[c.Name] --create UI link(c.PropertyChanged, function(name, value) if name == "Health" then --update health bar end end end end) [/lua]
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) |
« Next Oldest | Next Newest »
|