hello
so im having a problem assigning a number to the X Position inside of my CFrameValue
I dont know why, but I keep getting an error saying “X Cannot be assigned to”.
Heres the code:
local plr = game:GetService('Players').LocalPlayer
local chr = plr.Character or plr.CharacterAdded:Wait()
local hum = chr:WaitForChild('Humanoid')
local plrcamera = script.Parent:WaitForChild('PlayerCamera')
local coordinateposition = plrcamera.Coordinates.CoordinatePosition
local Camera = require(plrcamera:WaitForChild("Handler"))
local placeteleport = require(script:WaitForChild('ModuleScript'))
local objectname = 'PlaceTeleporter'
hum.Touched:Connect(function(object)
if (object:IsA('Part') and object.Name == objectname) then
local touched = object:WaitForChild('TouchBool')
local place = object:WaitForChild('Place')
local cameraxvalue = object:WaitForChild('CameraXValue')
if touched.Value ~= true then
coroutine.resume(coroutine.create(function()
touched.Value = true
task.wait()
touched.Value = false
end))
placeteleport:TeleportPlayerPlace(place.Value)
coordinateposition.Value.Position.X = 5
Camera.loadcam()
end
end
end)
Am I doing anything wrong? I’ve never used a CFrameValue, so somebody please explain to me what the problem is here, this has been frustrating me for over an hour.
Thank you

