How to make text on a brick: Difference between revisions
>Pspdude40 |
>Pspdude40 m See also section |
||
Line 69: | Line 69: | ||
</pre> | </pre> | ||
== See also == | |||
[[RBX.Lua.Humanoid]] | |||
[[category:Tutorials]] | [[category:Tutorials]] |
Revision as of 16:34, 28 June 2008
Introduction
Yep. Your bricks are speechless. You can't see a thing it says. It's just a regular normal brick. That's why I have made this guide to show you how to make text on a brick! You will also learn about the humanoid feature.
Note
You need to be a medium level builder to do this. Not a scripter, a builder. Otherwise, this guide will make no sense to you at all. Rack up at least 10 people that has your place, and then you're ready for this. If you read on but have not achieved this goal, good luck understanding the word humanoid!
Starting it up
Open Roblox Studio. Then click on the blank paper button in your toolbar. That will open up a new place. Make sure you have those stuff. Editing a place in Roblox Studio is a lot more easier than editing a place in "Play Solo". You can move your camera freely in Roblox Studio while you need to get past obstacles in "Play Solo".
Steps
We've got the preparing done, now it's time to do the real thing. Go to insert in your toolbar and select "Model". If you need to type it, type in Model. Please note that spelling and captilazion needs to be correct.
Click the insert button and click on any color of brick. Now make all surfaces smooth. The last sentence is optional because all smooth or not, it will sitll work.
Now make the brick a 5X1X5, or any other reasonable length, width, or height. If you want to make the brick a step-on, I'd sugguest the size to be 3 or less.
In Explorer, drag the brick and put it in Model. Once you've done that, name the brick "Head". Spelling and captilzation needs to be correct when spelling Head.
Now go to Insert in the toolbar and select Object. Select Humanoid or type in "Humanoid". Spelling and captilazion needs to be correct for that too. Now using Explorer, drag the humanoid into Model. And there you have it! A brick that has text!
You did it!
You have just made a brick that has text on it. Now if you're a good scripter, you may just want to make it a buy button or a cash adder or anything! If a buy button, you may just start Robloxia's next sucessful tycoon! How exciting!
Tips
Change "Model" to "First text" to make it say First text. Also you can do any text you want with that (But make sure it's good and nice).
Look in Humanoid. Find Health and Max Health. If you want one without a green bar, change both of them to 0. This is least recommended for people making npc's, but most recommended for those making buttons. That way, it will look a lot neater. If the humanoid's Health and MaxHealth is greater than 0, someone can use a weapon and "kill" it. If you are making an npc(non player charachter) and someone kills it, all the modle's bricks' snaps get broken. That is why you "fall apart" when you die. But if the parts of the body are Anchored, they will not fall apart.
Script to change words
If you want the brick to say (for example) "Hi!" *waits* "What's your name?" *waits* "Me too!" *waits* Then instert this script:
while true do script.Parent.Parent.Name = "<Insert text 1 here." -- Change my text to your text. wait(1) -- Change the time inbetween changing from the current text to the next text. script.Parent.Parent.Name = "<Insert text 1 here." -- Change my text to your text. wait(1) -- Change the time in between changing from the current text to the next text. --If you want it to have more text looping, copy the script.Parent.Parent.Name = "<...>" and the wait() lines. --Then change to your prefernce. end