local button = script.Parent.ToggleButton
local toggle = false
button.MouseButton1Click:Connect(function()
if not toggle then -- if it is currently killing
door:SetAttribute("Kill", false) -- or whatever you use for tracking
toggle = true
button.Text = "Off"
elseif toggle then -- if it is not currently killing
door:SetAttribute("Kill", true)
toggle = false
button.Text = "On"
end
end)
#Toggle
18 messages · Page 1 of 1 (latest)
You mean tag by attributes or collection service thing?
uhhh this
So u use collection srvice
Can you show hiearchie
I can take a loot at tomorrow morning May i have homework
hiearchie?
Explorer view of door