Hello, I am currently working on a start screen. I have come to a point where I wanted to display a position of my map with CFrame and Camera. But the problem is that the result differs in Roblox Studio and Roblox Client Does anybody know why?

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()
local Camera = workspace.CurrentCamera
local replicatedStorage = game:GetService("ReplicatedStorage")
local lighting = game:GetService("Lighting")
local blur = replicatedStorage:WaitForChild("Blur"):Clone()

Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = workspace.CameraPart.CFrame
blur.Parent = lighting
blur.Enabled = true

Thanks, Alex

2 comments

0

do you mean when you play test your game in studio it acts different from when you play the published game

0

Correct!