|
| 29 Oct 2017 01:10 PM |
| attempt to call global 'setColor' (a boolean value) |
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 01:11 PM |
mouse.Button1Down:Connect(function() setColor(mouse.Target) end) |
|
|
| Report Abuse |
|
|
| |
|
D3D9
|
  |
| Joined: 20 Aug 2016 |
| Total Posts: 87 |
|
|
| 29 Oct 2017 01:19 PM |
We need your full code or we can't help you.
|
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 01:28 PM |
function setColor(part) if canSelectObject(part) then part.BrickColor = current.Value Tool.Handle.PaintSound:Play() Tool.Handle.PaintSound.PlaybackSpeed = .9 + (math.random() * .1) end end
game:GetService('RunService').RenderStepped:Connect(function() if gui.Enabled then local part = mouse.Target if canSelectObject(part) then mouse.Icon ="rbxasset://textures\\FillCursor.png" setSelectionBox(part) else mouse.Icon = '' unsetSelectionBox() end end end)
mouse.Button1Down:Connect(function() setColor(mouse.Target) end)
gui.Parent = pgui
Tool.Equipped:Connect(function() gui.Drag.Position = UDim2.new(0,0,0.5,-230) gui.Enabled = true end)
Tool.Unequipped:Connect(function() gui.Enabled = false if Tool.Unequipped then setColor = false end end)
|
|
|
| Report Abuse |
|
|
|
| 29 Oct 2017 01:31 PM |
71: attempt to call global 'setColor' (a boolean value)
^^ thats the error, i just dont know how to fix it |
|
|
| Report Abuse |
|
|
D3D9
|
  |
| Joined: 20 Aug 2016 |
| Total Posts: 87 |
|
|
| 29 Oct 2017 04:25 PM |
remove the line that says setColor = false
|
|
|
| Report Abuse |
|
|
|
| 03 Nov 2017 08:34 PM |
| that breaks the script, cant paint at all |
|
|
| Report Abuse |
|
|