Alright, I have a script I made for a Filtering Enabled Game, and it works fine in testing, but once it is in the actual server it won't work.
local DC = script.Parent.DoorControl
local Debounce = false
local DO = false
function DoorOpen()
for i=1, 150 do
script.Parent.CFrame = script.Parent.CFrame + script.Parent.CFrame.upVector * 0.1
wait()
end
wait(1)
Debounce = false
end
function DoorClose()
for i=1, 150 do
script.Parent.CFrame = script.Parent.CFrame + script.Parent.CFrame.upVector * -0.1
wait()
end
wait(1)
Debounce = false
end
function DoorEvent(...)
local table = {...}
if table[1]=="Open" then
if Debounce == false then
if DO == false then
Debounce = true
DO=true
DoorOpen()
end
end
elseif table[1]=="Close" then
if Debounce == false then
if DO == true then
Debounce = true
DO = false
DoorClose()
end
end
end
end
DC.Event:connect(DoorEvent)
If anyone can tell me what I did wrong, I would appreciate it.

2 comments
where is the script and what type of script si it
I would advise you to press F9 to view the console and see the problem. If you see a key called, Fn near your windows key, then hold Fn and then press F9. There should be an error showing while on the online game.