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

[SOLVED] Why is my camera going strange after I die?

Asked by 5 years ago
Edited 5 years ago

Ima tell you how I solved it. I just did changed camera subject

cam = workspace.CurrentCamera
button = script.Parent["Play!"]
Inventory = script.Parent.Parent.Moves.Frame
Health = script.Parent.Parent.Healthbar.Nohealth
Ki = script.Parent.Parent.Healthbar.Noki
senzu = script.Parent.Parent.SenzuBeans
Menu = script.Parent.Parent.Stats.OpenAndClose
plr = game.Players.LocalPlayer
first = false

plr.CharacterAdded:Connect(function()
    repeat  
        cam.CameraType = Enum.CameraType.Scriptable
        wait()
    until cam.CameraType == Enum.CameraType.Scriptable
    cam.CFrame = workspace.CameraView.CameraView.CFrame
end)

repeat  
    cam.CameraType = Enum.CameraType.Scriptable
    wait()
until cam.CameraType == Enum.CameraType.Scriptable
cam.CFrame = workspace.CameraView.CameraView.CFrame

button.Visible = true
button.MouseButton1Down:Connect(function()
    Ki.Visible = true
    Health.Visible = true
    senzu.picture.Visible = true
    senzu.Number.Visible = true
    cam.CameraType = Enum.CameraType.Custom
    Inventory.Visible = true
    Menu.Visible = true
    script.Parent:Destroy()
end)

So everything is fine except for the part when I die the camera works then when i click play after i die the camera is just glitched.

Answer this question