#How do you create a smooth zoom-in effect and then zoom out in Studio?

56 messages · Page 1 of 1 (latest)

lusty plover
#

FYI, i'm trying to make a warp effect. It needs to be a smooth animation but i've no idea where to start, anyone got ideas?

formal fulcrum
#

tween service?

#

you can tween the camera fov

lusty plover
#

actually can you help me with something else too?

formal fulcrum
#

ok

lusty plover
#

i'm trying to get a model to match the orientation of a character but it's just not working with cframe: angles

formal fulcrum
#

just set cframe to humanoidrootpart cframe

lusty plover
#

that half works, i get an error which says Unable to cast Instance to CoordinateFrame and it puts down the model next to my character but not in the right way

#

it's turned to the right of my character

formal fulcrum
#

can i see the code?

lusty plover
#
local UIS = game:GetService("UserInputService")
local deb = false
local plr = game.Players.LocalPlayer
local zoomParts = game.ReplicatedStorage.zoomBeamModel


UIS.InputBegan:Connect(function(input,GE)
    if GE then return end
    if input.KeyCode == Enum.KeyCode.B and deb == false then
        
        local przoom = zoomParts:Clone()
        przoom.Parent = workspace
        przoom:SetPrimaryPartCFrame(plr.Character.Torso.CFrame)
        przoom:SetPrimaryPartCFrame(plr.Character.HumanoidRootPart)
    end
end)
formal fulcrum
#

przoom:SetPrimaryPartCFrame(plr.Character.HumanoidRootPart)

#

thats a instance

#

not a cframe

lusty plover
#

m

#

mbv

#

mb lmc

#

fixed it to be przoom:SetPrimaryPartCFrame(plr.Character.HumanoidRootPart.CFrame) but it still does the same thing as before

formal fulcrum
#

przoom:SetPrimaryPartCFrame(plr.Character.HumanoidRootPart * CFrame.Angles(math.rad(90),0,0))

finite idolBOT
#

studio** You are now Level 6! **studio

lusty plover
#

it went a bit more up but still not the right way turned

lusty plover
formal fulcrum
#

ok i got it

#

try other direction

#

like y,z then -x,-y,-z

lusty plover
#

(-90),-0,-0))

#

?

formal fulcrum
#

thats not what im trying to say

#

like 0,(90),0

#

0,0,(90)

#

-(90),0,0

#

and so on

lusty plover
#

ic

#

wait huh?

#

i don't get it

formal fulcrum
#

ok so you know the math.rad(90)

lusty plover
#

yes

formal fulcrum
#

first positive x

lusty plover
#

uh huh

formal fulcrum
#

so math.rad(90),0,0

lusty plover
#

mhm

formal fulcrum
#

then positive y

#

so 0,math.rad(90),0

lusty plover
#

huh??

#

wait that worked

#

just putting a 0, before the math rad and removing another one

#

my apologies man i just have no idea how that works and i'm really bad at math

formal fulcrum
#

oh

#

i ment keep moving the math.rad thingy

#

but np

#

math.rad(90) turns it into radians. 90 radians is i think pi/2

lusty plover
#

alright i'm gonna come out and say it i have no idea what that means

#

the reason i stopped scripting is because i can't do ANY math and always needed help w it

formal fulcrum
#

you cant script if you dont know maths