Hello there, my grammar will be bad in this topic but I want to know how to make a part change the player camera position on touch? I can not find any tutorials on it and I’m not sure what it is called or no one has done it yet. So this is basically how I want it
Map 1 (Forest)
Top Down View camera
Map 2 (House)
there is a part front of the door where if the player touches it their camera is
normal camera (third person)
map 3 (Outside)
another part but outside of the house door where if the player touches it their camera goes back to top down view
Someone please help me with this because it would be very awesome to know
Simple way to do this is to set up 2 events one for the part to detect if you go in and one for outside.
This was just a fast draft I made, haven’t tested it, but some few edits will make it work correctly:
ply = game.Players.LocalPlayer
cam = game.Workspace.CurrentCamera
touched = false
inside.Touched:Connect(function(part)
if ply.Character~=part Parent then return end
if touched then return end
touched = true
– camera set to third-person
touched = false
end)
outside.Touched:Connect(function(part)
if ply.Character~=part Parent then return end
if touched then return end
touched = true
– camera set to normal
touched = false
end)