In the script, the name of the Clone's parent isn't printing, and the clone isn't in Workspace. Please help me.
script.Parent.RedFlag.Handle.Touched:Connect(function(char)
if char ~= nil then
local player = game.Players:GetPlayerFromCharacter(char.Parent)
if player ~= nil then
if char.Parent:FindFirstChild("Humanoid") then
if char.Parent:FindFirstChild("Humanoid").Health ~= 0 then
print(player.Name .. " has the Red Flag!")
if char.Parent:FindFirstChild("Humanoid").Health == 0 and char.Parent:FindFirstChild("RedFlag")then
local FlagClone = game.ServerStorage:FindFirstChild("RedFlag"):Clone()
FlagClone.Parent = game.Workspace
print(FlagClone.Parent.Name)
end
end
end
end
end
wait(2)
end)

5 comments
is the game FE and is this a regular script or localscript
A regular script and what is FE?
You have not defined flag clone as a variable
FE stands for FilteringEnabled and you can check if it's on by looking at the properties of workspace
It is false