BobMe

ImageProcess

Oct 22nd, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. --local owner = game.Players:WaitForChild("Memo1332")
  2. local siz = 12
  3. Instance.new("Folder",workspace).Name = "Paintinggg"
  4. local function bop(g)
  5. local folder = workspace:FindFirstChild("Paintinggg")
  6. if folder == nil then folder = Instance.new("Folder",workspace) folder.Name = "Paintinggg" end
  7. local cf = owner.Character.Head.CFrame
  8. local x = #g[1]
  9. local y = #g
  10. local size = siz/x
  11. print(x,y)
  12.  
  13. for i,v in pairs(g) do
  14. for ii=1,#v do
  15. local vv = v[(#v-ii)+1]
  16. vv = v[ii]
  17. local part = Instance.new("FlagStand",folder)
  18. part.TouchInterest:Destroy()
  19. part.Size = Vector3.new(size,size,size)
  20. part.Material = Enum.Material.SmoothPlastic
  21. part.Color = Color3.fromRGB(vv[1],vv[2],vv[3])
  22. part.CFrame = cf * CFrame.new(math.floor((x*size)/2)-((ii-1)*size),(math.floor((y*size)/2)-((i-1)*size)+(owner.Character.Head.Size.Y*1.5)+((y*size)/2)),0)
  23. part.Anchored = true
  24. end
  25. wait()
  26. end
  27. end
  28. owner.Chatted:Connect(function(msg)
  29. if string.lower(string.sub(msg,1,7)) == ";image " then
  30. local http = game:GetService("HttpService")
  31. local js = http:GetAsync(string.sub(msg,8))
  32. bop(http:JSONDecode(js))
  33. elseif string.lower(string.sub(msg,1,6)) == ";size " then
  34. siz = tonumber(string.sub(msg,7))
  35. elseif string.lower(msg) == ";clr" then
  36. if workspace:FindFirstChild("Paintinggg") ~= nil then
  37. workspace:FindFirstChild("Paintinggg"):ClearAllChildren()
  38. end
  39. end
  40. end)
  41.  
Add Comment
Please, Sign In to add comment