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

How to make changes to Humanoid CameraOffset work in FE?

Asked by
snarns 25
6 years ago
Edited 6 years ago

I want to make it so that if a Player touches a part, the Camera Offset will change. This only works in Studio, how can I fix that?

local debounce = false 

function onTouch(part) 
local human = part.Parent:findFirstChild("Humanoid") 
if (human ~= nil) and debounce == false then 

debounce = true 

human.CameraOffset =  Vector3.new(0, 2.2, 0)

wait(2) 
debounce = false 
end 
end 


script.Parent.Touched:connect(onTouch) 

0
Hint:the client handles what the player sees hiimgoodpack 2009 — 6y
0
I'm very new to scripting so I don't really know what to do with that hint :( snarns 25 — 6y

Answer this question