What do you want to achieve? And what is the issue
I want to “insert” static “pictures” of my custom characters inside some Viewport Frames…
The issue is that when i open the GUI the picture won’t show up in the Viewport Frame unless i hover it with the mouse… Also the Scaling is not working with different resolutions and i don’t know how to fix that either…
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried some solutions i got from a Discord server but i couldn’t fit those issues…
Here some images about the issues.
local Pic = script.Parent
Pic.MouseEnter:Connect(function()
local RP = nil
if game:GetService('ReplicatedStorage').Viewport:FindFirstChild(Pic.Name) then
RP = game:GetService('ReplicatedStorage').Viewport:FindFirstChild(Pic.Name):FindFirstChild('ViewportTemp')
elseif game:GetService('ReplicatedStorage').SpecialViewport:FindFirstChild(Pic.Name) then
RP = game:GetService('ReplicatedStorage').SpecialViewport:FindFirstChild(Pic.Name):FindFirstChild('ViewportTemp')
end
if RP then
if script.Parent.Viewport:FindFirstChild('ViewportTemp') then
script.Parent.Viewport.ViewportTemp:Destroy()
end
local Cloned = RP:Clone()
Cloned.Parent = script.Parent.Viewport
script.Parent.Viewport.CamPJ.CFrame = CFrame.new(Cloned.Head.Head.Position + Cloned.Head.Head.CFrame.LookVector * 1.7 + Cloned.Head.Head.CFrame.RightVector * 0.6 + Vector3.new(0, 0.15, 0), Cloned.Head.Head.Position)
end
end)