But that still means I can push it again.
Actually scrap that.
How can it so I don't NEED any buttons?
Like have this script changed to happen anyway?
==================================
humanoid = nil
function onTouched(part)
if part.Parent ~= nil then
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
if isenabled~=0 then
if h==humanoid then
return
end
while true do
local toast=script.Parent.toast:clone()
isenabled=0
toast.Parent=game.Workspace
toast.Transparency=0
toast.Locked=false
toast.Anchored=false
toast.CanCollide=true
toast.RotVelocity=Vector3.new(0,0,0)
local toastrot=CFrame.new(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
toast.CFrame = script.Parent.toaster.CFrame * CFrame.new(Vector3.new(0,0,0)) * toastrot
wait(1)
isenabled=1
end
end
end
end
end
game.Workspace.ButtonOn.Touched:connect(onTouched)
================================== |