script.Parent.MouseClick:Connect(function(g)
for i,v in pairs( g.Backpack:GetChildren()) do
if v.Name =="Key" then
local t = game:GetService("TweenService")
local goal = {}
goal.Position = Vector3.new(workspace.Gate.Goal.Position.x,workspace.Gate.Goal.Position.y,workspace.Gate.Goal.Position.z)
goal.Orieantation = Vector3.new(workspace.Gate.Goal.Orientation.X,workspace.Gate.Goal.Orientation.Y,workspace.Gate.Goal.Orientation.Z)
t:Create(workspace.Gate.Gate,TweenInfo(2), goal):Play()
script.Parent.MaxActivationDistance = 0
wait(2)
script.Parent.MaxActivationDistance =32
end
end
end)
line 8 error, how table value?

1 comment
oh