#I had a character menu for a BG game I'm coding and now it dissapeared
1 messages · Page 1 of 1 (latest)
Show your code
your fault for not saving it.
If there is any code that affects your character menu please show it.
I did
In Server:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local CharacterModule = require(ReplicatedStorage:WaitForChild("Modules"):WaitForChild("CharacterModule"))
local changeCharacter = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("changeCharacter")
Players.PlayerAdded:Connect(function(player)
local characters = CharacterModule.GetCharacters(player)
print(characters)
end)
changeCharacter.OnServerEvent:Connect(function(player, character))
if player and character then
if ReplicatedStorage:WaitForChild("Modules"):WaitForChild("CharacterModule"):WaitForChild("Characters"):FindFirstChild(charcater) then
player:WaitForChild("selectedCharacter").Value = character
end
end
end)
didnt paste right
in CharacterModule:
In PlayerData: