Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --uncomment the following if script doesnt work
- --local/
- ply = game.Players.LocalPlayer
- char = ply.Character
- torso = char.Torso
- waittime = wait()
- colorlist = {"Bright red","Nougat","New Yeller","Bright blue","Earth green","Cyan","Pink","White","Black"}
- CurrentColor = "New Yeller"
- hop = Instance.new("HopperBin",ply.Backpack)
- hop.Name = "Draw"
- drawing = false
- function lol(mouse)
- coroutine.resume(coroutine.create(function()
- while drawing do
- if mouse.Target ~= nil then
- old = mouse.hit.p
- wait(waittime)
- new = mouse.hit.p
- mag = (old-new).magnitude
- dist = (old+new)/2
- c = Instance.new("Part",char)
- c.formFactor = "Custom"
- c.Size = Vector3.new(.3,mag+.2,.3)
- Instance.new("CylinderMesh",c)
- c.Anchored = true
- c.CFrame = CFrame.new(dist,old)*CFrame.Angles(math.pi/2,0,0)
- c.BrickColor = BrickColor.new(CurrentColor)
- end
- end
- end))
- end
- local lib = LoadLibrary("RbxGui")
- local gui = Instance.new("ScreenGui")
- gui.Name = "Drawinggui"
- wid = 0.3
- mainframe = Instance.new("Frame",gui)
- mainframe.Size = UDim2.new(wid,0,.2,0)
- mainframe.Position = UDim2.new(0,0,.5,0)
- colorframe = Instance.new("Frame",mainframe)
- colorframe.Size = UDim2.new(1,0,.45,0)
- o = 1/#colorlist
- colorind = Instance.new("TextLabel",mainframe)
- colorind.Size = UDim2.new(1,0,.05,0)
- colorind.Text = ""
- colorind.Position = UDim2.new(0,0,0.45,0)
- colorind.BackgroundColor = BrickColor.new(CurrentColor)
- for i,v in pairs(colorlist) do
- but = Instance.new("TextButton",colorframe)
- but.Size = UDim2.new(o,0,1,0)
- but.BackgroundColor = BrickColor.new("Nougat")
- but.Position = UDim2.new(-o,0,0,0) + UDim2.new(o*i,0,0,0)
- but.Text = v
- but.BackgroundColor = BrickColor.new(v)
- but.MouseButton1Down:connect(function() CurrentColor = v
- colorind.BackgroundColor = BrickColor.new(CurrentColor)
- end)
- end
- blockiness = {
- {"Smooth","Bright green"},
- {"Blocky","Bright blue"},
- {"Very blocky","Neon orange"},
- {"Super Blocky","Bright red"}
- }
- sizeframe = Instance.new("Frame",mainframe)
- sizeframe.Size = UDim2.new(1,0,.5,0)
- sizeframe.Position = UDim2.new(0,0,.5,0)
- sizeframe.BackgroundColor = BrickColor.new(blockiness[1][2])
- lab = Instance.new("TextLabel",sizeframe)
- lab.Size = UDim2.new(1,0,0.25,0)
- lab.Text = blockiness[1][1]
- lab.BackgroundColor3 = Color3.new(1,1,1)
- local slider,val = lib.CreateSlider(4,wid*1000,UDim2.new(0.5,-wid*1000/2,0.5,0))
- slider.Parent = sizeframe
- val.Changed:connect(function() waittime = tonumber(val.Value)/20 if tonumber(val.Value) == 1 then waittime = wait() end refresh() end)
- function refresh()
- value = tonumber(val.Value)
- lab.Text = blockiness[value][1]
- sizeframe.BackgroundColor = BrickColor.new(blockiness[value][2])
- end
- hop.Selected:connect(function(mouse)
- gui.Parent = ply.PlayerGui
- mouse.Button1Up:connect(function() drawing = false end)
- mouse.Button1Down:connect(function() drawing = true lol(mouse) end)
- end)
- hop.Deselected:connect(function() gui.Parent = nil end)
Add Comment
Please, Sign In to add comment