#i feel like im dying
1 messages · Page 1 of 1 (latest)
i dont really get what this does can you explain
i think it is probably something with the camera Cframe part but i dont really get what is happening either
** You are now Level 3! **
those colors are unreadable
i guess it's view port frame
yeah like i cant even read the code 🤣
if you want to achieve portal like portals you need to change "camera" direction of viewport frame
i think there're many tutorials with similar effect
we cant help with code if you dont show the code
lemme try to code that rq
i thought i did
i guess i can paste it here
but
here
local camera = Instance.new("Camera")
local plrcamera = workspace.CurrentCamera
local bluePortal = script.Parent.Parent.Parent.BluePortal.Value
local orangePortal = script.Parent.Parent.Parent.OrangePortal.Value
local hrp:Part = game.Players.LocalPlayer.Character.HumanoidRootPart
script.Parent.CurrentCamera = camera
camera.FieldOfView = 70
while task.wait() do
local lookat = CFrame.lookAt(hrp.Position, orangePortal.Position)
camera.CFrame = orangePortal.CFrame * lookat.Rotation * CFrame.Angles(0, math.rad(90), 0)
for i,v in script.Parent:GetDescendants() do
if v:IsA("Script") or v:IsA("LocalScript") then continue else v:Destroy() end
end
for i,v in workspace:GetDescendants() do
if v:IsA("Terrain") then continue end
if v:IsA("Part") then
if v ~= script.Parent.Parent.Adornee then v:Clone().Parent = script.Parent end
end
end
end
how are u struggling with this
coded it in like 5 seconds
well its pretty shit
bc idk how to do all of the uv stuff
lemme show
@naive gale
what
I GOT IT
** You are now Level 7! **
idc about level rn but thanks