For some reasons my part doesn’t display until I set the parent to workspace first then back to viewportframe.
-Doing this does not display the part:
ClonedPart.CFrame = CFrame.new(0,0,0)
ClonedPart.Parent = ViewportFrame
-This however does:
ClonedPart.CFrame = CFrame.new(0,0,0)
ClonedPart.Parent = workspace
task.wait(1)
ClonedPart.Parent = ViewportFrame
Im assuming its not updating the position until I set the parent to workspace, even though its updated in properties.
Would really appreciate help ^^
OiiKaee
(OiiKaee)
July 16, 2024, 11:04pm
#2
Has the viewport fully loaded prior to attempting to parent it? I’d try using :WaitForChild if not?
Yes, viewport is fully loaded.
this is just a shortened version of the script, I am already using :WaitForChild.
Incase someone is facing the same problem, I fixed it by making a “WorldModel” inside of ViewportFrame, and setting the Parent of the part to that World Model instead of ViewportFrame.
system
(system)
Closed
July 30, 2024, 11:31pm
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.