Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- local player = owner
- local memory = nil
- local color = Color3.fromRGB(145,145,145)
- while player:FindFirstChild("lud") ~= nil do
- player:FindFirstChild("lud"):Destroy()
- end
- local lud = player:FindFirstChild("lud")
- if lud == nil then
- lud = Instance.new("RemoteEvent",player)
- end
- lud.Name = "lud"
- function cloneArray(array)
- local ar = {}
- for i=1,#array do
- table.insert(ar,array[i])
- end
- return ar
- end
- player.Chatted:Connect(function(msg)
- if string.sub(msg:lower(),1,7) == ";color " then
- local tab = string.split(string.sub(msg:lower(),8)," ")
- local r,g,b = tab[1],tab[2],tab[3]
- if r ~= nil and g ~= nil and b ~= nil then
- color = Color3.fromRGB(r,g,b)
- end
- end
- end)
- lud.OnServerEvent:Connect(function(plr,tab)
- memory = cloneArray(tab)
- local g = workspace:FindFirstChild("FolderOfDraw"..tostring(player.Name))
- if g == nil then
- g = Instance.new("Folder",workspace)
- g.Name = "FolderOfDraw"..tostring(player.Name)
- end
- g:ClearAllChildren()
- for i,v in pairs(tab) do
- local cframe = v[1]
- local size = v[2]
- local shape = v[3]
- local tem = Instance.new("FlagStand")
- --tem.Shape = shape
- tem.Anchored = true
- tem.Size = size
- tem.Material = Enum.Material.Neon
- tem.Color = color
- tem.CanCollide = false
- tem.CFrame = cframe
- tem.Parent = workspace:FindFirstChild("FolderOfDraw"..tostring(player.Name))
- tem.TouchInterest:Destroy()
- end
- end)
- while wait(2) do
- local g = workspace:FindFirstChild("FolderOfDraw"..tostring(player.Name))
- if g == nil and memory ~= nil then
- Instance.new("Folder",workspace).Name = "FolderOfDraw"..tostring(player.Name)
- for i,v in pairs(memory) do
- local cframe = v[1]
- local size = v[2]
- local shape = v[3]
- local tem = Instance.new("FlagStand")
- --tem.Shape = shape
- tem.Anchored = true
- tem.Size = size
- tem.Material = Enum.Material.Neon
- tem.Color = color
- tem.CanCollide = false
- tem.CFrame = cframe
- tem.Parent = workspace:FindFirstChild("FolderOfDraw"..tostring(player.Name))
- tem.TouchInterest:Destroy()
- end
- end
- end
Add Comment
Please, Sign In to add comment