of     1   

ArtianS
#221358291Saturday, July 15, 2017 1:08 AM GMT

cf = workspace.CurrentCamera.CFrame.p part.CFrame = CFrame.new (part.Position, Vector3.new (cf.X, part.Position.Y, cf.Z)) I have tried most everything but nothing seems to work, am I missing a vital component to it working? If so, share details.
systematicaddict
#221359346Saturday, July 15, 2017 1:16 AM GMT

what's the problem?
ArtianS
#221360240Saturday, July 15, 2017 1:22 AM GMT

The script doesn't do anything when inside of a model, set up to my best efforts inside of a part. It did not do what I ad hoped it to do: following the player's camera without being flat in all angles, and rotating on the Y axis. Facing a flat 90 degree angle at all times, but following the player's camera. This script was provided by the maker of Cleaning Simulator, for the NPCs in the game.
systematicaddict
#221360495Saturday, July 15, 2017 1:24 AM GMT

is it in a loop or fired on an event?
Laedere
#221360644Saturday, July 15, 2017 1:26 AM GMT

cf = workspace.CurrentCamera.CFrame.p part.CFrame = CFrame.new (part.Position, cf)
ArtianS
#221361355Saturday, July 15, 2017 1:32 AM GMT

@system it's not fired on an event, and is meant to happen as soon as the server goes up @lae I'm confused what to do with those. I've never scripted before, I'm mainly a builder.
iiDesiredCookies
#221361658Saturday, July 15, 2017 1:34 AM GMT

I would help if I wasn't so bad at this scripting
systematicaddict
#221361843Saturday, July 15, 2017 1:36 AM GMT

well if it's not in a loop or constantly fired, then the CurrentCamera's CFrame will not be updated to the variable, and the part's CFrame won't get updated either, so it will just move one time which I thought you wanted it to follow the camera?
ArtianS
#221362127Saturday, July 15, 2017 1:38 AM GMT

Could you tell me how to loop it please? I'd ask the dev for more info, but I'd fear he's ignore me as he refuses to help me unless I know basic lua, which I don't.
systematicaddict
#221362383Saturday, July 15, 2017 1:41 AM GMT

while condition do --code wait() end
systematicaddict
#221362484Saturday, July 15, 2017 1:41 AM GMT

if you're dealing with a part following a camera, though, I'd fire it on RenderStepped, as it would look much smoother and not need the wait() to prevent the game from crashing
ArtianS
#221362971Saturday, July 15, 2017 1:45 AM GMT

Even looped, it's not working. Could you tell me about how to work with renderstepped?
ArtianS
#221363513Saturday, July 15, 2017 1:50 AM GMT

I have an option to ask the developer for the entire thing, but I fear they would most likely think I want to take their script and use it as my own, and claim it, and thus is why they're keeping me in the blue. The problem here is that all of this is driving a simple minded builder like myself insane.

    of     1