of     1   

GregTame
#149707959Thursday, November 13, 2014 11:15 PM GMT

An idea for a scripting addon. Simply, it can only be applied to bool values, and can save lines of script. for example: script.Parent.BoolValue.Value:toggle() or. Model.Part.CanCollide:Toggle()
championbuilder
#149711409Friday, November 14, 2014 12:08 AM GMT

or use :Changed() or part.value = not part.value
championbuilder
#149711463Friday, November 14, 2014 12:09 AM GMT

XenonLi
#149711488Friday, November 14, 2014 12:09 AM GMT

why don't you, like, bother to use variables? variables are real
cpmoderator12345
#149716579Friday, November 14, 2014 1:29 AM GMT

why dont u use = true ? its faster to type
GregTame
#149718042Friday, November 14, 2014 1:52 AM GMT

@champ this is not to trigger a thing, it just toggles a bool value.
championbuilder
#149718919Friday, November 14, 2014 2:06 AM GMT

"part.Value = not part.Value" This is one line, and does exactly what you're trying to do.
XenonLi
#149725829Friday, November 14, 2014 4:01 AM GMT

function toggle(index, valuename) index[valuename] = not index[valuename] end example usage: toggle(Instance.new("Part", workspace), "CanCollide")

    of     1