outdoorleft.blogg.se

Blockland renderman addon
Blockland renderman addon













blockland renderman addon

I get the direction that the player is facing with LookVector, in this case, by getting their direction from their Heads local CharacterHead = Character:FindFirstChild("Head") - Get the player's head (Part)

blockland renderman addon

I did my research in the past, and I think the best way you can determine if a player is looking at the NPC is using the :Dot() function on a Vector3. The first effect is approachable with one of Vector3s function. Remember to anchor anything being lerped/tweened as unanchored parts don’t enjoy being CFrame manipulated Again I’ve not seen it in studio, Humanoids are very frustrating to work with so there might be problems with the neck, would have to test to see.

blockland renderman addon

That should keep the head where it’s supposed to be but spin it 180 degrees on the y-axis. Then, you can just set the camera’s CFrame to the head’s CFrame in the same go. Changed event, set the players’ Head to something like = CFrame.new(CFrame.Angles(0, math.rad(NumberValue.Value), 0) + ) Tween the NumberValue from 0 to 180, that’ll represent degrees. I would personally use the players’ Head since that’s where the camera is supposed to be anyways and makes reading the logic a little easier. You’re on the right track, I can explain the rotating axis but you would need to adapt this idea to have the other two axes, as well as the flooring since I haven’t played with this in studio to see how it would look.

#BLOCKLAND RENDERMAN ADDON HOW TO#

I do not want an entire script wrote out for me on how to do both of them, I’d rather have an idea of what to do and explain what stuff does so I can at least learn from it, any help is appreciated, thank you so much. Lerps and tweens make the turns smooth instead of choppy, so that is not what has worked. I’ve currently tried changing the currentcameras cframe by a few seconds to look at it to recreate the choppiness, but that has been not working efficiently. The second effect does the exact same thing as the top one, except this time it forces the player to turn around, not in a smooth motion either, but in a rather choppy way, I’ve tried lerps and tweens and cframe changes for this, but however it’s been rendered useless as whatever I try has not come close as to rendering the same effect. The first one locks the player and the npc in place, making the player stuck there while the npc sits behind them still, waiting for the player to turn around and if the player does not turn around, the nc goes away letting the player move again. Those effects are two i’ve currently been struggling with. (I’ve seen these effects done in a roblox game before, forgot the name and the link, I just remember seeing it and playing it, and it had to do with this addon)















Blockland renderman addon