local towerbutton = towersGui.Template:Clone()
local towertemplate = tower:Clone()
towertemplate.Parent = towerbutton.Icon.WorldModel
local portcamera = Instance.new("Camera")
towerbutton.Icon.CurrentCamera = camera
camera.CFrame = CFrame.new(towertemplate.HumanoidRootPart.Position, towertemplate.HumanoidRootPart.CFrame.LookVector * 2, towertemplate.HumanoidRootPart.Position)
camera.CFrame = towertemplate.HumanoidRootPart.CFrame * CFrame.Angles(math.rad(30), math.rad(-200), 0) * CFrame.new(0,0,2)
camera.Parent = towerbutton.Icon
towerbutton.Price.Text = tower.Stats.Price.Value.. "$"
towerbutton.Parent = towersGui```
#[SOLVED] why does this break the clients camera
30 messages · Page 1 of 1 (latest)
I'll take a look at this in a sec :3
ok
Ok ig while I wait for that guy I can take a look
The viewport camera?
what should i do then
Are you a new scripter?
Well 2 things
Parent the camera to the viewport
And second is to set the viewports current camera to portcamera
"Icon" is an viewport
Ik
local portCamera = Instance.new("Camera")
portCamera.Name = "PortCamera"
portCamera.Parent = towerbutton.Icon
towerbutton.Icon.CurrentCamera = portCamera
still the same
Let me see ur code