#what? it doesn't make sense

57 messages · Page 1 of 1 (latest)

gloomy yacht
#

Script:
Cubecam = workspace:WaitForChild("MenuCam")
plr = game.Players.LocalPlayer
chara = plr.Character or plr.CharacterAdded:Wait()
camera = workspace.CurrentCamera
Pcambutton = script.Parent.PremiumCameraButton
PcamManager = 1

Pcambutton.MouseButton1Click:Connect(function()
if PcamManager == 1 then
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = Cubecam.CFrame
PcamManager = 2

elseif PcamManager == 2 then
    workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
    PcamManager = 1
end

end)

paper mulch
gloomy yacht
#

?

#

wym

ember rapids
#

its the bost

#

most

#

easy

#

type of error

paper mulch
#

Could you show the entire script? We need to see which is the line nr12

gloomy yacht
#

Ok I just started scripting like 3 weeks ago

ember rapids
#

the code

gloomy yacht
#

Cubecam = workspace:WaitForChild("MenuCam")
plr = game.Players.LocalPlayer
chara = plr.Character or plr.CharacterAdded:Wait()
camera = workspace.CurrentCamera
Pcambutton = script.Parent.PremiumCameraButton
PcamManager = 1

Pcambutton.MouseButton1Click:Connect(function()
if PcamManager == 1 then
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = Cubecam.CFrame
PcamManager = 2

elseif PcamManager == 2 then
    workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
    PcamManager = 1
end

end)

ember rapids
#

that produce

#

error

#

there no FindFirstChild

gloomy yacht
#

ok so how do I fix

paper mulch
ember rapids
paper mulch
#

Ah... I see now... No FindFirstChild in the script he sent lol

#

@gloomy yacht are you sure thats the script with the error? lol

normal moss
#

Click on the red error

#

It should lead u to the script

#

And the line it's on

#

Anyway with these kind of errors it's usually that u referenced a instance wrongly

#

Maybe u did like Camera.voew but it's supposed to be Camera.View or errors like that

gloomy yacht
#

Something must have happpened to the script

#

that error came from an older version

gloomy yacht
#

guys having more problems

#

Cubecam = workspace:FindFirstChild("ViewCam")
plr = game.Players.LocalPlayer
chara = plr.Character or plr.CharacterAdded:Wait()
camera = workspace.CurrentCamera
Pcambutton = script.Parent.PremiumCameraButton
PcamManager = 1

Pcambutton.MouseButton1Click:Connect(function()
if PcamManager == 1 then
repeat wait()
camera.CameraType = Enum.CameraType.Scriptable
until camera.CameraType == Enum.CameraType.Scriptable
camera.CFrame = Cubecam.CFrame
PcamManager = 2

elseif PcamManager == 2 then
    workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
    PcamManager = 1
end

end)

paper mulch
#

Do a print like for camera CFrame and for Cubecam CFrame

gloomy yacht
#

ok

gloomy yacht
paper mulch
#

Just do it

#

I need to see which one is nil

gloomy yacht
#

k

paper mulch
#
print(camera.CFrame, Cubecam.CFrame)
gloomy yacht
#

ty

paper mulch
#

How long would take you to do a print bruh?

gloomy yacht
#

@paper mulch

paper mulch
#

Ahh yes... After 3 days he finally didn't even print it, amazing

normal moss
#

He wanted to see the result of the print

#

It's not a solution

#

printing is like

#

outputting a value in text

#

To the console

#

So you can see it

gloomy yacht
#

Oops! forgot to tell you guys but I already fixed it!

normal moss
#

Oh oke

gloomy yacht
#

u wanna see the game?

#

@normal moss

normal moss
gloomy yacht