Hello!, I am having issues with viewport, and its bugging out on me…
Its supposed to be a classic sword, but for some reason its not working.
Snippet of Code:
local itemsFolder = game.ReplicatedStorage:WaitForChild("Items")
for i, item in pairs(itemsFolder:GetChildren()) do
local name = item.Name
local itemSelection = script.Frame:Clone()
itemSelection.Name = name
local cam = Instance.new("Camera")
cam.Parent = itemSelection.ItemSelection.ItemView
itemSelection.ItemSelection.ItemView.CurrentCamera = cam
local displayPart = item.Handle:Clone()
displayPart.Anchored = true
displayPart.CFrame = CFrame.new()
displayPart.Parent = itemSelection.ItemSelection.ItemView
cam.CFrame = CFrame.new(displayPart.Position + displayPart.CFrame.LookVector * 4, displayPart.Position)
itemSelection.Parent = itemScroller
itembutton = itemSelection.ItemSelection
end
