Well, my local script is:

local camera = workspace:WaitForChild("Camera")

camera.CameraType = Enum.CameraType.Scriptable
	
for i, gui in pairs(script.Parent.Parent:GetChildren()) do
	if gui.Name ~= "ShopGui" then
		gui.Enabled = false
	end
end
	
camera:Interpolate(itemRoller["Box1"].CamPart.CFrame, itemRoller["Box1"].CamPart.CFrame, 1)
shopGui.Enabled = true
FireShop()

It interpolates right, then, when it reaches the destination, the screen goes completely black and the character starts taking damage. The part is transparency 1 and cancollide false. How do I fix this?

4 comments

0

I get no errors

0

The player might be taking damage from falling through the world? I don't know about the screen turning black though

0

What exactly does FireShop() do? The character dying might not have to do with the camera interpolation. Also, Camera:Interpolate is deprecated.

0

FireShop is just GUI stuff. What should I use instead of interpolate?