local Teams = game:GetService("Teams") local LocalPlayer = game.Players.LocalPlayer local Character = LocalPlayer.Character local CharPart = Character["Right Arm"] local Doors = workspace.Doors local Keycard = Character:FindFirstChild("Key card") local function Touch(HitBox) firetouchinterest(CharPart, HitBox, 0) firetouchinterest(CharPart, HitBox, 1) end game:GetService("RunService").Heartbeat:Connect(function() Character = LocalPlayer.Character CharPart = Character["Right Arm"] if Character.Humanoid.Health > 0 then for i, Object in pairs(Doors:GetDescendants()) do if Object.Name == "hitbox" then task.spawn(Touch, Object) end end end end)