|
| 06 Jan 2016 12:59 AM |
i made this:
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
local b1down = false
mouse.Button1Down:connect(function() b1down = true end)
mouse.Button1Up:connect(function() b1down = false end)
rs = game:GetService("RunService")
rs.RenderStepped:connect(function() wait() if b1down == true then local ink = Instance.new("Frame") ink.Size = UDim2.new(0,2,0,2) ink.BackgroundColor3 = Color3.new() ink.Parent = script.Parent.Parent ink.Name = "InkSeg" ink.Position = UDim2.new(0, mouse.X, 0, mouse.Y) end end)
but the segments's offset occasionally moves too far
fried not baked |
|
|
| Report Abuse |
|
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 06 Jan 2016 01:50 AM |
Do you mean there is gaps between the ink dots? That is because the mouse is moving too fast. There is not much you can do except maybe make the dots half the distance away from each other but I'm too tired to work out how to do that right now.
-____________________________- |
|
|
| Report Abuse |
|
|
|
| 06 Jan 2016 01:59 AM |
| You could also just fill the gap between the two last dots each time the RenderStepped fires. |
|
|
| Report Abuse |
|
|
AkaLua
|
  |
| Joined: 27 Jul 2012 |
| Total Posts: 526 |
|
|
| 06 Jan 2016 02:05 AM |
local player = game.Players.LocalPlayer local mouse = player:GetMouse()
local b1down = false
mouse.Button1Down:connect(function() b1down = true end)
mouse.Button1Up:connect(function() b1down = false end)
local lastX local lastY
rs.RenderStepped:connect(function() wait() if b1down == true then for x = 1,mouse.X-lastX do for y = 1,mouse.X-lastY do local ink = Instance.new("Frame") ink.Size = UDim2.new(0,2,0,2) ink.BackgroundColor3 = Color3.new() ink.Parent = script.Parent.Parent ink.Name = "InkSeg" ink.Position = UDim2.new(0, x, 0, y) end lastX = mouse.X lastY = mouse.Y end end end)
I think thatd do it
-____________________________- |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 06 Jan 2016 02:13 AM |
Remove the "wait()" from it, if you want a ~0.03 delay just use a while loop.
|
|
|
| Report Abuse |
|
|
|
| 06 Jan 2016 02:29 AM |
| Create frames that are X by Y. Color the frames that the mouse corresponds to. Much simpler. See my Image Library Example place for more details. |
|
|
| Report Abuse |
|
|