of     1   

coolredpanda10
#64223207Monday, March 12, 2012 8:14 PM GMT

if Raid.value = 1 then raid() elseif Raid.value = 0 then not_raid() function raid() script.Parent.CanColide = false end function not_raid() script.Parent.Cancolide = true end Trying to make it so if the enemy's penetrait the base theres another way inside it... but it doesnt work..
NewFissy
#64223931Monday, March 12, 2012 8:25 PM GMT

Raid = workspace.Raid -- Change this function raid() script.Parent.CanColide = false end function not_raid() script.Parent.Cancolide = true end if Raid.Value == 1 then raid() elseif Raid.Value == 0 then not_raid() end
miz656
#64224959Monday, March 12, 2012 8:41 PM GMT

You spelt "CanCollide" wrong fissy -_-
NewFissy
#64225182Monday, March 12, 2012 8:44 PM GMT

Sorry. I copied and pasted the original script. Didn't notice :P
miz656
#64225210Monday, March 12, 2012 8:45 PM GMT

Everyone makes mistakes.
coolredpanda10
#64225412Monday, March 12, 2012 8:47 PM GMT

well this SORTA works... the if Raid.Value = 0 then part works, but the = 1 part doesn't unless you disable the script and un-disable it... Raid = game.Workspace.Raid Parent = script.Parent function raid() Parent.CanCollide = false end function not_raid() Parent.CanCollide = true end if Raid.Value == 1 then raid() elseif Raid.Value == 0 then not_raid() end
miz656
#64229836Monday, March 12, 2012 9:46 PM GMT

if Raid.Value == 1 then script.Parent.CanCollide = true elseif Raid.Value ~=1 then script.Parent.CanCollide = false end

    of     1