Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local owner = game.Players:WaitForChild("Memo1332")
- local siz = 8
- Instance.new("Folder",workspace).Name = "Paintinggg"
- local function bop(g)
- local folder = workspace:FindFirstChild("Paintinggg")
- if folder == nil then folder = Instance.new("Folder",workspace) folder.Name = "Paintinggg" end
- local cf = owner.Character.Head.CFrame
- local x = #g[1]
- local y = #g
- local sizex = siz
- local sizey = sizex*(y/x)
- local pa = Instance.new("Part",folder)
- pa.Locked = true
- local delac = {}
- pa.Anchored = true
- pa.Size = Vector3.new(sizex,sizey,0.5)
- pa.CFrame = cf * CFrame.new(0,sizey/2,0)
- pa.Material = Enum.Material.SmoothPlastic
- local sc = Instance.new("SurfaceGui",pa)
- sc.LightInfluence = 0
- sc.SizingMode = Enum.SurfaceGuiSizingMode.FixedSize
- sc.CanvasSize = Vector2.new(x,y)
- local clon = Instance.new("Frame")
- clon.Size = UDim2.new(0,1,0,1)
- clon.BorderSizePixel = 0
- print(x,y)
- for i,v in pairs(g) do
- local fold = Instance.new("Folder")
- local fr = clon:Clone()
- fr.Parent = fold
- fr.Size = UDim2.new(0,x,0,1)
- fr.Position = UDim2.new(0,0,0,i-1)
- table.insert(delac,fold)
- for ii=1,#v do
- local vv = v[(#v-ii)+1]
- vv = v[ii]
- --[[local part = Instance.new("FlagStand",folder)
- part.TouchInterest:Destroy()
- part.Size = Vector3.new(size,size,size)
- part.Material = Enum.Material.SmoothPlastic
- part.Color = Color3.fromRGB(vv[1],vv[2],vv[3])
- 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)
- part.Anchored = true
- ]]
- local clo = clon:Clone()
- clo.Parent = fr
- clo.Position = UDim2.new(0,ii-1,0,0)
- clo.BackgroundColor3 = Color3.fromRGB(vv[1],vv[2],vv[3])
- end
- wait()
- end
- for i,v in pairs(delac) do
- v.Parent = sc
- if i%2 == 1 then
- wait(1/y)
- end
- end
- end
- owner.Chatted:Connect(function(msg)
- if string.lower(string.sub(msg,1,7)) == ";image " then
- local http = game:GetService("HttpService")
- local js = http:GetAsync(string.sub(msg,8))
- bop(http:JSONDecode(js))
- elseif string.lower(string.sub(msg,1,9)) == ";setsize " then
- siz = tonumber(string.sub(msg,10))
- elseif string.lower(msg) == ";clr" then
- if workspace:FindFirstChild("Paintinggg") ~= nil then
- workspace:FindFirstChild("Paintinggg"):ClearAllChildren()
- end
- end
- end)
Add Comment
Please, Sign In to add comment