I am making a module that requires Camera Manipulation and I cant figure out how im gonna change the cams CFrame, do I NEED a local script or it there a way to get a players camera through script.
Here’s what I’m experimenting with.
local function onBlast(Intensity, InstancePosition)
local BL = Instance.new("Part")
BL.Parent = workspace
BL.Shape = Enum.PartType.Ball
BL.Size = Vector3.new(1, Intensity * 5, 1)
BL.Position = InstancePosition
local HP = {}
local tween = TweenService:Create(BL, TweenInfo.new(Intensity * .01), {Size = Vector3.new(5 * Intensity,5 * Intensity,5 * Intensity)}):Play()
local TC = false
repeat
if tween.PlayBackState == Enum.TweenStatus.Completed then
TC = true
local OVP = OverlapParams.new()
for i, item in workspace:GetPartsInPart(BL, OVP) do
if item:WaitForChild("Humanoid") then
-- Here i would manipulate the camera with GetPlayerFromCharacter
end
end
else
return
end
until TC == true
end