Ad
Log in to vote
0

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

Asked by 3 years ago

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!

0
Definitely not this script. You never reference the head or the decal. Jexpler 63 — 3y
0
Yes but when I disable the script, it stops the bug I dont get it either LegoUnicornRoblox 37 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

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

Ad

Answer this question