Oh ye, because it is inside the get property signal changed it wont do anything because it didnt change, over here
script.Parent.Play.MouseButton1Down:Connect(function()
IsCurrentlyOnPart = true
wait()
game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
game.Lighting.Blur:Destroy()
end)
change it to
script.Parent.Play.MouseButton1Down:Connect(function()
IsCurrentlyOnPart = true
workspace.CurrentCamera.CFrame = CFrame.new(game.Players.LocalPlayer.Character.CFrame)
wait()
game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
game.Lighting.Blur:Destroy()
end)
Also I made a mistake on the CFrame area, change this part too
local IsCurrentlyOnPart = false
workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
if IsCurrentlyOnPart == false then
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame = workspace.CameraPart.CFrame
else
workspace.CurrentCamera.CameraType = Enum.CameraType.Attach
workspace.CurrentCamera.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
end
end)
This should work
Ulxqra
(Ulxqra)
August 30, 2020, 9:34am
#43
Ulxqra
(Ulxqra)
August 30, 2020, 9:35am
#44
Models do not have CFrame is what its saying.
did you change the property signal changed too? I had to get the CFrame of the humanoid root part instead of indexing the humanoid
Ulxqra
(Ulxqra)
August 30, 2020, 9:39am
#46
Character is a model, models do not have CFrame. I have to go now so do not expect a reply for a while.
Ulxqra
(Ulxqra)
August 30, 2020, 9:34pm
#47
So, the script did not work. Why not?
sorry it was 3 am, here is the script
script.Parent.Play.MouseButton1Down:Connect(function()
IsCurrentlyOnPart = true
workspace.CurrentCamera.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame)
wait()
game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
game.Lighting.Blur:Destroy()
end)
Ulxqra
(Ulxqra)
August 30, 2020, 10:16pm
#50
@greatneil80 should I change it to Vector3
CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
my bad bro.
Ulxqra
(Ulxqra)
August 31, 2020, 5:20am
#52
Ulxqra
(Ulxqra)
August 31, 2020, 5:56am
#53
@greatneil80 its saying it got instance and when I say CFrame is says got CFrame and when I put Vector3 it says something else.
maybe this might work?
workspace.CurrentCamera.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
1 Like
Ulxqra
(Ulxqra)
August 31, 2020, 7:53am
#55
Could I see what is on line 36, is it that same line or a different line, it should have worked, maybe WaitForChild can solve this
Ulxqra
(Ulxqra)
August 31, 2020, 7:59am
#57
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
Ulxqra
(Ulxqra)
August 31, 2020, 7:59am
#58
Add .CFrame to this line, would solve it?
Ulxqra
(Ulxqra)
August 31, 2020, 8:02am
#59
I added CFrame to line 36 and now its erroring 35. So I added CFrame to line 35 and now its erroring because I have CFrame. So I deleted CFrame and now its erroring I DON’T have CFrame.
Ulxqra
(Ulxqra)
August 31, 2020, 9:59am
#60
I deleted the script and made something else. Thanks for helping though.