Wink [Q] tasker galaxy S4 sprint

hi I'm a total noob to tasker I tried searching this but I had no luck I'm trying to make a profile so that whenever my phone is charging Bluetooth and WiFi would turn on and when I disconnect it from power it wouldn't turn off Bluetooth and WiFi I tried making the profile myself but I must be missing something can't get it working you guys have any input that would be great or if this profile is already made somewhere where I can copy paste just point me in the right direction thank you very much