How do i make press e to use camera

i need help on how to make a (press e to use camera) its hard for me to script it

i have tried some free model scripts and read them but they end up being broken or glitchy

any help/reply will be appreciated
Thanks!
(this is a repost)

3 Likes

Pass us the broken script. We may help.

1 Like

What do you mean e to use the camera, as in go in first person/3rd person etc?

1 Like

so when you press e (promoixty prompt )
the player camera will be a part

1 Like

this is the script the problem in it that when you reset your character the player camera will break

	three.MouseButton1Click:Connect(function()
		sound:Play()
		anim:Play()
		local y = player.Backpack
		y.knife:Destroy()
		wait(0.5)
		cam.CameraType = ("Custom")
		cam.CameraSubject=player.Character.Humanoid
		player.CameraMaxZoomDistance=300
		cam.FieldOfView = 70
		player.Character.HumanoidRootPart.Anchored = false
		script.Parent.Parent:Destroy()
	end)
end)

its pretty long script this is a portion from it

1 Like

Try to change (“Custom”) to (“Scriptable”). Idk if it will help, but you can try it first.

cam.CameraType = ("Scriptable")
1 Like

Or do you have sth about the player camera in the script that has not been shown yet?

1 Like

thanks
i have a main menu cam i forgot to make it to not reset when respawned lol

1 Like