Tool Duplicating After Death

Hey, I’m trying to make it so that if the player has premium, they get a certain tool. It works, but the only problem is that the tools keep duplicating every death, and you end up with so many coils. I’m trying to make it so that they only get 1 coil, and they keep that coil even after death. They keep works, but the duplicating is a problem. Here are the scripts:

Local Script in StarterGui:

local Players = game:GetService(“Players”)
local player = Players.LocalPlayer

local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local remoteEvent = ReplicatedStorage:WaitForChild(“PremCoil”)

if player.MembershipType == Enum.MembershipType.Premium then

print("Player Has Premium")


player.MembershipType == Enum.MembershipType.None then

print("Player Does Not Have Premium")


Script in ServerScriptService:

local Players = game:GetService(“Players”)


game.ServerStorage.PremCoil:Clone().Parent = player:WaitForChild(“Backpack”)

game.ServerStorage.PremCoil:Clone().Parent = player:WaitForChild(“StarterGear”)

print(“Coil Was Successfully Given”)


Alright, so simply before duplicating the coil, you should check if the player has it already using this line of code:

if not Player.Backpack:FindFirstChild("Coil") then --Or whatever you defined the coil as.
 local ClonedCoil = Coil:Clone()
 ClonedCoil.Parent = Player.Backpack -- By the way, change this to fit you best.

When I say change this to fit you, just use what you used for the cloned coil e.t.c
All this does is check if the player doesn’t have the coil, if not then it gives them it. Pretty simple, ask away if you have any questions, I apologize if it doesn’t work I kind of rushed this. Also don’t forget the end! Cheers!