Hey! I’ve been looking everywhere on the devforum for answers but I couldn’t find any currently my code is a bit messy but I don’t mind it, I just need to understand how can I do this I’m a bit new to math.clamp and the camera.
Script:
if (HumanoidRootPart.Position - Model.HumanoidRootPart.Position).Magnitude <= 45 then
local amp = math.clamp(Number/1, 0, 0)
print(amp)
local x = math.random(-amp, amp)
local y = math.random(-amp, amp)
local z = math.random(-amp, amp)
local Goal = {
CFrame = workspace.CurrentCamera.CFrame * CFrame.Angles(x, y, z)
};
local Tween = TweenService:Create(workspace.CurrentCamera, TweenInfoService, Goal)
Tween:Play()
wait(.01)
I know that for sure AMP doesn’t work as I tried testing it.
Id hope to seek some help or atleast any ideas on what I can use to fix this.