#Camera like Pokémon
1 messages · Page 1 of 1 (latest)
set the camera cframe to a part cframe that you want
it must be currentcamera
I tried it
** You are now Level 1! **
But dont works
yes it'll, share the script
you can use tweens if you don't want something too flashy or pixelated
local Player = game.Players.LocalPlayer
local tweenService = game:GetService("TweenService")
local Char = Player.Character
local Camera = game.Workspace.CurrentCamera
local RoomCam = game.Workspace:WaitForChild("RoomCam")
local Process = false
wait(game:IsLoaded())
RoomCam.Transparency = 1
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = RoomCam.CFrame
local BlurEffect = Instance.new("BlurEffect")
BlurEffect.Size = 0
BlurEffect.Parent = game.Lighting
local Black = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Transparency = 0})
local UnBlack = tweenService:Create(script.Parent:WaitForChild("Black") ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Transparency = 1})
local Blur = tweenService:Create(BlurEffect ,TweenInfo.new(2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Size = 20})
local UnBlur = tweenService:Create(BlurEffect ,TweenInfo.new(1,
Enum.EasingStyle.Linear,
Enum.EasingDirection.Out),
{Size = 0})
local roomcam = workspace.RoomCam
local salacam = workspace.SalaCam
local TeleportPart1 = workspace.tp1
local TeleportPart2 = workspace.tp2
TeleportPart1.Touched:Connect(function(hit)
local w = hit.Parent:FindFirstChild("HumanoidRootPart")
if w then
w.CFrame = TeleportPart2.CFrame + Vector3.new(0, 5, 0)
Camera.CameraType = Enum.CameraType.Scriptable
Camera.CFrame = salacam
TeleportPart2.CanTouch = false
wait(1)
wait(1)
TeleportPart2.CanTouch = true
end
end)
TeleportPart2.Touched:Connect(function(hit)
local w = hit.Parent:FindFirstChild("HumanoidRootPart")
if w then
w.CFrame = TeleportPart1.CFrame + Vector3.new(0, 5, 0)
TeleportPart1.CanTouch = false
wait(1)
TeleportPart1.CanTouch = true
end
end)
anothercam
or an Instance?
It is the camera that I want to be seen when touching the part
yeah well idk it's an instance xd