I want to make an aura collection like sols rng and I got to the part where i would need to click the button to then add the aura to the viewport model and it seems it just doesnt show up.
Here is my code currently (the aura will be picked out in the code later)
local AurasFound = {
[1] = "Gomu",
[2] = "Sandstorm",
[3] = "Santoryu",
[4] = "Diablo",
[5] = "Prince",
[6] = "Saiyan",
[7] = "Rasen",
[8] = "Chidori",
[9] = "Kaiju",
[10] = "Lotus",
[11] = "Jetsteam",
[12] = "Esper",
[13] = "Hunter",
[14] = "Shadow",
[15] = "King",
[16] = "Eminence",
[17] = "Joyboy",
[18] = "Infernal",
[19] = "AntiMatter",
[20] = "Limitless",
}
for _,Aura in AurasFound do
local UnlockedTemplate = CollectionsMain.ScrollingFrame.Unlocked:Clone()
UnlockedTemplate.Parent = CollectionsMain.ScrollingFrame
UnlockedTemplate.Main.Text = Aura
UnlockedTemplate.TextButton.MouseButton1Down:Connect(function()
local ParticleEmitter = Instance.new("ParticleEmitter")
ParticleEmitter.Parent = CollectionsCanvas.Container.ViewportFrame.Rig.PrimaryPart
ParticleEmitter.LockedToPart = true
end)
end
task.wait()
CollectionsMain.ScrollingFrame.Unlocked:Destroy()
CollectionsMain.ScrollingFrame.Locked:Destroy()
local Viewport = CollectionsCanvas.Container.ViewportFrame
local Camera = Instance.new("Camera",Viewport)
Camera.CFrame = Viewport.Rig.PrimaryPart.CFrame * CFrame.new(.9,-2,5)
Camera.CFrame = CFrame.lookAt(Viewport.Rig.PrimaryPart.Position,Viewport.Rig.PrimaryPart.Position)
Viewport.Rig.PrimaryPart.Orientation *= Vector3.new(0,0,180)
Viewport.CurrentCamera = Camera
why doesnt it work currently and will i have to use another method to display the model with the aura?