Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Instance = {}
- for i, v in pairs(fs.list("/PEngine/api/") do
- if tostring(v) == "thread" then
- shell.run("/PEngine/api/thread")
- else
- h = fs.open(v, "r")
- q = h.readAll()
- loadstring(q)()
- end
- end
- function spawnf(func)
- os.startThread(func)
- end
- function Instance.new(t)
- if t == "Part" then
- local NewInst = {}
- NewInst.Name = t
- NewInst.ClassName = t
- spawnf(function()
- while true do
- local st = false
- sleep(1)
- backup = NewInst
- while backup == NewInst do
- sleep(1)
- print("still teh same")
- end
- print("changed!")
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement