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

Camera Interpolation gone wrong, character dies??

Asked by 4 years ago

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?

0
I get no errors NickIsANuke 217 — 4y
0
The player might be taking damage from falling through the world? I don't know about the screen turning black though Z0ggg 20 — 4y
0
What exactly does FireShop() do? The character dying might not have to do with the camera interpolation. Also, Camera:Interpolate is deprecated. y3_th 176 — 4y
0
FireShop is just GUI stuff. What should I use instead of interpolate? NickIsANuke 217 — 4y

Answer this question