Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Line 16: Unable to cast to Dictionary? (fixed)

Asked by 5 years ago
Edited 5 years ago

On line 16 I get the error "Unable to cast to Dictionary". I searched everywhere and found nothing. Please help.

01tween = game:GetService("TweenService")
02info1 = script.Parent.Door1END.Position
03info1end = script.Parent.Door1.Position
04info2 = script.Parent.Door2END.Position
05info2end = script.Parent.Door2.Position
06canopen = true
07 
08game.Players.PlayerAdded:Connect(function(plr)
09    plr.CharacterAdded:Connect(function(char)
10        while char do
11            wait(0.2)
12            if (char.HumanoidRootPart.Position - script.Parent.Rad.Position).Magnitude <= 7 then
13                if canopen then
14                    canopen = false
15                    script.Parent.Rad["Elevator Door Open"]:Play()
View all 33 lines...

1 answer

Log in to vote
0
Answered by 5 years ago

I figured it out myself fixed the error thanks

0
Epic, tables to the rescue. ForeverBrown 356 — 5y
Ad

Answer this question