#Dropdown Button Duplicates Itself on respawn + dont add value to player when button below is clicked

1 messages · Page 1 of 1 (latest)

fluid fractal
#

so, when you die/respawn in the game, the button reproduces it self somehow and makes another (stacks) , and if you click a button in the menu thats supposed to add stringvalue to the player upon click, it just doesnt.

#
local ReplicatedStorage = game:GetService("ReplicatedStorage")

local CharacterModule = require(ReplicatedStorage:WaitForChild("Modules"):WaitForChild("CharacterModule"))

local player = Players.LocalPlayer
local changeCharacter = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("changeCharacter")

local Icon = require(ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Icon")) 

local function getCharacters(player)
    local characters = CharacterModule.GetCharacters(player)
    
end

Icon.new()
    :setLabel("Characters")
    :setDropdown({
        Icon.new()
            :setLabel("Linked Sword")
            :oneClick()
            :bindEvent("selected", function()
                changeCharacter:FireServer("Linked Sword")
            end)    
    })```
#

code 🆙

#

Dropdown Button Duplicates Itself on respawn + doesnt add value to player when button underclicked