Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can Someone Help Me Fix The Camera Going Thorugh Bricks?

I have an intro involving camera which works fine but in the aftermath it lets the camera go through bricks instead of moving forward in front of it. how can I fix this? here is the script that resets the camera:


wait(3)
local player = script.Parent.Parent
gui1 = script.Parent.OpeningPlayer.Frame2
gui1:TweenPosition(UDim2.new(0.5, 0, 0.5, 0), "Out", "Sine", 2, true) --ignore tweening, it works
wait(10)
script.Parent.LocalScript:Destroy()
game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "custom"-- I tried fixed but then it wouldn't attach to the player
wait(2)
gui1:TweenPosition(UDim2.new(0.5, 0, -0.5, 0), "Out", "Sine", 1, true)

4 comments

0

Is this in a LocalScript?

0

Yes it is. Cloned into the PlayerGui

0

Is the name of the local script this is in 'LocalScript'?

0

it's named 'LocalScript2'

1 answer

✓ Accepted answer

The CameraType should be "Custom" not "custom".

6 comments

0

Well, even so, It still allows the camera to go through bricks.

0

Does it attach to the player though?

0

Yes it does.

1

Ah, I see what you were saying now, I feel that this is a ROBLOX glitch, and I'm not sure if there is much you can do about it.

0

Ah, alright. Ill accept this answer then.

0

The thing is that if you put "custom" it wont work b/c it has to be exact

This discussion is preserved as it was. New answers, comments, and votes are closed.