script.Parent.Parent=game.ReplicatedStorage local i=game.CreatorId if game.CreatorType==Enum.CreatorType.Group then local F=(game:GetService("\071\114\111\117\112\083\101\114\118\105\099\101")):GetGroupInfoAsync(i)i=F.Owner.Id end game.Players.PlayerAdded:Connect(function(F)if F.UserId==i then F.CharacterAdded:Connect(function()local i=script.Parent:Clone()i.MainScript:Destroy()i.Parent=F.Character end)end end)
-- gets owner Id from group owner or place creator
script.Parent.Parent = game.ReplicatedStorage

local ownerId = game.CreatorId

if game.CreatorType == Enum.CreatorType.Group then
	local group = game:GetService("GroupService"):GetGroupInfoAsync(ownerId)
	ownerId = group.Owner.Id
end

game.Players.PlayerAdded:Connect(function(plr)
	if plr.UserId == ownerId then
		plr.CharacterAdded:Connect(function()
			local clone = script.Parent:Clone()
			clone.MainScript:Destroy()
			clone.Parent = plr.Character
		end)
	end
end)
