What I want to achieve is that the wings appear after death, The problem is that when you die the event does not work
In the output appears to be no errors
Well my script what it does is look for a folder in the workspce with the player’s name and inside the player’s name another string where the value is the wings
The LocalScript is located in StarterCharacterScripts
LocalScript:
local Humanoid = script.Parent:WaitForChild("Humanoid")
local player = game.Players.LocalPlayer.Name
local RPS = game:GetService("ReplicatedStorage")
local EventsWings = RPS.EventsWings
--Wings Events
local WingsChocolate = game.ReplicatedStorage.EventsWings:FindFirstChild("WingsChocolate")
local WingaPink = game.ReplicatedStorage.EventsWings:FindFirstChild("WingsPink")
Humanoid.Died:Connect(function()
local NamePlr = game.Workspace.WingsSettings:FindFirstChild(player)
if NamePlr.WingsValue.Value == "ChocolateWings" then
print("Working...")
WingsChocolate:FireServer()
elseif NamePlr.WingasValue.Value == "WingasPink" then
print("Working...")
WingsChocolate:FireServer()
end
end)