#Attaching camera to part, and being able to move.

1 messages · Page 1 of 1 (latest)

cobalt wave
#

https://medal.tv/games/roblox-studio/clips/lBgWjeNzAjuCjnkWb?invite=cr-MSw2c3AsMjUxMDkyMzkx&v=15

Welded part to rocket, however I want the camera to also be "welded" to the part. Script below:

script.Parent.MouseButton1Click:Connect(function()
if workspace.CurrentCamera.CameraType == Enum.CameraType.Scriptable then
workspace.CurrentCamera.CameraType = Enum.CameraType.Custom
else
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame = workspace.CamPart1.CFrame
end
end)

Watch camera bug by adventuresam21_fireman and millions of other Roblox Studio videos on Medal. #robloxstudio

▶ Play video
tawny nexus
sharp holly
#

ye use ``` for sending code too

mild cometBOT
#

studio** You are now Level 13! **studio

cobalt wave
mild cometBOT
#

studio** You are now Level 7! **studio

cobalt wave
tawny nexus
#

local RunService = game:GetService("RunService")
RunService.RenderStepped:Connect(function()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera.CFrame = workspace.CamPart1.CFrame
end)

mild cometBOT
#

studio** You are now Level 3! **studio

cobalt wave
cobalt wave
#

Works perfect, the only issue is render distance, it of course works when im on the rocket, but for spectating it, the render distance stops it, is there a way I can prevent this?

tawny nexus
cobalt wave