Unable to cast dictionary

Hi so I have been following this video: How To Make An EGG HATCHING SYSTEM - Roblox Studio Scripting Tutorial - YouTube

I have tried other things on the form but it does not work for me.
the guy had the same thing and fixed but it did not work for me.
Uploading: Screenshot 2022-01-13 165006.png…

sorry the other screen shot did not work
Screenshot 2022-01-13 165006

Try adding another Bracket at the end of Position ! and 1 in front of

petclone.PrimaryPart

ok like this

Yes now add another Bracket infront of the second Petclone !

Replace line 48 with this

local tween = TweenService:Create(camera,tweenInfo, {CFrame = CFrame.new(petClone.PrimaryPart.Position + (petClone.PrimaryPart.CFrame.lookVector * 5) + Vector3.new(0,0.75,0),petClone.PrimaryPart.Position)})
1 Like

ok I will try thank thank for helping me

1 Like

This work?

local root = petClone.PrimaryPart;
local v1 = root Position + (root.CFrame.LookVector * 5) + Vector3.new(0,.75,0);
local tween = TweenService:Create(camera, tweenInfo, {CFrame = CFrame.new(v1, root.Position)});

Thank you guys so much for helping me it works no. :grinning:

1 Like

sorry now. it work now thank you

1 Like