---
# System prepended metadata

title: 'Bare Bears S4C1: Little thing about Roblox'
tags: [CS, Programming, CWL, Python]

---

{%hackmd BJ-DJz7nt %}
# Bare Bears S4C1: Little thing about Roblox
###### tags: `Programming` `CS` `Python` `CWL`

## Wisdom of the Day
![](https://hackmd.io/_uploads/H1suHtZMc.jpg =600x400)
> We must raise our heart to benefit all sentient beings, and put it
into actions, make it flow like a water fall, never stop even for a moment
life after life, this will be the most valuable life.
>
> (1) How can we raise this kind of heart?
> (2) What's the meaning behind a valuable life?

## Homework Review

### Writing an OMAK of your sibilings

- Your good deeds toward him/her
- Her good deeds toward you/others
- A lovely memory with a picture

### New way of storytelling
- Story Audio file upload to youtube
- Play it using livecoding

{%youtube MtX7BP-GueQ %}

```
create(2,2,"MtX7BP-GueQ") // youtube id is pasted when you click a thumbnail
mute(3, 1)
volume(1,10)

loopAt(3,100,10)
cue(2,"_SVxbdQR6Eg")
cue(2,"A9BG-vSSlZk")
cue(3, "OoIa253WD7s")
mute(2,1)
```


## In Class 

### Roblox : Destroy some trees 🤣🤣🤣

![](https://hackmd.io/_uploads/SyMxUaZzq.png)

```lua=
local model = script.Parent

for num, children in pairs(model:GetChildren()) do
	wait(10)
	children:Destroy()
end
```


## Homework

### Destroy an element

{%youtube 2SJ-RXNz35g %}

Create a model in a Roblox environment, and learn to write a script to destroy it 🤣🤣🤣. There are 2 things to be done.

- Count how many elements are there in the model
- Destroy the element with a for loop

==Steps==
- [ ] Choosing a model in the toolbox
- [ ] Creating a script in the model
- [ ] Setting a local variable
- [ ] Writing a for loop to count number of elements
- [ ] Writing a for loop to destroy every parts of the elements

### OMAK

Playing your story with [livecodingyoutube](https://livecodingyoutube.github.io) along with some videos on Youtube. 😎

- [livecodingyoutube functions list](https://livecodingyoutube.github.io/doc/index.html)




