|
| 25 Dec 2012 10:47 PM |
| If not, please explain why. |
|
|
| Report Abuse |
|
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 25 Dec 2012 11:02 PM |
Ends only go on: functions loops - while,for,etc if statements
function hi() --code end
while true do --code wait() end
for i = 1, 5 do --code wait() end
if condition then --code end |
|
|
| Report Abuse |
|
|
Rukiryo
|
  |
| Joined: 04 Sep 2009 |
| Total Posts: 1490 |
|
|
| 25 Dec 2012 11:14 PM |
Ends are used on blocks.
Example print("Hello") if game.Workspace.MyFriend ~= nil then print("Hooray my friend is here!") end print("Tada")
See, we only want it to say "My friend is here" IF your friend is there. So everything inside that 'if' block happens if the condition is true.
You clearly don't have an idea of what a programming block is, therefore you should not be asking this. It is a BAD idea for you, you'll get confused.
Goto wiki.roblox.com and read the tutorial there. |
|
|
| Report Abuse |
|
|