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

Camera Function Editing Character.Head decals!?!?!

Hello I've made this camera script, after editing the camera's posistion

cam = workspace.CurrentCamera
plr = script.Parent.Parent.Parent.Parent.Parent
chr = plr.Character

script.Parent.MouseButton1Click:Connect(function()
repeat wait()
	cam.CameraType = Enum.CameraType.Custom
until cam.CameraType == Enum.CameraType.Custom

repeat wait()
cam.CameraSubject = chr
until cam.CameraSubject == chr

end)

(Local Script[StarterGui])

Now I have another script in the game**(Global Script)** That makes the player's Face.Transparency = 1 but this script keeps making the face.transparency = 0!

2 comments

0

Definitely not this script. You never reference the head or the decal.

0

Yes but when I disable the script, it stops the bug I dont get it either

1 answer

I've fixed this already, It was the repeat value on the CameraSubject

cam = workspace.CurrentCamera
	plr = script.Parent.Parent.Parent.Parent.Parent
	chr = plr.Character
	 
	script.Parent.MouseButton1Click:Connect(function()
	repeat wait()
	    cam.CameraType = Enum.CameraType.Custom
	until cam.CameraType == Enum.CameraType.Custom
	 
	cam.CameraSubject = chr
	 
end)

The values that affected the head where in other scripts in the gui, as they set the position to a Hat's handle

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