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

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

Asked by 5 years ago

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

01cam = workspace.CurrentCamera
02plr = script.Parent.Parent.Parent.Parent.Parent
03chr = plr.Character
04 
05script.Parent.MouseButton1Click:Connect(function()
06repeat wait()
07    cam.CameraType = Enum.CameraType.Custom
08until cam.CameraType == Enum.CameraType.Custom
09 
10repeat wait()
11cam.CameraSubject = chr
12until cam.CameraSubject == chr
13 
14end)

(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 — 5y
0
Yes but when I disable the script, it stops the bug I dont get it either LegoUnicornRoblox 37 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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

01cam = workspace.CurrentCamera
02    plr = script.Parent.Parent.Parent.Parent.Parent
03    chr = plr.Character
04 
05    script.Parent.MouseButton1Click:Connect(function()
06    repeat wait()
07        cam.CameraType = Enum.CameraType.Custom
08    until cam.CameraType == Enum.CameraType.Custom
09 
10    cam.CameraSubject = chr
11 
12end)

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