Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to know if character is faced towards the sky (upwards)?

How do I use a script to find out if the character is facing upwards towards space?

4 comments

2

This is NOT a request site!

0

i will not answer this but look up camera cframe and try to figure it out

0

Not a reqeust site.

0

why le tosic

1 answer

uhhh ok ill just give u a sample:

local cam = workspace.CurrentCamera
while wait() do
	local dir = cam.CFrame.LookVector.y

	if dir > 0 then print("sky") end
end

i wrote this up in my head should work

This discussion is preserved as it was. New answers, comments, and votes are closed.