#for some reason connecting cframe to a part doesnt work?

80 messages · Page 1 of 1 (latest)

tacit current
#

so basicly im tryign to make when you join the camera cframe will be set to the part but when you join it doesnt show where the part is, actually really far away randomly.

#

heres an example

#

where its supossed to be:

#

where it is when i join:

#

and that weird bc look how far it is.

#

help please!

devout thistle
#

you're probably setting the cframe before the part is loaded

#

you can either create a variable = cframe.new() and enter your vector3s or workspace:waitforchild()

tacit current
#

i made it like this

#

local camera = game.Workspace.CurrentCamera

local menu = workspace:WaitForChild("Menu")
local coolCam = menu:WaitForChild("CoolCam")

camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = coolCam.CFrame

modern token
#

works?

tacit current
#

sadly, no.

#

nothing happens at all.

tacit current
#

yes, in starter GUI

modern token
#

any errors?

#

cuz it works for me

devout thistle
tacit current
#

that is the full script.

#

let me check for errors

modern token
#

it should say what's the error

tacit current
#

dont mind abt the plugin error tho, its nothing.

modern token
#

uh

#

check ur camera part name

#

there's no CoolCam in Menu folder

devout thistle
tacit current
#

there is

tacit current
devout thistle
tacit current
#

yeah

devout thistle
#

try coolCam = menu.CoolCam or menu:WaitForChild("CoolCam")

tacit current
devout thistle
#

no

#
local coolCam = menu.CoolCam or menu:WaitForChild("CoolCam")
tacit current
#

didnt work sadly.

ember apexBOT
#

studio** You are now Level 8! **studio

devout thistle
modern token
#

nvm im dumb

modern token
#

maybe press play and check ur menu folder?

devout thistle
tacit current
#

alright

tacit current
tacit current
modern token
#

i might look super dumb rn but try this

local camera = game.Workspace.CurrentCamera

game.Players.LocalPlayer.CharacterAdded:Wait()

local menu = workspace:WaitForChild("Menu")
local coolCam = menu:WaitForChild("CoolCam")

camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = coolCam.CFrame
tacit current
#

alright.

modern token
#

prob wont work

tacit current
#

your right, sadly

modern token
#

try putting CoolCam in workspace and do local coolCam = workspace:WaitForChild("CoolCam")

tacit current
#

the coolcam is alreayd in workspace

#

*already

modern token
#

not in Menu folder

tacit current
#

oh

#

ok

#

sadly doesnt work

modern token
#

error?

tacit current
#

nope, no errors.

#

this is weird, it should be working by now.

modern token
tacit current
#

only infinite yield one

modern token
tacit current
modern token
#

;--;

#

weird asf

tacit current
#

ill try fixing this tomorrow, im really tired ill go to sleep.

modern token
#

k gl

tacit current
#

is there like anything basic im missing?

#

like in properties?

modern token
#

ur problem is weird idk

tacit current
#

i fixed it