#help with viewportframe

1 messages · Page 1 of 1 (latest)

limpid eagle
#

⁨```lua
local Players = game:GetService("Players")

local player = Players.LocalPlayer
local character = player.Character
local RT = character:WaitForChild("HumanoidRootPart")
local playerGui = player:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = playerGui

local TweenService = game:GetService("TweenService")

local viewportFrame = Instance.new("ViewportFrame")
viewportFrame.Size = UDim2.new(0.3, 0, 0.4, 0)
viewportFrame.Position = UDim2.new(0, 15, 0, 15)
viewportFrame.BackgroundColor3 = Color3.new(0, 0, 0)
viewportFrame.BorderColor3 = Color3.new(0.6, 0.5, 0.4)
viewportFrame.BorderSizePixel = 2
viewportFrame.BackgroundTransparency = 0.25
viewportFrame.Parent = screenGui

local playerclone = RT:Clone()
playerclone.Parent = viewportFrame
playerclone.Position = Vector3.new(0, 0, 0 )
print(RT)

local viewportCamera = Instance.new("Camera")
viewportFrame.CurrentCamera = viewportCamera
viewportCamera.Parent = viewportFrame

viewportCamera.CFrame = CFrame.new(Vector3.new(0, 2, 12), playerclone.Position)

task.wait(2)

local cameraGoal = {
CFrame = CFrame.new(Vector3.new(0, 6, 4), player.Character.HumanoidRootPart.Position),
}

local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Elastic, Enum.EasingDirection.Out)

local tween = TweenService:Create(viewportCamera, tweenInfo, cameraGoal)

tween:Play()```⁩

#

humanoid is not appearing in the frame

#

😳

#

help with vierportframe

#

help with viewportframe

vague spire
#

nice try

limpid eagle
#

i fixed it already woe

vague spire
#

nice

#

good job

vague spire
limpid eagle
#

now i will take my pills

vague spire
#

i didnt sad

limpid eagle
#

you did

#

look

#

my heart

vague spire
limpid eagle
#

💔

vague spire
#

maybe

#

go and gamble

limpid eagle
#

we should gamble

vague spire
limpid eagle
#

local gamble = math.random(1, 10000000) if gamble == 1 then print("i dont have a father") else end

vague spire
#

nice

#

good implemention of else

neat sentinelBOT
#
Compiler Output
<source>: In function 'int main()':
<source>:3:1: error: 'local' was not declared in this scope
    3 | local gamble = math.random(1, 10000000)
      | ^~~~~
Build failed
limpid eagle
#

did i just kill the compiler

#

nvm

#

booo

vague spire
#

i dont know c++ but i think it does not look like that

limpid eagle
#

l compiler

vague spire
#

yes compilers fault

#

ur right

limpid eagle
#

thanks for agreeing

vague spire
#

it failed at the first letter

limpid eagle
#

so its ocal

vague spire
#

yes

limpid eagle
#

ocal local

vague spire
#

exactly

limpid eagle
neat sentinelBOT
#
Compiler Output
<source>: In function 'int main()':
<source>:3:1: error: 'ocal' was not declared in this scope
    3 | ocal local
      | ^~~~
Build failed
limpid eagle
#

its also the fault of ocal

vague spire
#

maybe cal

limpid eagle
#

you try it

#

i already know the solutin if ocal doesn't work

vague spire
#

⁨```c++
cal

vague spire
neat sentinelBOT
#
Compiler Output
<source>: In function 'int main()':
<source>:3:1: error: 'cal' was not declared in this scope
    3 | cal
      | ^~~
Build failed
limpid eagle
#

i think the whole word is an issue

vague spire
#

hm

limpid eagle
#

⁨```````⁩

limpid eagle
neat sentinelBOT
#
Compilation successful
limpid eagle
#

see

vague spire
#

nice

#

it was the compilers fault

#

like we said

limpid eagle
#

like i said

#

and then you said

#

that i said

#

it was compilers fault

vague spire
#

yes

#

exactly

#

i just sneezed

limpid eagle
#

i sneezed

#

when i fart

#

and it smells

#

is that normal