HELP! how to open Combine Door?

Hi all, I want to make the combine door open on the button E, I found a theme where there is a lua script took it, but when I put it and tried to open the door I was given an error


Here is the code***

function KeyPressedUse (ply, key)

local AllowedModels = {“models/dpfilms/metropolice/playermodels/pm_hdpolice.mdl”,“another”,“another”}

if !table.HasValue(AllowedModels,ply:GetModel()) then return end
if key == IN_USE then
local t = {}
t.start = ply:GetPos()
t.endpos = ply:GetShootPos() + ply:GetAimVector() * 100
t.filter = ply
local trace = util.TraceLine(t)
if trace.Entity and trace.Entity:IsValid() and (trace.Entity:GetClass() == “func_door” or trace.Entity:GetClass() == “prop_door_rotating” or trace.Entity:GetClass() == “prop_dynamic”) then
trace.Entity:Fire(“Open”)
end
end
end
hook.Add( “KeyPress”, “KeyPressedUse”, KeyPressedUse )

Here’s an error

[ERROR] lua/autorun/client/metingrpcombinedoor.lua:13: attempt to call method ‘Fire’ (a nil value)

  1. fn - lua/autorun/client/metingrpcombinedoor.lua:13
  2. old_hook_call - addons/ulib/lua/ulib/shared/hook.lua:109
    3. unknown - addons/morph_mod_950845673/lua/includes/modules/momo/compat.lua:23

The door does not open, but it writes an error

You’re running server code on the client
http://wiki.garrysmod.com/page/Entity/Fire
I recommend to look more into how client and server code works.
https://www.youtube.com/watch?v=c1mQ3mpdiJU

Thanks