of     1   

Undertaker4012
#139952637Friday, July 11, 2014 4:14 AM GMT

I'm learning how to script can you help me with this? function OnClicked() game.Workspace.oldmanst.Part.Behavior.CanCollide = false end Whats wrong?
systematicaddict
#139954934Friday, July 11, 2014 4:36 AM GMT

function OnClicked() game.Workspace.oldmanst.Part.CanCollide = false end First off you don't have to refer to 'Behavior', as it's read only in the properties, good eye though. And also I don't know what is supposed to be clicked, unless you mean touched, could you explain when you want the part to be walk-through and where the script is?
luckyjack7
#139961222Friday, July 11, 2014 5:47 AM GMT

function OnClicked() game.Workspace.oldmanst.Part.CanCollide = false end --part = name of part supposed to be clicked part.Button1Down:connect(onClicked) --also make sure you put a click detector in the part
vortexyamum
#139962132Friday, July 11, 2014 6:00 AM GMT

function OnClicked() game.Workspace.oldmanst.Part.CanCollide = false end script.Parent.ClickDetector.MouseClicked:connect(OnClicked)

    of     1