generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: need some help

Previous Thread :: Next Thread 
reillyitsJJ is not online. reillyitsJJ
Joined: 09 Aug 2013
Total Posts: 1374
29 Oct 2017 01:10 PM
attempt to call global 'setColor' (a boolean value)
Report Abuse
reillyitsJJ is not online. reillyitsJJ
Joined: 09 Aug 2013
Total Posts: 1374
29 Oct 2017 01:11 PM
mouse.Button1Down:Connect(function()
setColor(mouse.Target)
end)
Report Abuse
reillyitsJJ is not online. reillyitsJJ
Joined: 09 Aug 2013
Total Posts: 1374
29 Oct 2017 01:17 PM
:/
Report Abuse
D3D9 is not online. 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
reillyitsJJ is not online. reillyitsJJ
Joined: 09 Aug 2013
Total Posts: 1374
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
reillyitsJJ is not online. reillyitsJJ
Joined: 09 Aug 2013
Total Posts: 1374
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 is not online. D3D9
Joined: 20 Aug 2016
Total Posts: 87
29 Oct 2017 04:25 PM
remove the line that says setColor = false


Report Abuse
reillyitsJJ is not online. reillyitsJJ
Joined: 09 Aug 2013
Total Posts: 1374
03 Nov 2017 08:34 PM
that breaks the script, cant paint at all
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image