Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I make a paint tool useful on only one base?

Asked by 11 years ago

So I'm trying to edit a paint tool so it only works on the base that the player has selected to use. How Would I do this? Here's the script:

001local Tool = script.Parent
002 
003enabled = true
004local origTexture =     Tool.TextureId
005game:GetService("ContentProvider"):Preload("rbxasset://icons/color_sel.png")
006 
007function onButton1Down(mouse)
008    if not enabled then
009        return
010    end
011 
012    enabled = false
013    mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
014 
015    wait(.5)
View all 266 lines...

Answer this question