#i want it to keep da cframe

1 messages · Page 1 of 1 (latest)

stone torrent
#
---code
local Camera = game.Workspace.CurrentCamera
local Ts = game:GetService("TweenService")
local TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
Camera.CameraType = Enum.CameraType.Scriptable
local Goal = game.Workspace:WaitForChild("ShopCam").CFrame
local Tween = Ts:Create(Camera, TweenInfo, {CFrame = Goal})

wait(3)
game.Workspace.Proxiemty:WaitForChild("ProximityPrompt").Triggered:Connect(function()
    Camera.CFrame = game.Workspace.ShopCam.CFrame
    Tween:Play()
    

end)
supple rose
stone torrent
#

i did

misty hullBOT
#

studio** You are now Level 2! **studio

stone torrent
#

wait

#

do da cframe

#

before da tween?

#

but how will da player activate da shop 😭

supple rose
#

Make it scriptable when the player triggers the prompt

stone torrent
#

kk

#

it doesnt do da tween

#

but it doesnt do da tween sobbing

#

can someone help

autumn rain
#

hmm

mystic ravine
autumn rain
#

wait nevermind

#

nevermind im an idiot

#

workspace:WaitForChild("Proxiemty"):WaitForChild("ProximityPrompt").Triggered:Connect(function()
proxiemty just didnt load

#
local Ts = game:GetService("TweenService")

local TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)

workspace:WaitForChild("Proxiemty"):WaitForChild("ProximityPrompt").Triggered:Connect(function()
    local Goal = workspace:WaitForChild("ShopCam").CFrame
    Camera.CameraType = Enum.CameraType.Scriptable
    local Tween = Ts:Create(Camera, TweenInfo, {CFrame = Goal})
    Tween:Play()
end)```
#

this is what it should look like

stone torrent
#

srry was in school

#

will it work like dis

#

wait lemme try

#

kk works