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

Can Someone Help Me Fix The Camera Going Thorugh Bricks?

Asked by
Seenit 80
10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.

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)
0
Is this in a LocalScript? Sublimus 992 — 10y
0
Yes it is. Cloned into the PlayerGui Seenit 80 — 10y
0
Is the name of the local script this is in 'LocalScript'? Sublimus 992 — 10y
0
it's named 'LocalScript2' Seenit 80 — 10y

1 answer

Log in to vote
1
Answered by
Sublimus 992 Moderation Voter
10 years ago

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

0
Well, even so, It still allows the camera to go through bricks. Seenit 80 — 10y
0
Does it attach to the player though? Sublimus 992 — 10y
0
Yes it does. Seenit 80 — 10y
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. Sublimus 992 — 10y
View all comments (2 more)
0
Ah, alright. Ill accept this answer then. Seenit 80 — 10y
0
The thing is that if you put "custom" it wont work b/c it has to be exact Hybric 271 — 10y
Ad

Answer this question