Can you send your updated code?
I fixed the script: Still not working. I made another place and copied everything to there and it works!
Just not on my main game…
that means you have another script thats changing the camera
I have checked all the scripts
There is no other way, either its a script or a backdoor thats altering your scripts… That can be found in plugins too.
Edit: It’s unlikely to be a plugin because you tested the game in another place and it worked fine.
Just a script
I have checked most scripts. None of my scripts even reference ‘camera’
I do not even remember making any script that interferes with camera.
You could try using GetPropertyChangedSignal to override whatever is editing the camera
How would I put that in the script?
workspace.CurrentCamera:GetPropertyChangedSignal("CFrame"):Connect(function()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame = workspace.CameraPart.CFrame
end)
another thing to note is if the CameraPart is tp’d to the player but that is unlikely
Edit: Also add it after your current script
Sweet, I am glad this worked, glad to help you :)!!
I made this new script and it is supposed to then make the camera to normal. How would I make it so the camera returns to the humanoid?
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
script.Parent.Play.Visible = true
local Blur = game.Workspace.Camera.Blur.Size
local FirstNumber = 0
local SecondNumber = 10
local final = "Loading Extra Assets: "..tostring(FirstNumber).."/"..tostring(SecondNumber)
local object = script.Parent
object.Position = UDim2.new(0,0,0,0)
wait(1.5)
script.Parent.Play.MouseButton1Down:Connect(function()
wait()
game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
game.Workspace.Camera.CameraSubject = game.Players.LocalPlayer.Humanoid
end)
wait(15)
object.Parent:Destroy()
Simply add a debounce
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.Humanoid
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
end
end)
All you would have to do now is change the variable
testing the script right now. Hope it works!
Didnt work. The script:
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local IsCurrentlyOnPart = false
script.Parent.Play.Visible = true
local Blur = game.Workspace.Camera.Blur.Size
local FirstNumber = 0
local SecondNumber = 10
local final = "Loading Extra Assets: "..tostring(FirstNumber).."/"..tostring(SecondNumber)
local object = script.Parent
object.Position = UDim2.new(0,0,0,0)
wait(1.5)
script.Parent.Play.MouseButton1Down:Connect(function()
IsCurrentlyOnPart = true
wait()
game.StarterPlayer.StarterPlayerScripts.Camera:Destroy()
game.Lighting.Blur:Destroy()
end)
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.Humanoid
workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.HumanoidRootPart
end
end)
wait(1)
object.Parent:Destroy()
Any errors? Is this a server script or a local script
The script is a local script, not a server script.
When I click on it, it removes blur, deletes the GUI but dosent change cam position