This doesn't give the tool on respawn. Help, please?
Also, half the time it doesn't even load the sword at all unless I respawn my character since I already have the gamepass, but if someone buys the gamepass from ingame, it doesn't give them it on respawn. It's weird and I don't get it.
wait(2) GamepassID = 162597573 Tools = {"Dual Darkheart"} GPS = Game:GetService("GamePassService") function respawned(char) player = game.Players:FindFirstChild(char.Name) if char:FindFirstChild("Head") ~= nil then if GPS:PlayerHasPass(player, GamepassID) then for i = 1,#Tools do game.ServerStorage:FindFirstChild(Tools[i]):Clone().Parent = player.Backpack end else end end end game.Workspace.ChildAdded:connect(respawned)
game.Workspace.ChildAdded:connect(function(char) if game.Players:GetPlayerFromCharacter(char)~=nil then if game:GetService("GamePassService"):PlayerHasPass(162597573,game.Players:GetPlayerFromCharacter(char)) then game:GetService("InsertService"):LoadAsset(108149175).Parent = game.Players:GetPlayerFromCharacter(char).Backpack end end end)