of     1   

daddysfave
#227516967Monday, November 13, 2017 12:31 PM GMT

trying to make a block change texture when clicked on. i inserted a clickdetector and this script but doesn't seem to work: function onClick() script.Parent.Decal.Texture = "rbxassetid://582144333" end script.Parent.ClickDetector.MouseClick:connect(onClick) any ideas? thanks
NootThePenguin_0
#227517074Monday, November 13, 2017 12:40 PM GMT

function onClick() local hhs = Instance.new("Decal",script.Parent) hhs.Texture = "949949394294393494394329493" end script.Parent.ClickDetector.MouseClick:connect(onClick)
daddysfave
#227517158Monday, November 13, 2017 12:45 PM GMT

dont know, still doesn't seem to work. am i supposed to do anything to the block other than inserting clickdetector + the script?
daddysfave
#227517803Monday, November 13, 2017 1:25 PM GMT

bump
Soybeen
#227517925Monday, November 13, 2017 1:32 PM GMT

local id = 12341234 script.Parent.ClickDetector.MouseClick:connect(function(player) script.Parent.Decal.Texture = "rbxassetid://"..id end) What you have initially should work anyway. It's probably not this code that's the problem, look elsewhere.
daddysfave
#227518200Monday, November 13, 2017 1:47 PM GMT

hm, okay thanks

    of     1